[Mesa-dev] [PATCH] st/mesa: use new MESA_FORMAT_R8G8B8A8_SRGB
Chia-I Wu
olvaffe at gmail.com
Thu Mar 6 20:14:47 PST 2014
On Fri, Mar 7, 2014 at 2:39 AM, Brian Paul <brianp at vmware.com> wrote:
> To fix the problem that Jose worked around in 1d8e3067fd9.
Looks good to me.
> ---
> src/mesa/state_tracker/st_format.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/src/mesa/state_tracker/st_format.c b/src/mesa/state_tracker/st_format.c
> index 0311a2b..0be900e7 100644
> --- a/src/mesa/state_tracker/st_format.c
> +++ b/src/mesa/state_tracker/st_format.c
> @@ -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:
> @@ -754,7 +756,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);
> --
> 1.7.10.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
--
olv at LunarG.com
More information about the mesa-dev
mailing list