brw: update vulkan max attribute limit

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32418>
This commit is contained in:
Lionel Landwerlin
2025-02-12 09:55:59 +02:00
committed by Marge Bot
parent bae9344baf
commit fae8d325a7
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -223,11 +223,11 @@ struct brw_base_prog_key {
/**
* OpenGL attribute slots fall in [0, VERT_ATTRIB_MAX - 1] with the range
* [VERT_ATTRIB_GENERIC0, VERT_ATTRIB_MAX - 1] reserved for up to 16 user
* input vertex attributes. In Vulkan, we expose up to 28 user vertex input
* input vertex attributes. In Vulkan, we expose up to 29 user vertex input
* attributes that are mapped to slots also starting at VERT_ATTRIB_GENERIC0.
*/
#define MAX_GL_VERT_ATTRIB VERT_ATTRIB_MAX
#define MAX_VK_VERT_ATTRIB (VERT_ATTRIB_GENERIC0 + 28)
#define MAX_VK_VERT_ATTRIB (VERT_ATTRIB_GENERIC0 + 29)
/** The program key for Vertex Shaders. */
struct brw_vs_prog_key {
+3 -3
View File
@@ -241,11 +241,11 @@ struct elk_base_prog_key {
/**
* OpenGL attribute slots fall in [0, VERT_ATTRIB_MAX - 1] with the range
* [VERT_ATTRIB_GENERIC0, VERT_ATTRIB_MAX - 1] reserved for up to 16 user
* input vertex attributes. In Vulkan, we expose up to 28 user vertex input
* input vertex attributes. In Vulkan, we expose up to 29 user vertex input
* attributes that are mapped to slots also starting at VERT_ATTRIB_GENERIC0.
*/
#define MAX_GL_VERT_ATTRIB VERT_ATTRIB_MAX
#define MAX_VK_VERT_ATTRIB (VERT_ATTRIB_GENERIC0 + 28)
#define MAX_VK_VERT_ATTRIB (VERT_ATTRIB_GENERIC0 + 29)
/**
* Max number of binding table entries used for stream output.
@@ -314,7 +314,7 @@ struct elk_vs_prog_key {
*/
unsigned nr_userclip_plane_consts:4;
uint32_t padding: 25;
uint32_t padding: 17;
};
/** The program key for Tessellation Control Shaders. */