summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2018-09-06 14:56:47 -0600
committerBrian Paul <[email protected]>2018-09-10 13:07:30 -0600
commit25fceccf727b5ca7962670b8ccecbefd0b2b0086 (patch)
treeff261c58c297bd3dc4acc4ff5040d46aad464bfb /src/gallium/drivers/svga
parent337a74aa40b3a1048fe3fed1e60f0af0abb79813 (diff)
svga: set buffer bind_flags in svga_buffer_add_host_surface()
To match the in-house VMware code. Signed-off-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga')
-rw-r--r--src/gallium/drivers/svga/svga_resource_buffer_upload.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/svga_resource_buffer_upload.c b/src/gallium/drivers/svga/svga_resource_buffer_upload.c
index 93a6dee0724..74c3bc4ed61 100644
--- a/src/gallium/drivers/svga/svga_resource_buffer_upload.c
+++ b/src/gallium/drivers/svga/svga_resource_buffer_upload.c
@@ -316,6 +316,9 @@ svga_buffer_add_host_surface(struct svga_buffer *sbuf,
/* add the surface to the surface list */
LIST_ADD(&bufsurf->list, &sbuf->surfaces);
+ /* Set the new bind flags for this buffer resource */
+ sbuf->bind_flags = bind_flags;
+
return PIPE_OK;
}