From: Brian Paul Date: Thu, 6 Sep 2018 20:56:47 +0000 (-0600) Subject: svga: set buffer bind_flags in svga_buffer_add_host_surface() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=25fceccf727b5ca7962670b8ccecbefd0b2b0086;p=mesa.git svga: set buffer bind_flags in svga_buffer_add_host_surface() To match the in-house VMware code. Signed-off-by: Brian Paul --- 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; }