aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600/r600_state.c
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2010-08-30 14:41:09 +1000
committerDave Airlie <[email protected]>2010-08-30 15:04:40 +1000
commit4502b17901ad491e0598ee59a12d372c008ae03b (patch)
tree68f9196ccbd8cee575f99ddcf87c54d754d78324 /src/gallium/drivers/r600/r600_state.c
parentcb08b9fa84bf432dcca2e685daadd2df651b3025 (diff)
r600g: add KILP support
passes glsl1-discard tests
Diffstat (limited to 'src/gallium/drivers/r600/r600_state.c')
-rw-r--r--src/gallium/drivers/r600/r600_state.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_state.c b/src/gallium/drivers/r600/r600_state.c
index b5e5346163c..441be8fd6df 100644
--- a/src/gallium/drivers/r600/r600_state.c
+++ b/src/gallium/drivers/r600/r600_state.c
@@ -999,6 +999,8 @@ static struct radeon_state *r600_dsa(struct r600_context *rctx)
db_shader_control = 0x210;
rshader = &rctx->ps_shader->shader;
+ if (rshader->uses_kill)
+ db_shader_control |= (1 << 6);
for (i = 0; i < rshader->noutput; i++) {
if (rshader->output[i].name == TGSI_SEMANTIC_POSITION)
db_shader_control |= 1;