mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 06:20:19 +01:00
svga: Remove unnecessary check for the pre flush bit for setting vertex buffers
This fixes the missing rebind when the can_pre_flush bit
is not set and the vertex buffers are the same as what have been sent.
Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Neha Bhende <bhenden@vmware.com>
Signed-off-by: Charmaine Lee <charmainel@vmware.com>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
(cherry picked from commit f29b8fde91)
This commit is contained in:
parent
6f37df6622
commit
ae0caaf194
1 changed files with 4 additions and 4 deletions
|
|
@ -619,11 +619,11 @@ draw_vgpu10(struct svga_hwtnl *hwtnl,
|
|||
vbuffer_attrs[i].sid = 0;
|
||||
}
|
||||
|
||||
/* If we haven't yet emitted a drawing command or if any
|
||||
* vertex buffer state is changing, issue that state now.
|
||||
/* If any of the vertex buffer state has changed, issue
|
||||
* the SetVertexBuffers command. Otherwise, we will just
|
||||
* need to rebind the resources.
|
||||
*/
|
||||
if (((hwtnl->cmd.swc->hints & SVGA_HINT_FLAG_CAN_PRE_FLUSH) == 0) ||
|
||||
vbuf_count != svga->state.hw_draw.num_vbuffers ||
|
||||
if (vbuf_count != svga->state.hw_draw.num_vbuffers ||
|
||||
!vertex_buffers_equal(vbuf_count,
|
||||
vbuffer_attrs,
|
||||
vbuffers,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue