From: Samuel Pitoiset Date: Tue, 25 Jun 2019 08:53:17 +0000 (+0200) Subject: radv/gfx10: update DB_DFSM_CONTROL register X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6b9dbb28ef71c2278dc41b8e72b55914dee7a635;p=mesa.git radv/gfx10: update DB_DFSM_CONTROL register Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen --- diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index 09b04235e8b..79d71d2259e 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -2720,8 +2720,14 @@ radv_pipeline_generate_binning_state(struct radeon_cmdbuf *ctx_cs, radeon_set_context_reg(ctx_cs, R_028C44_PA_SC_BINNER_CNTL_0, pa_sc_binner_cntl_0); - radeon_set_context_reg(ctx_cs, R_028060_DB_DFSM_CONTROL, - db_dfsm_control); + + if (pipeline->device->physical_device->rad_info.chip_class >= GFX10) { + radeon_set_context_reg(ctx_cs, R_028038_DB_DFSM_CONTROL, + db_dfsm_control); + } else { + radeon_set_context_reg(ctx_cs, R_028060_DB_DFSM_CONTROL, + db_dfsm_control); + } }