ac/llvm: remove inst_offset parameter from ac_build_buffer_store_dword
authorMarek Olšák <marek.olsak@amd.com>
Fri, 15 Apr 2022 05:08:16 +0000 (01:08 -0400)
committerMarge Bot <emma+marge@anholt.net>
Sat, 23 Apr 2022 01:45:17 +0000 (01:45 +0000)
commitf68aeaa2c2ed8431f40c0c102bdc5296e64505d7
tree49f77541c2e4f5e312f8b890f8fd568e481993d4
parent8abb612cba57bf6f5620cbe586615b7187b142bc
ac/llvm: remove inst_offset parameter from ac_build_buffer_store_dword

There was a bug that inst_offset was added to soffset in one codepath and
to voffset in all other codepaths. The correct behavior is to add it
to voffset.

Reviewed-by: Mihai Preda <mhpreda@gmail.com>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15966>
src/amd/llvm/ac_llvm_build.c
src/amd/llvm/ac_llvm_build.h
src/amd/llvm/ac_nir_to_llvm.c
src/amd/vulkan/radv_nir_to_llvm.c
src/gallium/drivers/radeonsi/si_shader_llvm_gs.c
src/gallium/drivers/radeonsi/si_shader_llvm_tess.c
src/gallium/drivers/radeonsi/si_shader_llvm_vs.c