On 04/05/2013 11:49 AM, Wladimir wrote:
 From 1b3d69d7749e3b82f529d2a41b80f5cd64447d92 Mon Sep 17 00:00:00 2001
From: "Wladimir J. van der Laan" <laa...@gmail.com
<mailto:laa...@gmail.com>>
Date: Fri, 5 Apr 2013 18:58:32 +0200
Subject: [PATCH] gallium/auxiliary: Add ETC as compressed format

Add UTIL_FORMAT_LAYOUT_ETC to util_format_is_compressed. It was missing.

Signed-off-by: Wladimir J. van der Laan <laa...@gmail.com
<mailto:laa...@gmail.com>>
---
  src/gallium/auxiliary/util/u_format.h |    1 +
  1 file changed, 1 insertion(+)

diff --git a/src/gallium/auxiliary/util/u_format.h
b/src/gallium/auxiliary/util/u_format.h
index 0030126..ed942fb 100644
--- a/src/gallium/auxiliary/util/u_format.h
+++ b/src/gallium/auxiliary/util/u_format.h
@@ -447,6 +447,7 @@ util_format_is_compressed(enum pipe_format format)
     switch (desc->layout) {
     case UTIL_FORMAT_LAYOUT_S3TC:
     case UTIL_FORMAT_LAYOUT_RGTC:
+   case UTIL_FORMAT_LAYOUT_ETC:
        /* XXX add other formats in the future */
        return TRUE;
     default:

Reviewed-by: Brian Paul <bri...@vmware.com>

Do you need someone to commit this for you?

-Brian
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to