svga: set buffer bind_flags in svga_buffer_add_host_surface()

To match the in-house VMware code.

Signed-off-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
Brian Paul 2018-09-06 14:56:47 -06:00
parent 337a74aa40
commit 25fceccf72

View file

@ -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;
}