mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-09 17:00:13 +01:00
nir/lower_printf: fix array alignment
The pointer arithmetic doesn't need a 4byte alignment, otherwise
everything is broken.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: mesa-stable
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38638>
(cherry picked from commit d24633023f)
This commit is contained in:
parent
e7daf69a9b
commit
e6008d0910
2 changed files with 2 additions and 2 deletions
|
|
@ -2394,7 +2394,7 @@
|
|||
"description": "nir/lower_printf: fix array alignment",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ lower_printf_intrin(nir_builder *b, nir_intrinsic_instr *prntf, void *_options)
|
|||
*/
|
||||
nir_deref_instr *buffer =
|
||||
nir_build_deref_cast(b, buffer_addr, nir_var_mem_global,
|
||||
glsl_array_type(glsl_uint8_t_type(), 0, 4), 0);
|
||||
glsl_array_type(glsl_uint8_t_type(), 0, 1), 0);
|
||||
|
||||
/* Align the struct size to 4 */
|
||||
nir_deref_instr *args = nir_src_as_deref(prntf->src[0]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue