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 1410... | Line 1410... | ||
1410 | } |
1410 | } |
Line 1411... | Line 1411... | ||
1411 | 1411 | ||
1412 | 1412 | ||
1413 | static bool |
1413 | static bool |
1414 | gen7_blit_tex(struct sna *sna, |
1414 | gen7_blit_tex(struct sna *sna, |
1415 | uint8_t op, |
1415 | uint8_t op, bool scale, |
1416 | PixmapPtr src, struct kgem_bo *src_bo, |
1416 | PixmapPtr src, struct kgem_bo *src_bo, |
1417 | PixmapPtr mask,struct kgem_bo *mask_bo, |
1417 | PixmapPtr mask,struct kgem_bo *mask_bo, |
1418 | PixmapPtr dst, struct kgem_bo *dst_bo, |
1418 | PixmapPtr dst, struct kgem_bo *dst_bo, |
Line 1456... | Line 1456... | ||
1456 | tmp->mask.pict_format = PIXMAN_a8; |
1456 | tmp->mask.pict_format = PIXMAN_a8; |
1457 | tmp->mask.card_format = gen7_get_card_format(tmp->mask.pict_format); |
1457 | tmp->mask.card_format = gen7_get_card_format(tmp->mask.pict_format); |
1458 | tmp->mask.width = mask->drawable.width; |
1458 | tmp->mask.width = mask->drawable.width; |
1459 | tmp->mask.height = mask->drawable.height; |
1459 | tmp->mask.height = mask->drawable.height; |
Line -... | Line 1460... | ||
- | 1460 | ||
- | 1461 | if( scale ) |
|
- | 1462 | { |
|
- | 1463 | tmp->src.scale[0] = 1.f/width; |
|
- | 1464 | tmp->src.scale[1] = 1.f/height; |
|
- | 1465 | } |
|
1460 | 1466 | else |
|
1461 | 1467 | { |
|
1462 | tmp->src.scale[0] = 1.f/width; //src->width; |
1468 | tmp->src.scale[0] = 1.f/src->drawable.width; |
- | 1469 | tmp->src.scale[1] = 1.f/src->drawable.height; |
|
Line 1463... | Line 1470... | ||
1463 | tmp->src.scale[1] = 1.f/height; //src->height; |
1470 | } |
1464 | 1471 |