mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +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>
(cherry picked from commit 773fef12cd)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41104>
This commit is contained in:
parent
006ee6ea04
commit
6ae2931cef
2 changed files with 5 additions and 6 deletions
|
|
@ -1094,7 +1094,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
|
||||
|
|
|
|||
|
|
@ -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