mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
iris: Re-pin even if nothing is dirty
This commit is contained in:
parent
415ede346d
commit
84a8c63527
1 changed files with 5 additions and 5 deletions
|
|
@ -4442,6 +4442,11 @@ iris_upload_render_state(struct iris_context *ice,
|
|||
*/
|
||||
iris_use_pinned_bo(batch, ice->state.binder.bo, false);
|
||||
|
||||
if (!batch->contains_draw) {
|
||||
iris_restore_render_saved_bos(ice, batch, draw);
|
||||
batch->contains_draw = true;
|
||||
}
|
||||
|
||||
iris_upload_dirty_render_state(ice, batch, draw);
|
||||
|
||||
if (draw->index_size > 0) {
|
||||
|
|
@ -4543,11 +4548,6 @@ iris_upload_render_state(struct iris_context *ice,
|
|||
|
||||
//prim.BaseVertexLocation = ...;
|
||||
}
|
||||
|
||||
if (!batch->contains_draw) {
|
||||
iris_restore_render_saved_bos(ice, batch, draw);
|
||||
batch->contains_draw = true;
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue