diff options
author | Charmaine Lee <[email protected]> | 2016-03-08 11:18:51 -0800 |
---|---|---|
committer | Brian Paul <[email protected]> | 2016-07-08 12:53:20 -0600 |
commit | da98cee067fcf61ac6f2c70c91b0c8eab27eba92 (patch) | |
tree | 8bf1f7aae51a2a57135960b9fa2793f498ab7c2a /src/gallium/drivers/svga/svga_state_framebuffer.c | |
parent | ca531aeeb120cdda966120a17cdf50aa14c3129b (diff) |
svga: invalidate gb surface before it is reused
With this patch, a guest-backed surface will be invalidated
using the SVGA_3D_CMD_INVALIDATE_GB_SURFACE command before
the surface is reused. This fixes the updating dirty image error
from the device when a surface is reused.
v2: Instead of invalidating the surface when it is reused,
send the invalidate command before the surface is put into
the recycle pool.
v3: (1) surface invalidate is a noop operation in Linux winsys, since
surface invalidation is not needed for DMA path.
(2) Instead of invalidating the surface content in
svga_screen_surface_destroy() when a surface is to be destroyed,
it is done in svga_screen_cache_flush() when the surface is
no longer referenced in a command buffer and is ready to
be moved to the unused list. At this point, the surface will
be moved to the invalidate list. When the surface invalidation
is submitted, the surface will be moved to the unused list.
Tested with piglit, glretrace.
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Sinclair Yeh <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga/svga_state_framebuffer.c')
0 files changed, 0 insertions, 0 deletions