summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/nv50/nv50_miptree.c
blob: 7474c6576500cc4bee4cd0cea8c335fe65c50caf (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_state.h"
#include "pipe/p_defines.h"
#include "pipe/p_util.h"
#include "pipe/p_screen.h"

#include "nv50_context.h"

static struct pipe_texture *
nv50_miptree_create(struct pipe_screen *pscreen, const struct pipe_texture *pt)
{
	NOUVEAU_ERR("unimplemented\n");
	return NULL;
}

static void
nv50_miptree_release(struct pipe_screen *pscreen, struct pipe_texture **pt)
{
	NOUVEAU_ERR("unimplemented\n");
}

static struct pipe_surface *
nv50_miptree_surface(struct pipe_screen *pscreen, struct pipe_texture *pt,
		     unsigned face, unsigned level, unsigned zslice)
{
	NOUVEAU_ERR("unimplemented\n");
	return NULL;
}

void
nv50_screen_init_miptree_functions(struct pipe_screen *pscreen)
{
	pscreen->texture_create = nv50_miptree_create;
	pscreen->texture_release = nv50_miptree_release;
	pscreen->get_tex_surface = nv50_miptree_surface;
}

static void
nv50_miptree_update(struct pipe_context *pipe, struct pipe_texture *mt,
		    uint face, uint levels)
{
}

void
nv50_init_miptree_functions(struct nv50_context *nv50)
{
	nv50->pipe.texture_update = nv50_miptree_update;
}