mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 23:50:11 +01:00
iris: fix crash in sparse vertex array
this fixes crash in array-stride piglit.
This commit is contained in:
parent
bcac11c8f1
commit
ed016b2a0b
1 changed files with 2 additions and 1 deletions
|
|
@ -4208,7 +4208,8 @@ iris_upload_dirty_render_state(struct iris_context *ice,
|
|||
|
||||
for (unsigned i = 0; i < cso->num_buffers; i++) {
|
||||
struct iris_resource *res = (void *) cso->resources[i];
|
||||
iris_use_pinned_bo(batch, res->bo, false);
|
||||
if (res)
|
||||
iris_use_pinned_bo(batch, res->bo, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue