radv: fix centroid with VRS coarse shading

Ported from RadeonSI.

Cc: mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8775>
(cherry picked from commit 718c4726f3)
This commit is contained in:
Samuel Pitoiset 2021-01-29 09:51:26 +01:00 committed by Dylan Baker
parent b913f2b097
commit 26f5850810
2 changed files with 2 additions and 2 deletions

View file

@ -1273,7 +1273,7 @@
"description": "radv: fix centroid with VRS coarse shading",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"master_sha": null,
"because_sha": null
},

View file

@ -4161,7 +4161,7 @@ radv_pipeline_generate_depth_stencil_state(struct radeon_cmdbuf *ctx_cs,
db_render_override2 |= S_028010_DECOMPRESS_Z_ON_FLUSH(attachment->samples > 2);
if (pipeline->device->physical_device->rad_info.chip_class >= GFX10_3)
db_render_override2 |= S_028010_CENTROID_COMPUTATION_MODE(2);
db_render_override2 |= S_028010_CENTROID_COMPUTATION_MODE(1);
}
if (attachment && extra) {