[Mesa-dev] [PATCH] gallium: add missing formats for ARB_vertex_type_2_10_10_10_rev

Jose Fonseca jfonseca at vmware.com
Mon Sep 5 10:55:31 PDT 2011


Looks good to me.

Jose

----- Original Message -----
> From: Dave Airlie <airlied at redhat.com>
> 
> This just reorgs one define in csv file, and adds all the new formats
> that are needed for this extension.
> 
> Signed-off-by: Dave Airlie <airlied at redhat.com>
> ---
>  src/gallium/auxiliary/util/u_format.csv |    9 ++++++++-
>  src/gallium/include/pipe/p_format.h     |    7 +++++++
>  2 files changed, 15 insertions(+), 1 deletions(-)
> 
> diff --git a/src/gallium/auxiliary/util/u_format.csv
> b/src/gallium/auxiliary/util/u_format.csv
> index 6c008cc..621a46d 100644
> --- a/src/gallium/auxiliary/util/u_format.csv
> +++ b/src/gallium/auxiliary/util/u_format.csv
> @@ -146,7 +146,6 @@ PIPE_FORMAT_R8G8_B8G8_UNORM      , subsampled, 2,
> 1, x32 ,     ,     ,     , xyz
>  PIPE_FORMAT_G8R8_G8B8_UNORM      , subsampled, 2, 1, x32 ,     ,
>      ,     , xyz1, rgb
>  
>  # some special formats not fitting anywhere else
> -PIPE_FORMAT_R10G10B10A2_USCALED   , plain,      1,  1, u10 , u10 ,
> u10 , u2  , xyzw, rgb
>  PIPE_FORMAT_R11G11B10_FLOAT       , other,      1,  1, x32 ,     ,
>      ,     , xyz1, rgb
>  PIPE_FORMAT_R9G9B9E5_FLOAT        , other,      1,  1, x32 ,     ,
>      ,     , xyz1, rgb
>  PIPE_FORMAT_R1_UNORM              , other,      8,  1, x8  ,     ,
>      ,     , x001, rgb
> @@ -271,3 +270,11 @@ PIPE_FORMAT_R4A4_UNORM            , plain, 1, 1,
> un4 , un4 ,     ,     , y00x, r
>  PIPE_FORMAT_A4R4_UNORM            , plain, 1, 1, un4 , un4 ,     ,
>      , x00y, rgb
>  PIPE_FORMAT_R8A8_UNORM            , plain, 1, 1, un8 , un8 ,     ,
>      , x00y, rgb
>  PIPE_FORMAT_A8R8_UNORM            , plain, 1, 1, un8 , un8 ,     ,
>      , y00x, rgb
> +
> +# ARB_vertex_type_10_10_10_2_REV
> +PIPE_FORMAT_R10G10B10A2_USCALED     , plain, 1, 1, u10, u10, u10,
> u2, xyzw, rgb
> +PIPE_FORMAT_R10G10B10A2_SSCALED     , plain, 1, 1, s10, s10, s10,
> s2, xyzw, rgb
> +PIPE_FORMAT_R10G10B10A2_SNORM       , plain, 1, 1, sn10, sn10, sn10,
> sn2, xyzw, rgb
> +PIPE_FORMAT_B10G10R10A2_USCALED     , plain, 1, 1, u10, u10, u10,
> u2, zyxw, rgb
> +PIPE_FORMAT_B10G10R10A2_SSCALED     , plain, 1, 1, s10, s10, s10,
> s2, zyxw, rgb
> +PIPE_FORMAT_B10G10R10A2_SNORM       , plain, 1, 1, sn10, sn10, sn10,
> sn2, zyxw, rgb
> diff --git a/src/gallium/include/pipe/p_format.h
> b/src/gallium/include/pipe/p_format.h
> index 3e5f457..3d1c997 100644
> --- a/src/gallium/include/pipe/p_format.h
> +++ b/src/gallium/include/pipe/p_format.h
> @@ -244,6 +244,13 @@ enum pipe_format {
>     PIPE_FORMAT_R8A8_UNORM              = 170,
>     PIPE_FORMAT_A8R8_UNORM              = 171,
>  
> +   PIPE_FORMAT_R10G10B10A2_SSCALED     = 172,
> +   PIPE_FORMAT_R10G10B10A2_SNORM       = 173,
> +
> +   PIPE_FORMAT_B10G10R10A2_USCALED     = 174,
> +   PIPE_FORMAT_B10G10R10A2_SSCALED     = 175,
> +   PIPE_FORMAT_B10G10R10A2_SNORM       = 176,
> +
>     PIPE_FORMAT_COUNT
>  };
>  
> --
> 1.7.6
> 
> _______________________________________________
> 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