compiler: move TEXTURE_COORD/VERTEX_GENERIC_ATTRIB limits into shader_enums.h
because they are used there. Reviewed-by: Matt Turner <mattst88@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9050>
This commit is contained in:
@@ -166,6 +166,14 @@ typedef enum
|
||||
|
||||
const char *gl_vert_attrib_name(gl_vert_attrib attrib);
|
||||
|
||||
/**
|
||||
* Max number of texture coordinate units. This mainly just applies to
|
||||
* the fixed-function vertex code. This will be difficult to raise above
|
||||
* eight because of various vertex attribute bitvectors.
|
||||
*/
|
||||
#define MAX_TEXTURE_COORD_UNITS 8
|
||||
#define MAX_VERTEX_GENERIC_ATTRIBS 16
|
||||
|
||||
/**
|
||||
* Symbolic constats to help iterating over
|
||||
* specific blocks of vertex attributes.
|
||||
|
@@ -105,13 +105,6 @@
|
||||
*/
|
||||
#define MAX_ARRAY_TEXTURE_LAYERS 64
|
||||
|
||||
/**
|
||||
* Max number of texture coordinate units. This mainly just applies to
|
||||
* the fixed-function vertex code. This will be difficult to raise above
|
||||
* eight because of various vertex attribute bitvectors.
|
||||
*/
|
||||
#define MAX_TEXTURE_COORD_UNITS 8
|
||||
|
||||
/**
|
||||
* Max number of texture image units. Also determines number of texture
|
||||
* samplers in shaders.
|
||||
@@ -213,7 +206,6 @@
|
||||
|
||||
/** For GL_ARB_vertex_shader */
|
||||
/*@{*/
|
||||
#define MAX_VERTEX_GENERIC_ATTRIBS 16
|
||||
/* 6 is for vertex, hull, domain, geometry, fragment, and compute shader. */
|
||||
#define MAX_COMBINED_TEXTURE_IMAGE_UNITS (MAX_TEXTURE_IMAGE_UNITS * 6)
|
||||
/*@}*/
|
||||
|
Reference in New Issue
Block a user