summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2010-09-24 16:36:16 +1000
committerDave Airlie <[email protected]>2010-09-24 16:36:54 +1000
commitefa111a6cbfe03318a0e0569d4c9205a16d56857 (patch)
treeae4e3e27dbc352eee2693ed225a8dc4fa3b9a0f0 /src
parent428b101af922fce5358af501b7a4d90697f35368 (diff)
r600g: fixup sprite coord enable.
this fixes piglit glsl-fs-pointcoord
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/r600/r600_hw_states.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/r600_hw_states.c b/src/gallium/drivers/r600/r600_hw_states.c
index 9cbf12008b7..892666b00b6 100644
--- a/src/gallium/drivers/r600/r600_hw_states.c
+++ b/src/gallium/drivers/r600/r600_hw_states.c
@@ -1019,7 +1019,8 @@ static int r600_ps_shader(struct r600_context *rctx, struct r600_context_state *
if (rshader->input[i].name == TGSI_SEMANTIC_FACE)
have_face = TRUE;
- if (rasterizer->sprite_coord_enable & (1 << i)) {
+ if (rshader->input[i].name == TGSI_SEMANTIC_GENERIC &&
+ rasterizer->sprite_coord_enable & (1 << rshader->input[i].sid)) {
tmp |= S_028644_PT_SPRITE_TEX(1);
}
state->states[R600_PS_SHADER__SPI_PS_INPUT_CNTL_0 + i] = tmp;