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>
This commit is contained in:
parent
8afe12b212
commit
8830e9f0ca
|
@ -531,7 +531,7 @@ svga_texture_transfer_map(struct pipe_context *pipe,
|
|||
struct svga_transfer *st;
|
||||
struct svga_winsys_surface *surf = tex->handle;
|
||||
boolean use_direct_map = svga_have_gb_objects(svga) &&
|
||||
!svga_have_gb_dma(svga);
|
||||
(!svga_have_gb_dma(svga) || (usage & PIPE_TRANSFER_WRITE));
|
||||
void *map = NULL;
|
||||
int64_t begin = svga_get_time(svga);
|
||||
|
||||
|
|
Loading…
Reference in New Issue