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>
(cherry picked from commit 773fef12cd)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41269>
This commit is contained in:
Lionel Landwerlin 2026-04-10 11:18:19 +03:00 committed by Eric Engestrom
parent 9bdca3b7a1
commit 89fe35475b
2 changed files with 5 additions and 6 deletions

View file

@ -3994,7 +3994,7 @@
"description": "anv: fix compute push constant allocations on pre Gfx12.5 platforms",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -448,11 +448,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)