diff options
author | Brian Paul <[email protected]> | 2016-06-30 13:27:57 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2016-06-30 14:32:10 -0600 |
commit | 88a344253c2091f7935b3dfc7fe3be99b76033a3 (patch) | |
tree | 7a0b1cfc009bb38b6c8ac9cff396002517ab939e /src/gallium/drivers/svga/svga_streamout.h | |
parent | fa2cdd973d466528c2c353c86457ce12f46e5cc4 (diff) |
svga: flush buffers when mapping for reading
With host-side buffer copies (via SVGA3D_vgpu10_BufferCopy()) we have
to make sure any pending map-write operations are completed before reading
if the buffer is dirty. Otherwise the ReadbackSubResource operation could
get stale data from the host buffer.
This allows the piglit arb_copy_buffer-subdata-sync test to pass when
we start using the SVGA3D_vgpu10_BufferCopy command.
v2: check the sbuf->dirty flag in the outer conditional, per Charmaine.
Acked-by: Roland Scheidegger <[email protected]>
Reviewed-by: Charmaine Lee <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga/svga_streamout.h')
0 files changed, 0 insertions, 0 deletions