Mesa (master): st/mesa: add missing case for PIPE_FORMAT_B8G8R8A8_UNORM

Brian Paul brianp at kemper.freedesktop.org
Sun Dec 27 09:25:17 PST 2009


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

Author: Brian Paul <brianp at vmware.com>
Date:   Sun Dec 27 10:09:24 2009 -0700

st/mesa: add missing case for PIPE_FORMAT_B8G8R8A8_UNORM

---

 src/mesa/state_tracker/st_format.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/mesa/state_tracker/st_format.c b/src/mesa/state_tracker/st_format.c
index 02f8005..091f681 100644
--- a/src/mesa/state_tracker/st_format.c
+++ b/src/mesa/state_tracker/st_format.c
@@ -291,6 +291,8 @@ st_pipe_format_to_mesa_format(enum pipe_format pipeFormat)
       return MESA_FORMAT_ARGB8888;
    case PIPE_FORMAT_X8R8G8B8_UNORM:
       return MESA_FORMAT_XRGB8888;
+   case PIPE_FORMAT_B8G8R8A8_UNORM:
+      return MESA_FORMAT_ARGB8888_REV;
    case PIPE_FORMAT_A1R5G5B5_UNORM:
       return MESA_FORMAT_ARGB1555;
    case PIPE_FORMAT_A4R4G4B4_UNORM:



More information about the mesa-commit mailing list