summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/p_context.h
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2007-08-21 19:46:48 +0100
committerKeith Whitwell <[email protected]>2007-08-21 19:46:48 +0100
commitce4659e92acfbb0ff8a93a6e619c44b839505ca9 (patch)
treea03a38deaf7008735153f30a60f4ea27380fe9d4 /src/mesa/pipe/p_context.h
parent93c7173ed2fbe2bc47ee6879af89366cafd90ba5 (diff)
First pass at a fallback concept for pipe devices.
Creates a new pipe driver that feeds commands to either a hardware or software pipe depending on fallback state. Untested concept checkpoint. At this point it compiles.
Diffstat (limited to 'src/mesa/pipe/p_context.h')
-rw-r--r--src/mesa/pipe/p_context.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/mesa/pipe/p_context.h b/src/mesa/pipe/p_context.h
index c4496cda507..3a656b272ea 100644
--- a/src/mesa/pipe/p_context.h
+++ b/src/mesa/pipe/p_context.h
@@ -60,15 +60,16 @@ struct pipe_context {
/*
- * Drawing
+ * Drawing.
+ * Return false on fallbacks (temporary??)
*/
- void (*draw_arrays)( struct pipe_context *pipe,
- unsigned mode, unsigned start, unsigned count);
+ boolean (*draw_arrays)( struct pipe_context *pipe,
+ unsigned mode, unsigned start, unsigned count);
- void (*draw_elements)( struct pipe_context *pipe,
- struct pipe_buffer_handle *indexBuffer,
- unsigned indexSize,
- unsigned mode, unsigned start, unsigned count);
+ boolean (*draw_elements)( struct pipe_context *pipe,
+ struct pipe_buffer_handle *indexBuffer,
+ unsigned indexSize,
+ unsigned mode, unsigned start, unsigned count);
/** Clear a surface to given value (no scissor; clear whole surface) */
void (*clear)(struct pipe_context *pipe, struct pipe_surface *ps,