Mesa (master): llvmpipe: Update llvmpipe_is_format_unswizzled to reflect latest changes.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Wed Nov 28 19:14:55 UTC 2012


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

Author: James Benton <jbenton at vmware.com>
Date:   Fri Sep 14 13:29:58 2012 +0100

llvmpipe: Update llvmpipe_is_format_unswizzled to reflect latest changes.

Reviewed-by: Jose Fonseca <jfonseca at vmware.com>

---

 src/gallium/drivers/llvmpipe/lp_texture.c |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)

diff --git a/src/gallium/drivers/llvmpipe/lp_texture.c b/src/gallium/drivers/llvmpipe/lp_texture.c
index 3d0acdf..e606123 100644
--- a/src/gallium/drivers/llvmpipe/lp_texture.c
+++ b/src/gallium/drivers/llvmpipe/lp_texture.c
@@ -762,10 +762,6 @@ llvmpipe_is_format_unswizzled( enum pipe_format format )
    const struct util_format_description *desc = util_format_description(format);
    unsigned chan;
 
-   if (format == PIPE_FORMAT_B8G8R8X8_UNORM || format == PIPE_FORMAT_B8G8R8A8_UNORM) {
-      return FALSE;
-   }
-
    if (desc->layout != UTIL_FORMAT_LAYOUT_PLAIN ||
        desc->colorspace != UTIL_FORMAT_COLORSPACE_RGB ||
        desc->block.width != 1 ||
@@ -787,11 +783,6 @@ llvmpipe_is_format_unswizzled( enum pipe_format format )
          return FALSE;
    }
 
-   /* All code assumes alpha is the last channel */
-   if (desc->nr_channels == 4 && desc->swizzle[3] < 3) {
-      return FALSE;
-   }
-
    return TRUE;
 }
 




More information about the mesa-commit mailing list