summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/nv50/nv50_query.c
blob: d8c3491c2c5a5ce1ed80b2a4f047b6b4d1ada387 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#include "pipe/p_context.h"

#include "nv50_context.h"

static struct pipe_query *
nv50_query_create(struct pipe_context *pipe, unsigned type)
{
	NOUVEAU_ERR("unimplemented\n");
	return NULL;
}

static void
nv50_query_destroy(struct pipe_context *pipe, struct pipe_query *q)
{
	NOUVEAU_ERR("unimplemented\n");
}

static void
nv50_query_begin(struct pipe_context *pipe, struct pipe_query *q)
{
	NOUVEAU_ERR("unimplemented\n");
}

static void
nv50_query_end(struct pipe_context *pipe, struct pipe_query *q)
{
	NOUVEAU_ERR("unimplemented\n");
}

static boolean
nv50_query_result(struct pipe_context *pipe, struct pipe_query *q,
		  boolean wait, uint64 *result)
{
	NOUVEAU_ERR("unimplemented\n");
	*result = 0xdeadcafe;
	return TRUE;
}

void
nv50_init_query_functions(struct nv50_context *nv50)
{
	nv50->pipe.create_query = nv50_query_create;
	nv50->pipe.destroy_query = nv50_query_destroy;
	nv50->pipe.begin_query = nv50_query_begin;
	nv50->pipe.end_query = nv50_query_end;
	nv50->pipe.get_query_result = nv50_query_result;
}