summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/draw/draw_context.c
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2008-04-14 12:08:46 +0100
committerKeith Whitwell <keith@tungstengraphics.com>2008-04-14 12:08:46 +0100
commitcaf293343fd236e97ce399533ac0ada3c7afee7a (patch)
tree44e8de95d29607e8df7d6126ee4f13ef9216e783 /src/gallium/auxiliary/draw/draw_context.c
parent8e7326832a7420154fc0d526ac682494db1be160 (diff)
draw: hide passthrough shading paths behind an environment variable
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_context.c')
-rw-r--r--src/gallium/auxiliary/draw/draw_context.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_context.c b/src/gallium/auxiliary/draw/draw_context.c
index cdca556fbd..1e70a77523 100644
--- a/src/gallium/auxiliary/draw/draw_context.c
+++ b/src/gallium/auxiliary/draw/draw_context.c
@@ -49,6 +49,8 @@ struct draw_context *draw_create( void )
draw->use_sse = FALSE;
#endif
+ draw->use_pt_shaders = GETENV( "GALLIUM_PT_SHADERS" ) != NULL;
+
/* create pipeline stages */
draw->pipeline.wide_line = draw_wide_line_stage( draw );
draw->pipeline.wide_point = draw_wide_point_stage( draw );