sna/gen2: Only emit the mask texcoord if there is a mask

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2011-06-06 08:39:17 +01:00
parent 4fb7784e1e
commit a89fc7181b
1 changed files with 2 additions and 1 deletions

View File

@ -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