r600g: fix Z export enable bits.
we should be checking output array not input to decide. Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
97eea87bde
commit
51f9cc4759
|
@ -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);
|
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++) {
|
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,
|
r600_pipe_state_add_reg(rstate,
|
||||||
R_02880C_DB_SHADER_CONTROL,
|
R_02880C_DB_SHADER_CONTROL,
|
||||||
S_02880C_Z_EXPORT_ENABLE(1),
|
S_02880C_Z_EXPORT_ENABLE(1),
|
||||||
|
|
Loading…
Reference in New Issue