mesa/src
Charmaine Lee da98cee067 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 <brianp@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
2016-07-08 12:53:20 -06:00
..
compiler nir: add glsl_dvec_type() helper 2016-07-06 23:20:23 -07:00
egl egl: restrict swap_available dri2_egl_display field to X11 2016-07-07 13:28:50 -07:00
gallium svga: invalidate gb surface before it is reused 2016-07-08 12:53:20 -06:00
gbm gbm: Fix comments 2016-06-23 13:55:03 -07:00
getopt
glx Remove wrongly repeated words in comments 2016-06-23 13:55:03 -07:00
gtest Remove wrongly repeated words in comments 2016-06-23 13:55:03 -07:00
hgl
intel anv: gitignore anv_timestamp.h 2016-07-06 13:13:18 -07:00
loader Android: move libdrm settings to top-level Android.common.mk 2016-06-13 15:31:29 +01:00
mapi mapi: Export all GLES 3.1 functions in libGLESv2.so 2016-06-29 14:28:59 -07:00
mesa st/mesa: set debug callback async flag 2016-07-08 10:59:29 +02:00
util list: fix list_replace() for empty lists 2016-07-06 10:17:30 -04:00
Makefile.am automake: don't mandate git_sha1.h/MESA_GIT_SHA1 2016-07-05 12:16:20 +01:00
SConscript scons: put the generated git_sha1.h file in top-level src/ directory 2016-06-17 10:33:00 -06:00