mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
r300g: update derived state before uploading vertex buffers
The function may invoke blitter, which invalidates vertex buffers.
This commit is contained in:
parent
fbedd9c73a
commit
4609be4410
1 changed files with 2 additions and 2 deletions
|
|
@ -748,6 +748,8 @@ static void r300_draw_vbo(struct pipe_context* pipe,
|
|||
return;
|
||||
}
|
||||
|
||||
r300_update_derived_state(r300);
|
||||
|
||||
/* Start the vbuf manager and update buffers if needed. */
|
||||
u_vbuf_mgr_draw_begin(r300->vbuf_mgr, info,
|
||||
&buffers_updated, &uploader_flushed);
|
||||
|
|
@ -756,8 +758,6 @@ static void r300_draw_vbo(struct pipe_context* pipe,
|
|||
}
|
||||
|
||||
/* Draw. */
|
||||
r300_update_derived_state(r300);
|
||||
|
||||
if (indexed) {
|
||||
if (count <= 8 &&
|
||||
r300_resource(r300->index_buffer.buffer)->b.user_ptr) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue