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 f668e2e7d7a3e223bb2f5159839c91cc048b12f8..3e23e540f9d57e432a8ae19c0c983173e163dfc1 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 599ff2ac458cb8dc28201fe9d4fdd6895543db7f..1d7a1fffe4da3ba16a7bd04761aed65c726f4cbe 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 87a66b66d75d76e066b549b35f829ed7d592d33e..7ebc2851928580d804b1fbd8bda32e1111fa0932 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 77dec9488dfaca4837de846461d39c97a5ee68d4..d15143acfd4a0865e9005d07f74e3516805d153d 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 a70752428afd07f1c86fc34f41a6cd390aa54e74..b14758f333656ac9fa37ae9d55cb5d01df548e01 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 f42f7fcc5f1ad547774b587b1f7f22eb823f1da4..77376099f0d01a3d6b1c07e204604bddc3476463 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;