sna/gen2: Set op->floats_per_vertex

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2011-06-06 08:25:53 +01:00
parent 741c1101f1
commit d9344ab8d0
1 changed files with 6 additions and 0 deletions

View File

@ -1165,6 +1165,12 @@ gen2_render_composite(struct sna *sna,
}
}
tmp->floats_per_vertex = 2;
if (tmp->src.bo)
tmp->floats_per_vertex += tmp->src.is_affine ? 2 : 3;
if (tmp->mask.bo)
tmp->floats_per_vertex += tmp->mask.is_affine ? 2 : 3;
tmp->blt = gen2_render_composite_blt;
tmp->boxes = gen2_render_composite_boxes;
tmp->done = gen2_render_composite_done;