Mesa (master): radeonsi: fix centroid with VRS coarse shading
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Jan 28 00:29:20 UTC 2021
Module: Mesa
Branch: master
Commit: dbf09c0c26dda7296322491c35fce02f3147dfa9
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=dbf09c0c26dda7296322491c35fce02f3147dfa9
Author: Marek Olšák <marek.olsak at amd.com>
Date: Tue Jan 26 15:26:18 2021 -0500
radeonsi: fix centroid with VRS coarse shading
This has no effect on other shading. It should have been the default value.
Fixes: c3432ad8524 - radeonsi: add an option to enable 2x2 coarse shading for non-GUI elements
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8726>
---
src/gallium/drivers/radeonsi/si_state.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c
index c7baed72e91..c36bb17ad27 100644
--- a/src/gallium/drivers/radeonsi/si_state.c
+++ b/src/gallium/drivers/radeonsi/si_state.c
@@ -1388,7 +1388,7 @@ static void si_emit_db_render_state(struct si_context *sctx)
S_028010_DISABLE_ZMASK_EXPCLEAR_OPTIMIZATION(sctx->db_depth_disable_expclear) |
S_028010_DISABLE_SMEM_EXPCLEAR_OPTIMIZATION(sctx->db_stencil_disable_expclear) |
S_028010_DECOMPRESS_Z_ON_FLUSH(sctx->framebuffer.nr_samples >= 4) |
- S_028010_CENTROID_COMPUTATION_MODE(sctx->chip_class >= GFX10_3 ? 2 : 0));
+ S_028010_CENTROID_COMPUTATION_MODE(sctx->chip_class >= GFX10_3 ? 1 : 0));
db_shader_control = sctx->ps_db_shader_control;
More information about the mesa-commit
mailing list