From: Jason Ekstrand Date: Tue, 26 Jan 2016 19:47:23 +0000 (-0800) Subject: glsl/enums: Add an enum for Vulkan instance index X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b2b7c93318fa8d417f8d31beb3839c43bfbd894e;p=mesa.git glsl/enums: Add an enum for Vulkan instance index --- diff --git a/src/glsl/nir/shader_enums.c b/src/glsl/nir/shader_enums.c index 41da4a7b9ea..ff2f564dc98 100644 --- a/src/glsl/nir/shader_enums.c +++ b/src/glsl/nir/shader_enums.c @@ -201,6 +201,7 @@ gl_system_value_name(gl_system_value sysval) static const char *names[] = { ENUM(SYSTEM_VALUE_VERTEX_ID), ENUM(SYSTEM_VALUE_INSTANCE_ID), + ENUM(SYSTEM_VALUE_INSTANCE_INDEX), ENUM(SYSTEM_VALUE_VERTEX_ID_ZERO_BASE), ENUM(SYSTEM_VALUE_BASE_VERTEX), ENUM(SYSTEM_VALUE_INVOCATION_ID), diff --git a/src/glsl/nir/shader_enums.h b/src/glsl/nir/shader_enums.h index 3a06b14a46b..e3f46e3d739 100644 --- a/src/glsl/nir/shader_enums.h +++ b/src/glsl/nir/shader_enums.h @@ -378,6 +378,13 @@ typedef enum */ SYSTEM_VALUE_INSTANCE_ID, + /** + * Vulkan InstanceIndex. + * + * InstanceIndex = gl_InstanceID + gl_BaseInstance + */ + SYSTEM_VALUE_INSTANCE_INDEX, + /** * DirectX-style vertex ID. *