From b7f37265ac2006b29949692b568aa3eccb6a3b99 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 14 Jun 2023 10:12:20 -0400 Subject: [PATCH] lavapipe: correctly update shader object per-stage push constant sizes Fixes: 8b3022c9180 ("lavapipe: implement EXT_shader_object") Reviewed-by: Roland Scheidegger Part-of: --- src/gallium/frontends/lavapipe/lvp_execute.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/frontends/lavapipe/lvp_execute.c b/src/gallium/frontends/lavapipe/lvp_execute.c index fa650ddb449..26d2d9e6f5e 100644 --- a/src/gallium/frontends/lavapipe/lvp_execute.c +++ b/src/gallium/frontends/lavapipe/lvp_execute.c @@ -4177,7 +4177,7 @@ handle_shaders(struct vk_cmd_queue_entry *cmd, struct rendering_state *state) } if (stage != MESA_SHADER_COMPUTE) { - state->gfx_push_sizes[i] = shader ? shader->layout->push_constant_size : 0; + state->gfx_push_sizes[stage] = shader ? shader->layout->push_constant_size : 0; gfx = true; } else { state->push_size[1] = shader ? shader->layout->push_constant_size : 0;