sna: Ensure we flush SHM pixmaps if rendering to a GPU shadow
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 14 Mar 2014 11:32:38 +0000 (11:32 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 14 Mar 2014 11:38:19 +0000 (11:38 +0000)
commitb61e6398f0cf94d3c483e30c05ceae4a8383d16c
tree7167b5fc9f47976ad11e178cb44587bcecaa1b5d
parentf47f192f2240d19ede0a3a59b7970e4f563f3195
sna: Ensure we flush SHM pixmaps if rendering to a GPU shadow

Normally, we try to render into the CPU bo of a SHM pixmap. However, under
the right circumstances we may try to do a series of rendering into the
GPU bo and then copy it back to the CPU bo. In that case, we need to be
sure to mark the pixmap as requiring the flush.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/sna/sna_accel.c