anv: fix compute push constant allocations on pre Gfx12.5 platforms

MEDIA_CURBE_LOAD::CURBETotalDataLength needs to be 64B aligned.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: mesa-stable
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41047>
This commit is contained in:
Lionel Landwerlin 2026-04-10 11:18:19 +03:00
parent f6306198d0
commit 773fef12cd

View file

@ -439,11 +439,10 @@ genX(simple_shader_alloc_push)(struct anv_simple_shader *state, uint32_t size)
s = anv_state_stream_alloc(state->dynamic_state_stream,
size, ANV_UBO_ALIGNMENT);
} else {
#if GFX_VERx10 >= 125
s = anv_state_stream_alloc(state->general_state_stream, align(size, 64), 64);
#else
s = anv_state_stream_alloc(state->dynamic_state_stream, size, 64);
#endif
s = anv_state_stream_alloc(GFX_VERx10 >= 125 ?
state->general_state_stream :
state->dynamic_state_stream,
align(size, 64), 64);
}
if (s.map == NULL)