Rev 3291 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3291 | Rev 3769 | ||
---|---|---|---|
Line 1054... | Line 1054... | ||
1054 | 1054 | ||
1055 | 1055 | ||
1056 | 1056 | ||
1057 | static bool |
1057 | static bool |
1058 | gen4_blit_tex(struct sna *sna, |
1058 | gen4_blit_tex(struct sna *sna, |
1059 | uint8_t op, |
1059 | uint8_t op, bool scale, |
1060 | PixmapPtr src, struct kgem_bo *src_bo, |
1060 | PixmapPtr src, struct kgem_bo *src_bo, |
1061 | PixmapPtr mask,struct kgem_bo *mask_bo, |
1061 | PixmapPtr mask,struct kgem_bo *mask_bo, |
Line 1101... | Line 1101... | ||
1101 | tmp->mask.pict_format = PIXMAN_a8; |
1101 | tmp->mask.pict_format = PIXMAN_a8; |
1102 | tmp->mask.card_format = gen4_get_card_format(tmp->mask.pict_format); |
1102 | tmp->mask.card_format = gen4_get_card_format(tmp->mask.pict_format); |
1103 | tmp->mask.width = mask->drawable.width; |
1103 | tmp->mask.width = mask->drawable.width; |
1104 | tmp->mask.height = mask->drawable.height; |
1104 | tmp->mask.height = mask->drawable.height; |
Line -... | Line 1105... | ||
- | 1105 | ||
- | 1106 | if( scale ) |
|
- | 1107 | { |
|
- | 1108 | tmp->src.scale[0] = 1.f/width; |
|
- | 1109 | tmp->src.scale[1] = 1.f/height; |
|
- | 1110 | } |
|
1105 | 1111 | else |
|
1106 | 1112 | { |
|
1107 | tmp->src.scale[0] = 1.f/width; //src->width; |
1113 | tmp->src.scale[0] = 1.f/src->drawable.width; |
- | 1114 | tmp->src.scale[1] = 1.f/src->drawable.height; |
|
1108 | tmp->src.scale[1] = 1.f/height; //src->height; |
1115 | } |
1109 | // tmp->src.offset[0] = -dst_x; |
1116 | // tmp->src.offset[0] = -dst_x; |
Line 1110... | Line 1117... | ||
1110 | // tmp->src.offset[1] = -dst_y; |
1117 | // tmp->src.offset[1] = -dst_y; |