From: José Fonseca Date: Fri, 7 Mar 2014 13:35:24 +0000 (+0000) Subject: mesa/st: Fix PIPE_FORMAT_R8G8B8A8_SRGB -> MESA_FORMAT_ conversion. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b3689adf519c2997100acae541c315d7333ab731;p=mesa.git mesa/st: Fix PIPE_FORMAT_R8G8B8A8_SRGB -> MESA_FORMAT_ conversion. Copy'n'past typo introduced in my 1d8e3067fd9ce72b3711fc208409ac4a7cff4e53 commit. This fixes swapped RB channels I was seeing in my test machines. Trivial. --- diff --git a/src/mesa/state_tracker/st_format.c b/src/mesa/state_tracker/st_format.c index 0311a2bcce5..a558e24b37b 100644 --- a/src/mesa/state_tracker/st_format.c +++ b/src/mesa/state_tracker/st_format.c @@ -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);