radeonsi: don't use threadID.yz/blockID.yz for copy_image if those are always 0
authorMarek Olšák <marek.olsak@amd.com>
Mon, 7 Aug 2023 02:15:42 +0000 (22:15 -0400)
committerMarge Bot <emma+marge@anholt.net>
Thu, 17 Aug 2023 15:34:07 +0000 (15:34 +0000)
commit3952b89ebb80d10cbcfa2ef30255e204782c0ba8
tree63e48329fc5b7455cc417b914a97c523362f2954
parent47a57416cf985bb9d3e1840d86ad9124179b1d51
radeonsi: don't use threadID.yz/blockID.yz for copy_image if those are always 0

This can improve performance because fewer VGPRs and SGPRs need to be
initialized.

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24732>
src/gallium/drivers/radeonsi/si_compute_blit.c
src/gallium/drivers/radeonsi/si_pipe.c
src/gallium/drivers/radeonsi/si_pipe.h
src/gallium/drivers/radeonsi/si_shaderlib_nir.c