[Mesa-dev] [PATCH] mesa: Delete VERT_ATTRIB_GENERIC_NV and VERT_BIT_GENERIC_NV macros.

Brian Paul brianp at vmware.com
Thu Mar 21 11:38:33 PDT 2013


On 03/21/2013 12:10 PM, Kenneth Graunke wrote:
> These haven't been used since we deleted NV_vertex_program support.
>
> Signed-off-by: Kenneth Graunke<kenneth at whitecape.org>
> ---
>   src/mesa/main/mtypes.h | 10 ----------
>   1 file changed, 10 deletions(-)
>
> diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
> index 7900897..1a35e63 100644
> --- a/src/mesa/main/mtypes.h
> +++ b/src/mesa/main/mtypes.h
> @@ -146,9 +146,6 @@ typedef enum
>    * VERT_ATTRIB_TEX
>    *   include the classic texture coordinate attributes.
>    *   Is a subset of VERT_ATTRIB_FF.
> - * VERT_ATTRIB_GENERIC_NV
> - *   include the NV shader attributes.
> - *   Is a subset of VERT_ATTRIB_FF.
>    * VERT_ATTRIB_GENERIC
>    *   include the OpenGL 2.0+ GLSL generic shader attributes.
>    *   These alias the generic GL_ARB_vertex_shader attributes.
> @@ -159,9 +156,6 @@ typedef enum
>   #define VERT_ATTRIB_TEX(i)          (VERT_ATTRIB_TEX0 + (i))
>   #define VERT_ATTRIB_TEX_MAX         MAX_TEXTURE_COORD_UNITS
>
> -#define VERT_ATTRIB_GENERIC_NV(i)   (VERT_ATTRIB_POS + (i))
> -#define VERT_ATTRIB_GENERIC_NV_MAX  MAX_VERTEX_GENERIC_ATTRIBS
> -
>   #define VERT_ATTRIB_GENERIC(i)      (VERT_ATTRIB_GENERIC0 + (i))
>   #define VERT_ATTRIB_GENERIC_MAX     MAX_VERTEX_GENERIC_ATTRIBS
>
> @@ -198,10 +192,6 @@ typedef enum
>   #define VERT_BIT_TEX_ALL         \
>      BITFIELD64_RANGE(VERT_ATTRIB_TEX(0), VERT_ATTRIB_TEX_MAX)
>
> -#define VERT_BIT_GENERIC_NV(i)   VERT_BIT(VERT_ATTRIB_GENERIC_NV(i))
> -#define VERT_BIT_GENERIC_NV_ALL  \
> -   BITFIELD64_RANGE(VERT_ATTRIB_GENERIC_NV(0), VERT_ATTRIB_GENERIC_NV_MAX)
> -
>   #define VERT_BIT_GENERIC(i)      VERT_BIT(VERT_ATTRIB_GENERIC(i))
>   #define VERT_BIT_GENERIC_ALL     \
>      BITFIELD64_RANGE(VERT_ATTRIB_GENERIC(0), VERT_ATTRIB_GENERIC_MAX)

Reviewed-by: Brian Paul <brianp at vmware.com>


More information about the mesa-dev mailing list