winsys/svga: Add an environment variable to force host-backed operation
authorThomas Hellstrom <thellstrom@vmware.com>
Tue, 26 Mar 2019 20:36:04 +0000 (21:36 +0100)
committerThomas Hellstrom <thellstrom@vmware.com>
Thu, 2 May 2019 07:50:22 +0000 (09:50 +0200)
commit50e58966fac906b85401b196ca0e997fc2259ecf
treeb7de42db7c29d170c43c71a823ae24157acc0dec
parent492e8288485484f414e1144aeb73ee3eb58b71b1
winsys/svga: Add an environment variable to force host-backed operation

The vmwgfx kernel module has a compatibility mode for user-space that is
not guest-backed resource aware. Add an environment variable to facilitate
testing of this mode on guest-backed aware kernels: if the environment
variable SVGA_FORCE_HOST_BACKED is defined, the driver will use host-backed
operation.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Deepak Rawat <drawat@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/winsys/svga/drm/vmw_screen_ioctl.c