radv: correctly enable WGP_MODE for NGG and GS
authorRhys Perry <pendingchaos02@gmail.com>
Mon, 1 Feb 2021 15:01:57 +0000 (15:01 +0000)
committerRhys Perry <pendingchaos02@gmail.com>
Wed, 3 Feb 2021 11:27:50 +0000 (11:27 +0000)
commit2338e4ad36fc41414e0d2362e5191d39d218a1d4
tree4b3584eff424a6b39e69e6a8863238bc5886ff23
parent56cd79b63d25ef0d5d795bfa6ab58955b9f96e3b
radv: correctly enable WGP_MODE for NGG and GS

Previously, we would set WGP_MODE on GFX10+ and then only on GFX10.
Because we used bitwise or, the result was WGP_MODE being set on GFX10+.

We also set the wrong bit, S_00B848_WGP_MODE instead of S_00B228_WGP_MODE.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8811>
src/amd/vulkan/radv_shader.c