diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-06-06 08:39:17 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-06-06 08:39:17 +0100 |
commit | a89fc7181b6ccec8ccca2cd4ccab4f180f663656 (patch) | |
tree | 0a092d022dfc970570ef9e9510dada5da16b8134 | |
parent | 4fb7784e1e1b2b999c0c2420583e9c48eb1127ac (diff) |
sna/gen2: Only emit the mask texcoord if there is a mask
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/gen2_render.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sna/gen2_render.c b/src/sna/gen2_render.c index c1fea0ca..a436c04e 100644 --- a/src/sna/gen2_render.c +++ b/src/sna/gen2_render.c @@ -753,7 +753,8 @@ gen2_emit_composite_vertex(struct sna *sna, { gen2_emit_composite_dstcoord(sna, dstX, dstY); gen2_emit_composite_texcoord(sna, &op->src, srcX, srcY); - gen2_emit_composite_texcoord(sna, &op->mask, mskX, mskY); + if (op->mask.bo) + gen2_emit_composite_texcoord(sna, &op->mask, mskX, mskY); } static void |