From: Brian Date: Wed, 5 Dec 2007 21:54:19 +0000 (-0700) Subject: added PIPE_FORMAT_U_B8_G8_R8_A8 case in color_value() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=146483d5412e14d6be63a9b9116ff683956ee294;p=mesa.git added PIPE_FORMAT_U_B8_G8_R8_A8 case in color_value() --- diff --git a/src/mesa/state_tracker/st_cb_clear.c b/src/mesa/state_tracker/st_cb_clear.c index 219a5afcbdd..8ac6699776b 100644 --- a/src/mesa/state_tracker/st_cb_clear.c +++ b/src/mesa/state_tracker/st_cb_clear.c @@ -69,9 +69,12 @@ color_value(GLuint pipeFormat, const GLfloat color[4]) return (r << 24) | (g << 16) | (b << 8) | a; case PIPE_FORMAT_U_A8_R8_G8_B8: return (a << 24) | (r << 16) | (g << 8) | b; + case PIPE_FORMAT_U_B8_G8_R8_A8: + return (b << 24) | (g << 16) | (r << 8) | a; case PIPE_FORMAT_U_R5_G6_B5: return ((r & 0xf8) << 8) | ((g & 0xfc) << 3) | (b >> 3); default: + assert(0); return 0; } }