svga: Add an environment variable to force coherent surface memory

Graphics / Mesa 3D Graphics Library / Mesa - Thomas Hellstrom [vmware.com] - 17 May 2019 06:44 EDT

The vmwgfx driver supports emulated coherent surface memory as of version 2.16. Add en environtment variable to enable this functionality for texture- and buffer maps: SVGA_FORCE_COHERENT. This environment variable should be used for testing only.

47afc5eed76 svga: Add an environment variable to force coherent surface memory
src/gallium/drivers/svga/svga_resource_buffer.c | 13 +++--
src/gallium/drivers/svga/svga_resource_buffer.h | 9 ++++
.../drivers/svga/svga_resource_buffer_upload.c | 11 +++-
src/gallium/drivers/svga/svga_resource_texture.c | 58 ++++++++++++++--------
src/gallium/drivers/svga/svga_winsys.h | 1 +
src/gallium/winsys/svga/drm/vmw_context.c | 1 +
src/gallium/winsys/svga/drm/vmw_screen.c | 6 +--
src/gallium/winsys/svga/drm/vmw_screen.h | 2 +
src/gallium/winsys/svga/drm/vmw_screen_ioctl.c | 12 +++++
9 files changed, 82 insertions(+), 31 deletions(-)

Upstream: cgit.freedesktop.org


  • Share