summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2014-04-17 16:15:37 -0600
committerBrian Paul <brianp@vmware.com>2014-04-17 16:15:37 -0600
commit744d2a225d4012bb4dcd13e0cb6c2c834f481e26 (patch)
treeb0c67523746f1485c63154976c8f18c6ecff812d
parentcb34575e19e10b94e90ffb730b962e6930b47a19 (diff)
svga: fix comment for emit_adjusted_vertex_attribs()
-rw-r--r--src/gallium/drivers/svga/svga_tgsi_insn.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/svga/svga_tgsi_insn.c b/src/gallium/drivers/svga/svga_tgsi_insn.c
index a44ef3a80a..b68b01a04a 100644
--- a/src/gallium/drivers/svga/svga_tgsi_insn.c
+++ b/src/gallium/drivers/svga/svga_tgsi_insn.c
@@ -3525,9 +3525,9 @@ emit_inverted_texcoords(struct svga_shader_emitter *emit)
/**
- * Emit code to invert the T component of the incoming texture coordinate.
- * This is used for drawing point sprites when
- * pipe_rasterizer_state::sprite_coord_mode == PIPE_SPRITE_COORD_LOWER_LEFT.
+ * Emit code to adjust vertex shader inputs/attributes:
+ * - Change range from [0,1] to [-1,1] (for normalized byte/short attribs).
+ * - Set attrib W component = 1.
*/
static boolean
emit_adjusted_vertex_attribs(struct svga_shader_emitter *emit)