[Mesa-dev] [PATCH 1/2] st/mesa: add some missing MESA/PIPE_FORMAT_R10G10B10A2_UNORM switch cases

Marek Olšák maraeo at gmail.com
Wed Jul 9 12:47:13 PDT 2014


For the series:

Reviewed-by: Marek Olšák <marek.olsak at amd.com>

Marek

On Wed, Jul 9, 2014 at 8:51 PM, Brian Paul <brianp at vmware.com> wrote:
> ---
>  src/mesa/state_tracker/st_format.c |    4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/src/mesa/state_tracker/st_format.c b/src/mesa/state_tracker/st_format.c
> index 38d4ccf..a821180 100644
> --- a/src/mesa/state_tracker/st_format.c
> +++ b/src/mesa/state_tracker/st_format.c
> @@ -83,6 +83,8 @@ st_mesa_format_to_pipe_format(mesa_format mesaFormat)
>        return PIPE_FORMAT_B2G3R3_UNORM;
>     case MESA_FORMAT_B10G10R10A2_UNORM:
>        return PIPE_FORMAT_B10G10R10A2_UNORM;
> +   case MESA_FORMAT_R10G10B10A2_UNORM:
> +      return PIPE_FORMAT_R10G10B10A2_UNORM;
>     case MESA_FORMAT_L4A4_UNORM:
>        return PIPE_FORMAT_L4A4_UNORM;
>     case MESA_FORMAT_L8A8_UNORM:
> @@ -439,6 +441,8 @@ st_pipe_format_to_mesa_format(enum pipe_format format)
>        return MESA_FORMAT_B2G3R3_UNORM;
>     case PIPE_FORMAT_B10G10R10A2_UNORM:
>        return MESA_FORMAT_B10G10R10A2_UNORM;
> +   case PIPE_FORMAT_R10G10B10A2_UNORM:
> +      return MESA_FORMAT_R10G10B10A2_UNORM;
>     case PIPE_FORMAT_L4A4_UNORM:
>        return MESA_FORMAT_L4A4_UNORM;
>     case PIPE_FORMAT_L8A8_UNORM:
> --
> 1.7.10.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list