gbm/dri: Flush after unmap
authorThomas Hellstrom <thellstrom@vmware.com>
Tue, 28 Mar 2017 19:32:22 +0000 (21:32 +0200)
committerThomas Hellstrom <thellstrom@vmware.com>
Wed, 29 Mar 2017 07:17:21 +0000 (09:17 +0200)
commitba8df2286a50117011925e915cd832b4a79f126e
tree416458acd7759f4922b2a5f1ee5248ef93a6e710
parent3df410069a610de5b3fd8965fb99b994516a5d13
gbm/dri: Flush after unmap

Drivers may queue dma operations on the context at unmap time so we need
to flush to make sure the data gets to the bo. Ideally the application
would take care of this, but since there appears to be no exported gbm
flush functionality we need to explicitly flush at unmap time.

This fixes a problem where kmscube on vmwgfx in rgba textured mode would
render using an uninitialized texture rather than the intended
rgba pattern.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/gbm/backends/dri/gbm_dri.c