summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2010-08-31 15:12:24 +1000
committerDave Airlie <airlied@redhat.com>2010-08-31 15:13:24 +1000
commitad202678fc4859b51a9198575a886707f57ad05b (patch)
treefce14b6d6bbd64c7ad1ac2d567a9c89b7b20f28e /src
parent580781babe99bbfd0181b911e1e53e94728faa04 (diff)
r600g: fix fp-fragment-position test.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/r600/r600_shader.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c
index dae3781978..d81308b211 100644
--- a/src/gallium/drivers/r600/r600_shader.c
+++ b/src/gallium/drivers/r600/r600_shader.c
@@ -207,6 +207,7 @@ static int r600_pipe_shader_ps(struct pipe_context *ctx, struct r600_context_sta
if (have_pos) {
state->states[R600_PS_SHADER__SPI_PS_IN_CONTROL_0] |= S_0286CC_POSITION_ENA(1) |
S_0286CC_BARYC_SAMPLE_CNTL(1);
+ state->states[R600_PS_SHADER__SPI_INPUT_Z] |= 1;
}
state->states[R600_PS_SHADER__SPI_PS_IN_CONTROL_1] = 0x00000000;
state->states[R600_PS_SHADER__SQ_PGM_RESOURCES_PS] = S_028868_NUM_GPRS(rshader->bc.ngpr) |