Mesa (master): r600g: drop depth quirk on evergreen
Dave Airlie
airlied at kemper.freedesktop.org
Fri Oct 1 00:30:38 UTC 2010
Module: Mesa
Branch: master
Commit: 40ccb235d693ea6184ab61529f2910086e68edda
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=40ccb235d693ea6184ab61529f2910086e68edda
Author: Dave Airlie <airlied at redhat.com>
Date: Fri Oct 1 10:19:39 2010 +1000
r600g: drop depth quirk on evergreen
none of the EG cards need the quirk.
---
src/gallium/drivers/r600/evergreen_state.c | 15 ---------------
1 files changed, 0 insertions(+), 15 deletions(-)
diff --git a/src/gallium/drivers/r600/evergreen_state.c b/src/gallium/drivers/r600/evergreen_state.c
index 21d3394..7337839 100644
--- a/src/gallium/drivers/r600/evergreen_state.c
+++ b/src/gallium/drivers/r600/evergreen_state.c
@@ -1650,24 +1650,9 @@ void *evergreen_create_db_flush_dsa(struct r600_pipe_context *rctx)
{
struct pipe_depth_stencil_alpha_state dsa;
struct r600_pipe_state *rstate;
- boolean quirk = false;
-
- if (rctx->family == CHIP_RV610 || rctx->family == CHIP_RV630 ||
- rctx->family == CHIP_RV620 || rctx->family == CHIP_RV635)
- quirk = true;
memset(&dsa, 0, sizeof(dsa));
- if (quirk) {
- dsa.depth.enabled = 1;
- dsa.depth.func = PIPE_FUNC_LEQUAL;
- dsa.stencil[0].enabled = 1;
- dsa.stencil[0].func = PIPE_FUNC_ALWAYS;
- dsa.stencil[0].zpass_op = PIPE_STENCIL_OP_KEEP;
- dsa.stencil[0].zfail_op = PIPE_STENCIL_OP_INCR;
- dsa.stencil[0].writemask = 0xff;
- }
-
rstate = rctx->context.create_depth_stencil_alpha_state(&rctx->context, &dsa);
r600_pipe_state_add_reg(rstate,
R_02880C_DB_SHADER_CONTROL,
More information about the mesa-commit
mailing list