[Mesa-dev] [PATCH 3/4] st/mesa: don't set coord_enable for gl_PointCoord if using TGSI_SEMANTIC_PCOORD
Marek Olšák
maraeo at gmail.com
Fri Sep 19 12:08:35 PDT 2014
From: Marek Olšák <marek.olsak at amd.com>
This was missed when Christoph Bumiller added PIPE_CAP_TGSI_TEXCOORD.
---
src/mesa/state_tracker/st_atom_rasterizer.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/mesa/state_tracker/st_atom_rasterizer.c b/src/mesa/state_tracker/st_atom_rasterizer.c
index 2bad643..71b7f1b 100644
--- a/src/mesa/state_tracker/st_atom_rasterizer.c
+++ b/src/mesa/state_tracker/st_atom_rasterizer.c
@@ -171,7 +171,8 @@ static void update_raster_state( struct st_context *st )
raster->sprite_coord_enable |= 1 << i;
}
}
- if (fragProg->Base.InputsRead & VARYING_BIT_PNTC) {
+ if (!st->needs_texcoord_semantic &&
+ fragProg->Base.InputsRead & VARYING_BIT_PNTC) {
raster->sprite_coord_enable |=
1 << (VARYING_SLOT_PNTC - VARYING_SLOT_TEX0);
}
--
1.9.1
More information about the mesa-dev
mailing list