Module: Mesa
Branch: master
Commit: 05b09d654933d266c67d04b849b9d94376932ced
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=05b09d654933d266c67d04b849b9d94376932ced

Author: Samuel Pitoiset <[email protected]>
Date:   Tue Aug  4 11:17:25 2020 +0200

radv: fix sample shading on GFX 10.3

Based on RadeonSI.

Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6168>

---

 src/amd/vulkan/si_cmd_buffer.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/amd/vulkan/si_cmd_buffer.c b/src/amd/vulkan/si_cmd_buffer.c
index 766d73fc08a..1015730507a 100644
--- a/src/amd/vulkan/si_cmd_buffer.c
+++ b/src/amd/vulkan/si_cmd_buffer.c
@@ -420,6 +420,7 @@ si_emit_graphics(struct radv_device *device,
 
                if (physical_device->rad_info.chip_class >= GFX10_3) {
                        radeon_set_context_reg(cs, 
R_028750_SX_PS_DOWNCONVERT_CONTROL_GFX103, 0xff);
+                       radeon_set_context_reg(cs, 0x28848, 1 << 9); /* This 
fixes sample shading. */
                }
 
                if (physical_device->rad_info.chip_class == GFX10) {

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to