gallium: initialize simple screen in drivers
authorZack Rusin <zackr@vmware.com>
Sat, 31 Jan 2009 20:14:38 +0000 (15:14 -0500)
committerZack Rusin <zackr@vmware.com>
Sat, 31 Jan 2009 20:14:38 +0000 (15:14 -0500)
src/gallium/auxiliary/util/u_simple_screen.h
src/gallium/drivers/cell/ppu/cell_screen.c
src/gallium/drivers/i915simple/i915_screen.c
src/gallium/drivers/i965simple/brw_screen.c
src/gallium/drivers/nv04/nv04_screen.c
src/gallium/drivers/nv10/nv10_screen.c
src/gallium/drivers/nv20/nv20_screen.c
src/gallium/drivers/nv30/nv30_screen.c
src/gallium/drivers/nv40/nv40_screen.c
src/gallium/drivers/nv50/nv50_screen.c
src/gallium/drivers/softpipe/sp_screen.c

index c575b46c85c19e32076f65002fb5ff51f7cda777..6612a8a7c09ab5f880764f61c7ab9dd73340d1ae 100644 (file)
@@ -34,7 +34,7 @@ struct pipe_winsys;
 /**
  * The following function initializes a simple passthrough screen.
  *
- * All the relevant screen function pointers will forward to the
+ * All the relevant screen function pointers will forwarded to the
  * winsys.
  */
 void u_simple_screen_init(struct pipe_screen *screen);
index bbe80793ca9a4ffad5bddf44a83ae92378512c3a..512d85d3525a1866fb41405665e82cb88d255a3a 100644 (file)
@@ -27,6 +27,7 @@
 
 
 #include "util/u_memory.h"
+#include "util/u_simple_screen.h"
 #include "pipe/internal/p_winsys_screen.h"
 #include "pipe/p_defines.h"
 #include "pipe/p_screen.h"
@@ -169,6 +170,7 @@ cell_create_screen(struct pipe_winsys *winsys)
    screen->is_format_supported = cell_is_format_supported;
 
    cell_init_screen_texture_funcs(screen);
+   u_simple_screen_init(screen);
 
    return screen;
 }
index 069cc331bb25e3f3ee90b9d455974fec878c7a70..5bb127f3d54810e925874a5be420267d6874c089 100644 (file)
@@ -27,6 +27,7 @@
 
 
 #include "util/u_memory.h"
+#include "util/u_simple_screen.h"
 #include "pipe/internal/p_winsys_screen.h"
 #include "pipe/p_inlines.h"
 #include "util/u_string.h"
@@ -279,6 +280,7 @@ i915_create_screen(struct pipe_winsys *winsys, uint pci_id)
    i915screen->screen.surface_unmap = i915_surface_unmap;
 
    i915_init_screen_texture_functions(&i915screen->screen);
+   u_simple_screen_init(&i915screen->screen);
 
    return &i915screen->screen;
 }
index 036ddd8c90dad65145a291bf945bf5152d29651a..b22e105f10665433ad8b6ae06d7cdc123c611545 100644 (file)
@@ -29,6 +29,7 @@
 #include "util/u_memory.h"
 #include "pipe/internal/p_winsys_screen.h"
 #include "util/u_string.h"
+#include "util/u_simple_screen.h"
 
 #include "brw_context.h"
 #include "brw_screen.h"
@@ -239,6 +240,7 @@ brw_create_screen(struct pipe_winsys *winsys, uint pci_id)
    brwscreen->screen.is_format_supported = brw_is_format_supported;
 
    brw_init_screen_texture_funcs(&brwscreen->screen);
+   u_simple_screen_init(&brwscreen->screen);
 
    return &brwscreen->screen;
 }
index 65eacde6b2ee4708e552fbf3320628be2e388f5c..9ce3176aa141bb167a79fb0d43baea2730373bed 100644 (file)
@@ -1,4 +1,5 @@
 #include "pipe/p_screen.h"
+#include "util/u_simple_screen.h"
 
 #include "nv04_context.h"
 #include "nv04_screen.h"
@@ -208,6 +209,7 @@ nv04_screen_create(struct pipe_winsys *ws, struct nouveau_winsys *nvws)
        screen->pipe.surface_unmap = nv04_surface_unmap;
 
        nv04_screen_init_miptree_functions(&screen->pipe);
+       u_simple_screen_init(&screen->pipe);
 
        return &screen->pipe;
 }
