summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2018-12-02 23:03:08 -0800
committerKenneth Graunke <[email protected]>2019-02-21 10:26:10 -0800
commit598ce8e88ea7f854d98559be88a19aa0e8264123 (patch)
treed1049df6543bfd3471522dc68e55774ce2e1b819 /src/gallium/drivers
parent4749f6cc4f82b4c76753262efaabdac202854ea4 (diff)
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...
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/iris/iris_state.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c
index 88a109ad3ca..a595e37751a 100644
--- a/src/gallium/drivers/iris/iris_state.c
+++ b/src/gallium/drivers/iris/iris_state.c
@@ -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) {