mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
svga: move assertion in draw_vgpu10()
The buffer binding flags aren't ensured until after the svga_buffer_handle() call, so move the assertion after it. Reviewed-by: Charmaine Lee <charmainel@vmware.com>
This commit is contained in:
parent
9bd047aa26
commit
6b4bf7e8be
1 changed files with 1 additions and 1 deletions
|
|
@ -548,9 +548,9 @@ draw_vgpu10(struct svga_hwtnl *hwtnl,
|
||||||
struct svga_buffer *sbuf = svga_buffer(hwtnl->cmd.vbufs[i].buffer.resource);
|
struct svga_buffer *sbuf = svga_buffer(hwtnl->cmd.vbufs[i].buffer.resource);
|
||||||
|
|
||||||
if (sbuf) {
|
if (sbuf) {
|
||||||
assert(sbuf->key.flags & SVGA3D_SURFACE_BIND_VERTEX_BUFFER);
|
|
||||||
vbuffer_handles[i] = svga_buffer_handle(svga, &sbuf->b.b,
|
vbuffer_handles[i] = svga_buffer_handle(svga, &sbuf->b.b,
|
||||||
PIPE_BIND_VERTEX_BUFFER);
|
PIPE_BIND_VERTEX_BUFFER);
|
||||||
|
assert(sbuf->key.flags & SVGA3D_SURFACE_BIND_VERTEX_BUFFER);
|
||||||
if (vbuffer_handles[i] == NULL)
|
if (vbuffer_handles[i] == NULL)
|
||||||
return PIPE_ERROR_OUT_OF_MEMORY;
|
return PIPE_ERROR_OUT_OF_MEMORY;
|
||||||
vbuffers[i] = &sbuf->b.b;
|
vbuffers[i] = &sbuf->b.b;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue