radv: Set FDCC_CONTROL SAMPLE_MASK_TRACKER_WATERMARK

Might cause hangs according to comments. Syncs with radeonsi/PAL.

Fixes: e210ffb4d0 ("radv: update framebuffer registers on GFX11")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20979>
(cherry picked from commit d321bc1323)
This commit is contained in:
Bas Nieuwenhuizen 2023-01-30 02:31:41 +01:00 committed by Eric Engestrom
parent eca296b07b
commit 14483d16b5
2 changed files with 2 additions and 2 deletions

View file

@ -4297,7 +4297,7 @@
"description": "radv: Set FDCC_CONTROL SAMPLE_MASK_TRACKER_WATERMARK",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "e210ffb4d0dc6b91fad79134a9712a5d5694f2f8"
},

View file

@ -2946,7 +2946,7 @@ radv_emit_framebuffer_state(struct radv_cmd_buffer *cmd_buffer)
if (cmd_buffer->device->physical_device->rad_info.gfx_level >= GFX11) {
radeon_set_context_reg(cmd_buffer->cs, R_028424_CB_FDCC_CONTROL,
S_028424_SAMPLE_MASK_TRACKER_WATERMARK(15));
S_028424_SAMPLE_MASK_TRACKER_WATERMARK(0));
} else {
uint8_t watermark = gfx_level >= GFX10 ? 6 : 4;