From 25fceccf727b5ca7962670b8ccecbefd0b2b0086 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 6 Sep 2018 14:56:47 -0600 Subject: [PATCH] svga: set buffer bind_flags in svga_buffer_add_host_surface() To match the in-house VMware code. Signed-off-by: Brian Paul --- src/gallium/drivers/svga/svga_resource_buffer_upload.c | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.30.2