summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/draw/draw_context.c
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2008-10-06 12:22:55 +0100
committerKeith Whitwell <[email protected]>2008-10-07 16:33:52 +0100
commitc48da7d78b4e7bdbe056b3c9668756d49019be06 (patch)
tree9ebc03ca000b5c1d34e666ee3d1ad8ba15e5735e /src/gallium/auxiliary/draw/draw_context.c
parent23e62c94ee17f21e99cc2e11fb1f960c0eb56f16 (diff)
draw: add switch for drivers to force vertex data passthrough
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_context.c')
-rw-r--r--src/gallium/auxiliary/draw/draw_context.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_context.c b/src/gallium/auxiliary/draw/draw_context.c
index 36751c26211..41a4cba1ddd 100644
--- a/src/gallium/auxiliary/draw/draw_context.c
+++ b/src/gallium/auxiliary/draw/draw_context.c
@@ -272,6 +272,14 @@ draw_enable_point_sprites(struct draw_context *draw, boolean enable)
}
+void
+draw_set_force_passthrough( struct draw_context *draw, boolean enable )
+{
+ draw_do_flush( draw, DRAW_FLUSH_STATE_CHANGE );
+ draw->force_passthrough = enable;
+}
+
+
/**
* Ask the draw module for the location/slot of the given vertex attribute in
* a post-transformed vertex.