svga: Avoid discard DMA uploads
authorThomas Hellstrom <thellstrom@vmware.com>
Tue, 28 Jan 2020 11:49:30 +0000 (12:49 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 29 Jan 2020 10:56:06 +0000 (10:56 +0000)
commit8830e9f0cac2df7c8a1ae09086f27d8eb9bc80bd
tree1614bacaab8e51de43349c7da959edb46ea4f96c
parent8afe12b2123cca006df6d0eaa45eb89c36f63a98
svga: Avoid discard DMA uploads

Newer versions of the device code will make discard DMA uploads
sub-optimal. Disable them for guest-backed aware code, where we previously
had them conditionally enabled.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3614>
src/gallium/drivers/svga/svga_resource_texture.c