radv: program SAMPLE_MASK_TRACKER_WATERMARK optimally for GFX11 APUs
Ported from RadeonSI 6ce3a95852
("radeonsi/gfx11: program SAMPLE_MASK_TRACKER_WATERMARK optimally for APUs")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28165>
This commit is contained in:
committed by
Marge Bot
parent
d81809618f
commit
96e9c3fe77
@@ -3671,7 +3671,10 @@ radv_emit_framebuffer_state(struct radv_cmd_buffer *cmd_buffer)
|
||||
enum amd_gfx_level gfx_level = cmd_buffer->device->physical_device->rad_info.gfx_level;
|
||||
|
||||
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(0));
|
||||
const bool has_dedicated_vram = cmd_buffer->device->physical_device->rad_info.has_dedicated_vram;
|
||||
|
||||
radeon_set_context_reg(cmd_buffer->cs, R_028424_CB_FDCC_CONTROL,
|
||||
S_028424_SAMPLE_MASK_TRACKER_WATERMARK(has_dedicated_vram ? 0 : 15));
|
||||
} else {
|
||||
uint8_t watermark = gfx_level >= GFX10 ? 6 : 4;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user