sna: Prefer inactive buffers when creating a bo for a dirty pixmap
As we will immediately attempt to replace it with an inactive when moving the data to the GPU, short-circuit that replacement. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
8ee53cc744
commit
d1a3bb1467
|
|
@ -685,7 +685,7 @@ sna_pixmap_force_to_gpu(PixmapPtr pixmap)
|
|||
pixmap->drawable.height,
|
||||
pixmap->drawable.bitsPerPixel,
|
||||
sna_pixmap_choose_tiling(pixmap),
|
||||
0);
|
||||
priv->cpu_damage ? CREATE_INACTIVE : 0);
|
||||
if (priv->gpu_bo == NULL)
|
||||
return NULL;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue