radeonsi: optimize and allow reg > 31 in radeon_opt_set_context_reg functions
authorMarek Olšák <marek.olsak@amd.com>
Fri, 5 Oct 2018 22:09:37 +0000 (18:09 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 5 Oct 2018 23:04:13 +0000 (19:04 -0400)
commit86f004bdfcc1c14ace99f5fccf540c0d813d2254
treeb9e4e493a5536c1bd20f26c30875e5d2c400c7e3
parenteeb9170599468f4e9c0a48e1507a53cde66a9825
radeonsi: optimize and allow reg > 31 in radeon_opt_set_context_reg functions

reg_saved will have 64 bits, and (1 << reg) where reg > 31 has undefined
behavior. (1ull << reg) would be correct for 64 bits.

This commit shifts the other way in order to merge the conditions.
src/gallium/drivers/radeonsi/si_build_pm4.h