mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 12:50:10 +01:00
iris: fix overhead regression from flushing for storage images
st calls us with count = 32 but a NULL pointer...we only really care about the highest non-NULL image...
This commit is contained in:
parent
4749f6cc4f
commit
598ce8e88e
1 changed files with 2 additions and 1 deletions
|
|
@ -1678,7 +1678,8 @@ iris_set_shader_images(struct pipe_context *ctx,
|
|||
gl_shader_stage stage = stage_from_pipe(p_stage);
|
||||
struct iris_shader_state *shs = &ice->state.shaders[stage];
|
||||
|
||||
shs->num_images = MAX2(shs->num_images, start_slot + count);
|
||||
if (p_images)
|
||||
shs->num_images = MAX2(shs->num_images, start_slot + count);
|
||||
|
||||
for (unsigned i = 0; i < count; i++) {
|
||||
if (p_images && p_images[i].resource) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue