Merge branch 'upstream-gallium-0.1' into darktama-gallium-0.1
[mesa.git] / src / mesa / pipe / nv50 / nv50_query.c
1 #include "pipe/p_context.h"
2
3 #include "nv50_context.h"
4
5 static struct pipe_query *
6 nv50_query_create(struct pipe_context *pipe, unsigned type)
7 {
8 NOUVEAU_ERR("unimplemented\n");
9 return NULL;
10 }
11
12 static void
13 nv50_query_destroy(struct pipe_context *pipe, struct pipe_query *q)
14 {
15 NOUVEAU_ERR("unimplemented\n");
16 }
17
18 static void
19 nv50_query_begin(struct pipe_context *pipe, struct pipe_query *q)
20 {
21 NOUVEAU_ERR("unimplemented\n");
22 }
23
24 static void
25 nv50_query_end(struct pipe_context *pipe, struct pipe_query *q)
26 {
27 NOUVEAU_ERR("unimplemented\n");
28 }
29
30 static boolean
31 nv50_query_result(struct pipe_context *pipe, struct pipe_query *q,
32 boolean wait, uint64 *result)
33 {
34 NOUVEAU_ERR("unimplemented\n");
35 *result = 0xdeadcafe;
36 return TRUE;
37 }
38
39 void
40 nv50_init_query_functions(struct nv50_context *nv50)
41 {
42 nv50->pipe.create_query = nv50_query_create;
43 nv50->pipe.destroy_query = nv50_query_destroy;
44 nv50->pipe.begin_query = nv50_query_begin;
45 nv50->pipe.end_query = nv50_query_end;
46 nv50->pipe.get_query_result = nv50_query_result;
47 }