summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/p_context.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/pipe/p_context.h')
-rw-r--r--src/mesa/pipe/p_context.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/mesa/pipe/p_context.h b/src/mesa/pipe/p_context.h
index e4115226e7e..05a175c8dc0 100644
--- a/src/mesa/pipe/p_context.h
+++ b/src/mesa/pipe/p_context.h
@@ -28,7 +28,9 @@
#ifndef PIPE_CONTEXT_H
#define PIPE_CONTEXT_H
-#include "mtypes.h"
+#include "main/mtypes.h"
+#include "p_state.h"
+
/* Kludge:
*/
@@ -57,6 +59,12 @@ struct pipe_context {
void (*clear)(struct pipe_context *pipe, GLboolean color, GLboolean depth,
GLboolean stencil, GLboolean accum);
+ /** occlusion counting (XXX this may be temporary - we should probably
+ * have generic query objects with begin/end methods)
+ */
+ void (*reset_occlusion_counter)(struct pipe_context *pipe);
+ GLuint (*get_occlusion_counter)(struct pipe_context *pipe);
+
/*
* State functions
*/