lavapipe: correctly update shader object per-stage push constant sizes

Fixes: 8b3022c918 ("lavapipe: implement EXT_shader_object")

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23663>
(cherry picked from commit b7f37265ac)
This commit is contained in:
Mike Blumenkrantz 2023-06-14 10:12:20 -04:00 committed by Eric Engestrom
parent d7839ab2a7
commit f7ac8d19c1
2 changed files with 2 additions and 2 deletions

View file

@ -1417,7 +1417,7 @@
"description": "lavapipe: correctly update shader object per-stage push constant sizes",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "8b3022c918086cd23b7f8a9e4dd61d1b074fef87"
},

View file

@ -4102,7 +4102,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;