Module: Mesa
Branch: master
Commit: bade76191a3a429176694b3d7fd4f68409359735
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=bade76191a3a429176694b3d7fd4f68409359735

Author: José Fonseca <[email protected]>
Date:   Mon Mar 29 17:30:35 2010 +0100

svga: util_format_is_compressed() -> util_format_is_s3tc().

---

 src/gallium/drivers/svga/svga_screen_texture.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/svga/svga_screen_texture.c 
b/src/gallium/drivers/svga/svga_screen_texture.c
index 4a058ed..70d3a8a 100644
--- a/src/gallium/drivers/svga/svga_screen_texture.c
+++ b/src/gallium/drivers/svga/svga_screen_texture.c
@@ -330,7 +330,7 @@ svga_texture_create(struct pipe_screen *screen,
     */
 #if 0
    if((templat->tex_usage & PIPE_TEXTURE_USAGE_RENDER_TARGET) &&
-      !util_format_is_compressed(templat->format))
+      !util_format_is_s3tc(templat->format))
       tex->key.flags |= SVGA3D_SURFACE_HINT_RENDERTARGET;
 #endif
    
@@ -969,7 +969,7 @@ svga_get_tex_sampler_view(struct pipe_context *pipe, struct 
pipe_texture *pt,
       if (min_lod == 0 && max_lod >= pt->last_level)
          view = FALSE;
 
-      if (util_format_is_compressed(pt->format) && view) {
+      if (util_format_is_s3tc(pt->format) && view) {
          format = svga_translate_format_render(pt->format);
       }
 

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to