mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
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:
parent
f6306198d0
commit
773fef12cd
1 changed files with 4 additions and 5 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue