amd: don't use d16 for integer loads
authorGeorg Lehmann <dadschoorse@gmail.com>
Sat, 18 Feb 2023 12:38:46 +0000 (13:38 +0100)
committerMarge Bot <emma+marge@anholt.net>
Mon, 27 Feb 2023 09:55:34 +0000 (09:55 +0000)
commit77252687fa4706b4357f1689211212147958b6a6
tree11b2bebd7e7b723e7f679e31dd7a6bf21c3720b6
parenta00b50d820b5a293ba6f05fee631f02bf86138f4
amd: don't use d16 for integer loads

D16 saturates to min/max instead of just truncating.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21404>
src/amd/vulkan/radv_pipeline.c
src/gallium/drivers/radeonsi/si_shader_nir.c