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 987... | Line 987... | ||
987 | } |
987 | } |
Line 988... | Line 988... | ||
988 | 988 | ||
989 | 989 | ||
990 | static bool |
990 | static bool |
991 | gen5_blit_tex(struct sna *sna, |
991 | gen5_blit_tex(struct sna *sna, |
992 | uint8_t op, |
992 | uint8_t op, bool scale, |
993 | PixmapPtr src, struct kgem_bo *src_bo, |
993 | PixmapPtr src, struct kgem_bo *src_bo, |
994 | PixmapPtr mask,struct kgem_bo *mask_bo, |
994 | PixmapPtr mask,struct kgem_bo *mask_bo, |
995 | PixmapPtr dst, struct kgem_bo *dst_bo, |
995 | PixmapPtr dst, struct kgem_bo *dst_bo, |
Line 1033... | Line 1033... | ||
1033 | tmp->mask.pict_format = PIXMAN_a8; |
1033 | tmp->mask.pict_format = PIXMAN_a8; |
1034 | tmp->mask.card_format = gen5_get_card_format(tmp->mask.pict_format); |
1034 | tmp->mask.card_format = gen5_get_card_format(tmp->mask.pict_format); |
1035 | tmp->mask.width = mask->drawable.width; |
1035 | tmp->mask.width = mask->drawable.width; |
1036 | tmp->mask.height = mask->drawable.height; |
1036 | tmp->mask.height = mask->drawable.height; |
Line -... | Line 1037... | ||
- | 1037 | ||
- | 1038 | if( scale ) |
|
- | 1039 | { |
|
- | 1040 | tmp->src.scale[0] = 1.f/width; |
|
- | 1041 | tmp->src.scale[1] = 1.f/height; |
|
- | 1042 | } |
|
- | 1043 | else |
|
1037 | 1044 | { |
|
1038 | tmp->src.scale[0] = 1.f/width; //src->width; |
1045 | tmp->src.scale[0] = 1.f/src->drawable.width; |
- | 1046 | tmp->src.scale[1] = 1.f/src->drawable.height; |
|
Line 1039... | Line 1047... | ||
1039 | tmp->src.scale[1] = 1.f/height; //src->height; |
1047 | } |
1040 | 1048 |