aco: fix sgpr ubfe/ibfe if the offset is too large
authorRhys Perry <pendingchaos02@gmail.com>
Fri, 21 Aug 2020 12:12:38 +0000 (13:12 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 26 Aug 2020 13:46:23 +0000 (13:46 +0000)
commit14d748eb28efa57507a3a84b7ef157b27ab27752
tree4d6a4598b112cb084c96180939a1e659c2585548
parent454bc595d184da6f9567b6a3451c87616ddb6e79
aco: fix sgpr ubfe/ibfe if the offset is too large

If the offset is large enough, it could affect the width. I'm also not
sure if the hardware masks the offset by 0x1f.

Found by inspection. No fossil-db changes.

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/6424>
src/amd/compiler/aco_instruction_selection.cpp