gallium: Propagate tex_usage flags down to winsys.
authorJosé Fonseca <jrfonseca@tungstengraphics.com>
Wed, 7 May 2008 05:17:59 +0000 (14:17 +0900)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Wed, 7 May 2008 05:17:59 +0000 (14:17 +0900)
src/gallium/drivers/i915simple/i915_texture.c
src/gallium/drivers/softpipe/sp_texture.c
src/gallium/include/pipe/p_winsys.h
src/gallium/winsys/dri/intel/intel_winsys_pipe.c
src/gallium/winsys/xlib/xm_winsys.c
src/gallium/winsys/xlib/xm_winsys_aub.c

index f668e2e..3e23e54 100644 (file)
@@ -127,7 +127,8 @@ i915_displaytarget_layout(struct pipe_screen *screen,
                               tex->base.width[0], 
                               tex->base.height[0],
                               tex->base.format,
-                              flags);
+                              flags,
+                              tex->base.tex_usage);
       
    /* Now extract the goodies: 
     */
index 599ff2a..1d7a1ff 100644 (file)
@@ -115,7 +115,8 @@ softpipe_displaytarget_layout(struct pipe_screen *screen,
                               spt->base.width[0], 
                               spt->base.height[0],
                               spt->base.format,
-                              flags);
+                              flags,
+                              spt->base.tex_usage);
       
    /* Now extract the goodies: 
     */
index 87a66b6..7ebc285 100644 (file)
@@ -86,7 +86,8 @@ struct pipe_winsys
                                 struct pipe_surface *surf,
                                 unsigned width, unsigned height,
                                 enum pipe_format format,
-                                unsigned flags);
+                                unsigned flags,
+                                unsigned tex_usage);
    
    void (*surface_release)(struct pipe_winsys *ws, struct pipe_surface **s);
 
index 77dec94..d15143a 100644 (file)
@@ -206,7 +206,8 @@ intel_i915_surface_alloc_storage(struct pipe_winsys *winsys,
                                  struct pipe_surface *surf,
                                  unsigned width, unsigned height,
                                  enum pipe_format format, 
-                                 unsigned flags)
+                                 unsigned flags,
+                                 unsigned tex_usage)
 {
    const unsigned alignment = 64;
    int ret;
index a707524..b14758f 100644 (file)
@@ -489,7 +489,8 @@ xm_surface_alloc_storage(struct pipe_winsys *winsys,
                          struct pipe_surface *surf,
                          unsigned width, unsigned height,
                          enum pipe_format format, 
-                         unsigned flags)
+                         unsigned flags,
+                         unsigned tex_usage)
 {
    const unsigned alignment = 64;
 
index f42f7fc..7737609 100644 (file)
@@ -276,7 +276,8 @@ aub_i915_surface_alloc_storage(struct pipe_winsys *winsys,
                                struct pipe_surface *surf,
                                unsigned width, unsigned height,
                                enum pipe_format format,
-                               unsigned flags)
+                               unsigned flags,
+                               unsigned tex_usage)
 {
     const unsigned alignment = 64;