ext_gpu_shader4: add compiler tests for everything
[piglit.git] / tests / spec / arb_pipeline_statistics_query / pipestat_help.h
blob5779129f777ca734ab5e5ed17f8e4a84191ac52c
1 #define TEST_HEIGHT 10
2 #define TEST_WIDTH 10
4 /* We're going to be emitting a TRISTRIP to form a square (after doing a
5 * clear). This makes our pipeline quite predictable. */
6 #define NUM_VERTS 4
7 #define NUM_PRIMS 2
9 struct query {
10 GLuint obj;
11 GLuint query;
12 GLuint64 min;
13 GLuint64 max;
16 static inline void
17 begin_query(const struct query *q)
19 glBeginQuery(q->query, q->obj);
22 static inline void
23 end_query(const struct query *q)
25 glEndQuery(q->query);
28 void do_query_init(struct query *queries, const int count);
29 enum piglit_result do_query(const struct query *queries, const int count);
30 enum piglit_result do_query_func(const struct query *queries,
31 const int count, void (*draw)(void));