mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-05 15:08:15 +02:00
r600g: fixup sprite coord enable.
this fixes piglit glsl-fs-pointcoord
This commit is contained in:
parent
428b101af9
commit
efa111a6cb
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue