nv30_init_query_functions(nv30);
nv30_init_surface_functions(nv30);
nv30_init_state_functions(nv30);
+ nv30_init_miptree_functions(nv30);
nv30->draw = draw_create();
assert(nv30->draw);
extern void nv30_init_state_functions(struct nv30_context *nv30);
extern void nv30_init_surface_functions(struct nv30_context *nv30);
-extern void nv30_init_miptree_functions(struct pipe_screen *screen);
+extern void nv30_init_miptree_functions(struct nv30_context *nv30);
extern void nv30_init_query_functions(struct nv30_context *nv30);
+extern void nv30_screen_init_miptree_functions(struct pipe_screen *pscreen);
+
/* nv30_draw.c */
extern struct draw_stage *nv30_draw_render_stage(struct nv30_context *nv30);
}
static struct pipe_texture *
-nv30_miptree_create(struct pipe_screen *screen, struct pipe_texture *pt)
+nv30_miptree_create(struct pipe_screen *screen, const struct pipe_texture *pt)
{
struct pipe_winsys *ws = screen->winsys;
struct nv30_miptree *mt;
}
}
+static void
+nv30_miptree_update(struct pipe_context *pipe, struct pipe_texture *mt)
+{
+}
+
static struct pipe_surface *
nv30_miptree_surface_get(struct pipe_screen *screen, struct pipe_texture *pt,
unsigned face, unsigned level, unsigned zslice)
return ps;
}
+
void
-nv30_init_miptree_functions(struct pipe_screen *screen)
+nv30_init_miptree_functions(struct nv30_context *nv30)
{
- struct nv30_screen *nv30screen = nv30_screen(screen);
+ nv30->pipe.texture_update = nv30_miptree_update;
+}
- nv30screen->screen.texture_create = nv30_miptree_create;
- nv30screen->screen.texture_release = nv30_miptree_release;
- nv30screen->screen.get_tex_surface = nv30_miptree_surface_get;
+void
+nv30_screen_init_miptree_functions(struct pipe_screen *pscreen)
+{
+ pscreen->texture_create = nv30_miptree_create;
+ pscreen->texture_release = nv30_miptree_release;
+ pscreen->get_tex_surface = nv30_miptree_surface_get;
}
nv30screen->screen.is_format_supported =
nv30_screen_is_format_supported;
- nv30_init_miptree_functions(&nv30screen->screen);
+ nv30_screen_init_miptree_functions(&nv30screen->screen);
+
return &nv30screen->screen;
}