summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/draw/draw_private.h
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2008-04-16 10:03:18 +0100
committerKeith Whitwell <[email protected]>2008-04-16 12:22:20 +0100
commita8582efaca35d09c8ca18918a243a9284583356d (patch)
tree827dbeb314a56d85e3fc7916a90d721b4debbaa7 /src/gallium/auxiliary/draw/draw_private.h
parentfd6acabd2f62fe006b078ae7640a944c7f65903c (diff)
draw: make pt run pipeline when need_pipeline is true, not just when clipped
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_private.h')
-rw-r--r--src/gallium/auxiliary/draw/draw_private.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/gallium/auxiliary/draw/draw_private.h b/src/gallium/auxiliary/draw/draw_private.h
index c8cb96c8ba0..8ac061cc9f8 100644
--- a/src/gallium/auxiliary/draw/draw_private.h
+++ b/src/gallium/auxiliary/draw/draw_private.h
@@ -182,6 +182,12 @@ typedef void (*pt_fetch_func)( struct draw_context *draw,
struct vbuf_render;
+
+#define PT_SHADE 0x1
+#define PT_CLIPTEST 0x2
+#define PT_PIPELINE 0x4
+#define PT_MAX_MIDDLE 0x8
+
/**
* Private context for the drawing module.
*/
@@ -219,15 +225,10 @@ struct draw_context
unsigned hw_vertex_size; /* XXX: to be removed */
struct {
- struct draw_pt_middle_end *fetch_emit;
- struct draw_pt_middle_end *fetch_pipeline;
- struct draw_pt_middle_end *fetch_shade_emit;
- struct draw_pt_middle_end *fetch_shade_cliptest_pipeline_or_emit;
+ struct draw_pt_middle_end *opt[PT_MAX_MIDDLE];
} middle;
struct {
- struct draw_pt_front_end *noop;
- struct draw_pt_front_end *split_arrays;
struct draw_pt_front_end *vcache;
} front;