r600g: fixup sprite coord enable.

this fixes piglit glsl-fs-pointcoord
This commit is contained in:
Dave Airlie 2010-09-24 16:36:16 +10:00
parent 428b101af9
commit efa111a6cb

View file

@ -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;