summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga/svga_state_rss.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2011-07-13 10:58:01 -0600
committerBrian Paul <[email protected]>2011-09-23 07:58:47 -0600
commit2f40e4aac7ab79deb06ff6ab9ae03a896d7a9169 (patch)
treea9223f69183aa85899b538ef08f10dad91ffdb6f /src/gallium/drivers/svga/svga_state_rss.c
parent9a41ecaddddb2f371e207901ae4d86918049c5aa (diff)
svga: implement point sprite suppport
Emit the SVGA3D_RS_POINTSPRITEENABLE render state. When sprite_coord_mode=PIPE_SPRITE_COORD_LOWER_LEFT emit extra frag shader code to invert the Y coordinate of the incoming texcoord.
Diffstat (limited to 'src/gallium/drivers/svga/svga_state_rss.c')
-rw-r--r--src/gallium/drivers/svga/svga_state_rss.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/svga_state_rss.c b/src/gallium/drivers/svga/svga_state_rss.c
index 28f32793742..a37e1f8128b 100644
--- a/src/gallium/drivers/svga/svga_state_rss.c
+++ b/src/gallium/drivers/svga/svga_state_rss.c
@@ -217,6 +217,7 @@ static int emit_rss( struct svga_context *svga,
/* XXX still need to set this? */
EMIT_RS_FLOAT( svga, 0.0, POINTSIZEMIN, fail );
EMIT_RS_FLOAT( svga, SVGA_MAX_POINTSIZE, POINTSIZEMAX, fail );
+ EMIT_RS( svga, curr->pointsprite, POINTSPRITEENABLE, fail);
}
if (dirty & (SVGA_NEW_RAST | SVGA_NEW_FRAME_BUFFER | SVGA_NEW_NEED_PIPELINE))