st/mesa: add MESA_FORMAT_R8G8B8A8_SRGB in st_mesa_format_to_pipe_format()
authorBrian Paul <brianp@vmware.com>
Thu, 6 Mar 2014 18:37:41 +0000 (11:37 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 7 Mar 2014 14:31:18 +0000 (07:31 -0700)
v2: rename patch after rebasing on top of Jose's changes.

Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
src/mesa/state_tracker/st_format.c

index a558e24b37ba8ba17f788b445d5a4224a5c5fb6d..0be900e7777e40c96dfacd29fd3447ede0bbf384 100644 (file)
@@ -147,6 +147,8 @@ st_mesa_format_to_pipe_format(mesa_format mesaFormat)
       return PIPE_FORMAT_A8B8G8R8_SRGB;
    case MESA_FORMAT_B8G8R8A8_SRGB:
       return PIPE_FORMAT_B8G8R8A8_SRGB;
+   case MESA_FORMAT_R8G8B8A8_SRGB:
+      return PIPE_FORMAT_R8G8B8A8_SRGB;
    case MESA_FORMAT_RGBA_FLOAT32:
       return PIPE_FORMAT_R32G32B32A32_FLOAT;
    case MESA_FORMAT_RGBA_FLOAT16: