From: Alex Deucher Date: Tue, 19 Mar 2013 18:25:32 +0000 (-0400) Subject: r600g: emit DB_SRESULTS_COMPARE_STATE0 on r6xx/r7xx X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a9914117ea31ff4bc9d2e575e7366ddef57e5fea;p=mesa.git r600g: emit DB_SRESULTS_COMPARE_STATE0 on r6xx/r7xx Not using HiS yet, but matches what we do on evergreen+. Signed-off-by: Alex Deucher --- diff --git a/src/gallium/drivers/r600/r600_state.c b/src/gallium/drivers/r600/r600_state.c index 846c1598fcf..c6d98bbccf6 100644 --- a/src/gallium/drivers/r600/r600_state.c +++ b/src/gallium/drivers/r600/r600_state.c @@ -2623,7 +2623,8 @@ void r600_init_atom_start_cs(struct r600_context *rctx) r600_store_value(cb, 0); /* R_0286E0_SPI_FOG_FUNC_SCALE */ r600_store_value(cb, 0); /* R_0286E4_SPI_FOG_FUNC_BIAS */ - r600_store_context_reg_seq(cb, R_028D2C_DB_SRESULTS_COMPARE_STATE1, 2); + r600_store_context_reg_seq(cb, R_028D28_DB_SRESULTS_COMPARE_STATE0, 3); + r600_store_value(cb, 0); /* R_028D28_DB_SRESULTS_COMPARE_STATE0 */ r600_store_value(cb, 0); /* R_028D2C_DB_SRESULTS_COMPARE_STATE1 */ r600_store_value(cb, 0); /* R_028D30_DB_PRELOAD_CONTROL */ diff --git a/src/gallium/drivers/r600/r600d.h b/src/gallium/drivers/r600/r600d.h index 81e5a6c6e1d..9b31383046d 100644 --- a/src/gallium/drivers/r600/r600d.h +++ b/src/gallium/drivers/r600/r600d.h @@ -2318,6 +2318,7 @@ #define R_02880C_DB_SHADER_CONTROL 0x02880C #define R_028D0C_DB_RENDER_CONTROL 0x028D0C #define R_028D10_DB_RENDER_OVERRIDE 0x028D10 +#define R_028D28_DB_SRESULTS_COMPARE_STATE0 0x028D28 #define R_028D2C_DB_SRESULTS_COMPARE_STATE1 0x028D2C #define R_028D30_DB_PRELOAD_CONTROL 0x028D30 #define R_028D44_DB_ALPHA_TO_MASK 0x028D44