i915g: Cleanup texture init functions a bit
authorJakob Bornecrantz <wallbraker@gmail.com>
Sat, 29 Aug 2009 21:02:49 +0000 (22:02 +0100)
committerJakob Bornecrantz <wallbraker@gmail.com>
Mon, 31 Aug 2009 15:29:57 +0000 (16:29 +0100)
src/gallium/drivers/i915simple/i915_context.c
src/gallium/drivers/i915simple/i915_screen.c
src/gallium/drivers/i915simple/i915_texture.c
src/gallium/drivers/i915simple/i915_texture.h

index 132ed31f38e1878864fd9ed3b9135af3297d3ab7..b77a831ca0b6a4471131f191d5d20e4d77a56215 100644 (file)
@@ -209,7 +209,6 @@ struct pipe_context *i915_create_context( struct pipe_screen *screen,
    i915_init_surface_functions(i915);
    i915_init_state_functions(i915);
    i915_init_flush_functions(i915);
-   i915_init_texture_functions(i915);
 
    draw_install_aaline_stage(i915->draw, &i915->base);
    draw_install_aapoint_stage(i915->draw, &i915->base);
index c9a9e90f0e6c41a781986c811e2a44b0a8c415a2..a7a95edaa05bd4d817893dfc63f643106370c475 100644 (file)
@@ -342,7 +342,7 @@ i915_create_screen(struct pipe_winsys *winsys, uint pci_id)
    i915screen->base.transfer_map = i915_transfer_map;
    i915screen->base.transfer_unmap = i915_transfer_unmap;
 
-   i915_init_screen_texture_functions(&i915screen->base);
+   i915_init_screen_texture_functions(i915screen);
    u_simple_screen_init(&i915screen->base);
 
    return &i915screen->base;
index 0dc6a5474638df3d51895e0ce66071e1d41bd41f..975602a1664adb42562b20a5cfd8465dea7e18fd 100644 (file)
@@ -718,12 +718,6 @@ i915_texture_blanket(struct pipe_screen * screen,
    return &tex->base;
 }
 
-void
-i915_init_texture_functions(struct i915_context *i915)
-{
-//   i915->pipe.texture_update = i915_texture_update;
-}
-
 static void
 i915_tex_surface_destroy(struct pipe_surface *surf)
 {
@@ -732,13 +726,13 @@ i915_tex_surface_destroy(struct pipe_surface *surf)
 }
 
 void
-i915_init_screen_texture_functions(struct pipe_screen *screen)
+i915_init_screen_texture_functions(struct i915_screen *is)
 {
-   screen->texture_create = i915_texture_create;
-   screen->texture_destroy = i915_texture_destroy;
-   screen->get_tex_surface = i915_get_tex_surface;
-   screen->texture_blanket = i915_texture_blanket;
-   screen->tex_surface_destroy = i915_tex_surface_destroy;
+   is->base.texture_create = i915_texture_create;
+   is->base.texture_destroy = i915_texture_destroy;
+   is->base.get_tex_surface = i915_get_tex_surface;
+   is->base.texture_blanket = i915_texture_blanket;
+   is->base.tex_surface_destroy = i915_tex_surface_destroy;
 }
 
 boolean i915_get_texture_buffer( struct pipe_texture *texture,
index 7225016a9f4837ebe8d4da7a722c7ec583b84e53..51a1dd984c8c3ce59bcc5c20602afde35f966469 100644 (file)
 #ifndef I915_TEXTURE_H
 #define I915_TEXTURE_H
 
-struct i915_context;
-struct pipe_screen;
-
+struct i915_screen;
 
 extern void
-i915_init_texture_functions(struct i915_context *i915);
-
-
-extern void
-i915_init_screen_texture_functions(struct pipe_screen *screen);
-
+i915_init_screen_texture_functions(struct i915_screen *is);
 
 #endif /* I915_TEXTURE_H */