index 4d9fbd4b5f613d8b58b1812df313d24bbbd16841..12516fd71e723de1b057f20e9e505ceacb7825fe 100644 (file)
@@ -1,4 +1,5 @@
 #include "pipe/p_screen.h"
+#include "util/u_simple_screen.h"
 
 #include "nv10_context.h"
 #include "nv10_screen.h"
@@ -204,6 +205,7 @@ nv10_screen_create(struct pipe_winsys *ws, struct nouveau_winsys *nvws)
        screen->pipe.surface_unmap = nv10_surface_unmap;
 
        nv10_screen_init_miptree_functions(&screen->pipe);
+       u_simple_screen_init(&screen->pipe);
 
        return &screen->pipe;
 }
index 2ca6e6b14980e70702170fe2ca18e6b21c154a55..f09b364b8d9c8499213f16091929878683811db9 100644 (file)
@@ -1,4 +1,5 @@
 #include "pipe/p_screen.h"
+#include "util/u_simple_screen.h"
 
 #include "nv20_context.h"
 #include "nv20_screen.h"
@@ -200,6 +201,7 @@ nv20_screen_create(struct pipe_winsys *ws, struct nouveau_winsys *nvws)
        screen->pipe.surface_unmap = nv20_surface_unmap;
 
        nv20_screen_init_miptree_functions(&screen->pipe);
+       u_simple_screen_init(&screen->pipe);
 
        return &screen->pipe;
 }
index 1fac6d3df831b77379a3a2ce9eec764219ebea53..0f10d914ad2b06df07de9d25a7dcdd28b3b6d00d 100644 (file)
@@ -1,4 +1,5 @@
 #include "pipe/p_screen.h"
+#include "util/u_simple_screen.h"
 
 #include "nv30_context.h"
 #include "nv30_screen.h"
@@ -381,6 +382,7 @@ nv30_screen_create(struct pipe_winsys *ws, struct nouveau_winsys *nvws)
        screen->pipe.surface_unmap = nv30_surface_unmap;
 
        nv30_screen_init_miptree_functions(&screen->pipe);
+       u_simple_screen_init(&screen->pipe);
 
        return &screen->pipe;
 }
index ab128fecda7bedda6ff919508b6c8055febf2a97..46fe133d71cd77bc914be87eb29c0b2dda630162 100644 (file)
@@ -1,4 +1,5 @@
 #include "pipe/p_screen.h"
+#include "util/u_simple_screen.h"
 
 #include "nv40_context.h"
 #include "nv40_screen.h"
@@ -363,6 +364,7 @@ nv40_screen_create(struct pipe_winsys *ws, struct nouveau_winsys *nvws)
        screen->pipe.surface_unmap = nv40_surface_unmap;
 
        nv40_screen_init_miptree_functions(&screen->pipe);
+       u_simple_screen_init(&screen->pipe);
 
        return &screen->pipe;
 }
index ef46233f83985301ef359a5357e0d8e0d0161f27..6cddddacd5be809408176fa7e45300d1b7a039be 100644 (file)
@@ -22,6 +22,8 @@
 
 #include "pipe/p_screen.h"
 
+#include "util/u_simple_screen.h"
+
 #include "nv50_context.h"
 #include "nv50_screen.h"
 
@@ -323,6 +325,7 @@ nv50_screen_create(struct pipe_winsys *ws, struct nouveau_winsys *nvws)
 
        nv50_screen_init_miptree_functions(&screen->pipe);
        nv50_surface_init_screen_functions(&screen->pipe);
+       u_simple_screen_init(&screen->pipe);
 
        return &screen->pipe;
 }
index 4bd95a61e6a7d0965cd323ed5f75b50f4cd9bee6..7380a6ae2be9010469d01f82511272ca7e2e015c 100644 (file)
@@ -27,6 +27,7 @@
 
 
 #include "util/u_memory.h"
+#include "util/u_simple_screen.h"
 #include "pipe/internal/p_winsys_screen.h"
 #include "pipe/p_defines.h"
 #include "pipe/p_screen.h"
@@ -174,6 +175,7 @@ softpipe_create_screen(struct pipe_winsys *winsys)
    screen->base.is_format_supported = softpipe_is_format_supported;
 
    softpipe_init_screen_texture_funcs(&screen->base);
+   u_simple_screen_init(&screen->base);
 
    return &screen->base;
 }