Mesa (master): r600g: fix Z export enable bits.
Dave Airlie
airlied at kemper.freedesktop.org
Thu Oct 7 05:33:16 UTC 2010
Module: Mesa
Branch: master
Commit: 51f9cc4759c23b74a2e4d9c79b0a5df27d403f54
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=51f9cc4759c23b74a2e4d9c79b0a5df27d403f54
Author: Dave Airlie <airlied at redhat.com>
Date: Thu Oct 7 15:32:05 2010 +1000
r600g: fix Z export enable bits.
we should be checking output array not input to decide.
Signed-off-by: Dave Airlie <airlied at redhat.com>
---
src/gallium/drivers/r600/r600_shader.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c
index 1f79c15..366d5d9 100644
--- a/src/gallium/drivers/r600/r600_shader.c
+++ b/src/gallium/drivers/r600/r600_shader.c
@@ -132,7 +132,7 @@ static void r600_pipe_shader_ps(struct pipe_context *ctx, struct r600_pipe_shade
r600_pipe_state_add_reg(rstate, R_028644_SPI_PS_INPUT_CNTL_0 + i * 4, tmp, 0xFFFFFFFF, NULL);
}
for (i = 0; i < rshader->noutput; i++) {
- if (rshader->input[i].name == TGSI_SEMANTIC_POSITION)
+ if (rshader->output[i].name == TGSI_SEMANTIC_POSITION)
r600_pipe_state_add_reg(rstate,
R_02880C_DB_SHADER_CONTROL,
S_02880C_Z_EXPORT_ENABLE(1),
More information about the mesa-commit
mailing list