radeonsi: clear DB_RENDER_OVERRIDE
authorMarek Olšák <marek.olsak@amd.com>
Wed, 12 Oct 2016 22:20:43 +0000 (00:20 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 17 Oct 2016 10:13:00 +0000 (12:13 +0200)
Vulkan doesn't set these fields even though it doesn't use HiS.
HiS is disabled by programming DB_SRESULTS_COMPARE_STATEn to 0.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_state.c

index b23749c6d89ebf05144acb19c7050b66b253d616..732f9e9b0922858ed74272c80970dd14aaf8fb15 100644 (file)
@@ -3925,9 +3925,7 @@ static void si_init_config(struct si_context *sctx)
        si_pm4_set_reg(pm4, R_028AC0_DB_SRESULTS_COMPARE_STATE0, 0x0);
        si_pm4_set_reg(pm4, R_028AC4_DB_SRESULTS_COMPARE_STATE1, 0x0);
        si_pm4_set_reg(pm4, R_028AC8_DB_PRELOAD_CONTROL, 0x0);
-       si_pm4_set_reg(pm4, R_02800C_DB_RENDER_OVERRIDE,
-                      S_02800C_FORCE_HIS_ENABLE0(V_02800C_FORCE_DISABLE) |
-                      S_02800C_FORCE_HIS_ENABLE1(V_02800C_FORCE_DISABLE));
+       si_pm4_set_reg(pm4, R_02800C_DB_RENDER_OVERRIDE, 0);
 
        si_pm4_set_reg(pm4, R_028400_VGT_MAX_VTX_INDX, ~0);
        si_pm4_set_reg(pm4, R_028404_VGT_MIN_VTX_INDX, 0);