mesa/st: Fix PIPE_FORMAT_R8G8B8A8_SRGB -> MESA_FORMAT_ conversion.
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 7 Mar 2014 13:35:24 +0000 (13:35 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 7 Mar 2014 13:35:24 +0000 (13:35 +0000)
Copy'n'past typo introduced in my
1d8e3067fd9ce72b3711fc208409ac4a7cff4e53 commit.

This fixes swapped RB channels I was seeing in my test machines.

Trivial.

src/mesa/state_tracker/st_format.c

index 0311a2bcce50599c92daa9b3d941dffb86e9d156..a558e24b37ba8ba17f788b445d5a4224a5c5fb6d 100644 (file)
@@ -754,7 +754,7 @@ st_pipe_format_to_mesa_format(enum pipe_format format)
    case PIPE_FORMAT_B8G8R8X8_SRGB:
       return MESA_FORMAT_B8G8R8X8_SRGB;
    case PIPE_FORMAT_R8G8B8A8_SRGB:
-      return MESA_FORMAT_B8G8R8A8_SRGB;
+      return MESA_FORMAT_R8G8B8A8_SRGB;
 
    default:
       assert(0);