aco: fix encoding of certain s_setreg_imm32_b32 instructions
authorRhys Perry <pendingchaos02@gmail.com>
Thu, 11 Jun 2020 13:06:32 +0000 (14:06 +0100)
committerMarge Bot <eric+marge@anholt.net>
Mon, 15 Jun 2020 18:24:22 +0000 (18:24 +0000)
commita02e7f679975bba76ee2a5c64b5b43432619b5a5
treef991aee0bbb850eef610466bd3a8d6cf895a85f5
parent82c265a51467ec8c112146bc7a2875609d5be0cf
aco: fix encoding of certain s_setreg_imm32_b32 instructions

If the mode is too small, the operand will be an inline constant and the
literal dword won't be written.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5245>
src/amd/compiler/aco_lower_to_hw_instr.cpp