sna/gen2: Set op->floats_per_vertex
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
741c1101f1
commit
d9344ab8d0
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue