i915g: Rename screen field on screen to base
authorJakob Bornecrantz <wallbraker@gmail.com>
Sat, 29 Aug 2009 10:32:32 +0000 (11:32 +0100)
committerJakob Bornecrantz <wallbraker@gmail.com>
Mon, 31 Aug 2009 15:29:57 +0000 (16:29 +0100)
src/gallium/drivers/i915simple/i915_screen.c
src/gallium/drivers/i915simple/i915_screen.h

index a3de38d5860b87e60865a1dbeec486c46fb624cd..c9a9e90f0e6c41a781986c811e2a44b0a8c415a2 100644 (file)
@@ -328,22 +328,22 @@ i915_create_screen(struct pipe_winsys *winsys, uint pci_id)
 
    i915screen->pci_id = pci_id;
 
-   i915screen->screen.winsys = winsys;
+   i915screen->base.winsys = winsys;
 
-   i915screen->screen.destroy = i915_destroy_screen;
+   i915screen->base.destroy = i915_destroy_screen;
 
-   i915screen->screen.get_name = i915_get_name;
-   i915screen->screen.get_vendor = i915_get_vendor;
-   i915screen->screen.get_param = i915_get_param;
-   i915screen->screen.get_paramf = i915_get_paramf;
-   i915screen->screen.is_format_supported = i915_is_format_supported;
-   i915screen->screen.get_tex_transfer = i915_get_tex_transfer;
-   i915screen->screen.tex_transfer_destroy = i915_tex_transfer_destroy;
-   i915screen->screen.transfer_map = i915_transfer_map;
-   i915screen->screen.transfer_unmap = i915_transfer_unmap;
+   i915screen->base.get_name = i915_get_name;
+   i915screen->base.get_vendor = i915_get_vendor;
+   i915screen->base.get_param = i915_get_param;
+   i915screen->base.get_paramf = i915_get_paramf;
+   i915screen->base.is_format_supported = i915_is_format_supported;
+   i915screen->base.get_tex_transfer = i915_get_tex_transfer;
+   i915screen->base.tex_transfer_destroy = i915_tex_transfer_destroy;
+   i915screen->base.transfer_map = i915_transfer_map;
+   i915screen->base.transfer_unmap = i915_transfer_unmap;
 
-   i915_init_screen_texture_functions(&i915screen->screen);
-   u_simple_screen_init(&i915screen->screen);
+   i915_init_screen_texture_functions(&i915screen->base);
+   u_simple_screen_init(&i915screen->base);
 
-   return &i915screen->screen;
+   return &i915screen->base;
 }
index 5284c325951d2d36135653ed8418b510f540f3bb..7d5f0f05a5bcafd84bbdd5a5f1be9949e50ada69 100644 (file)
@@ -30,6 +30,7 @@
 #define I915_SCREEN_H
 
 
+#include "pipe/p_state.h"
 #include "pipe/p_screen.h"
 
 
@@ -43,7 +44,7 @@ extern "C" {
  */
 struct i915_screen
 {
-   struct pipe_screen screen;
+   struct pipe_screen base;
 
    boolean is_i945;
    uint pci_id;