aco: fix non-rtz pack_half_2x16
authorRhys Perry <pendingchaos02@gmail.com>
Mon, 17 Aug 2020 10:28:07 +0000 (11:28 +0100)
committerMarge Bot <eric+marge@anholt.net>
Fri, 21 Aug 2020 16:30:26 +0000 (16:30 +0000)
commit9c1e0d86a813af7609acf42cfe6bec7401d6405f
tree6c1e5360970b27c5700782c722b1db30a435cd8f
parente802bff69ee74983215d0c2b7e213fca6d68a97d
aco: fix non-rtz pack_half_2x16

We were using the wrong conversion opcode. The high bits are also not
zero'd on GFX10, which can cause v_cvt_pk_u16_u32 to clamp.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Fixes: df645fa369d ('aco: implement VK_KHR_shader_float_controls')
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6346>
src/amd/compiler/aco_instruction_selection.cpp