From 4b27391cadcc789a3befbd2b5a846012afa069b8 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Tue, 7 Apr 2015 15:18:43 -0700 Subject: [PATCH] nir: Move gl_shader_stage enum from mtypes.h to shader_enums.h. I want to use this in some code that doesn't currently include mtypes.h. It seems like a better place for it anyway. Signed-off-by: Kenneth Graunke Reviewed-by: Jason Ekstrand Reviewed-by: Ian Romanick --- src/glsl/nir/nir.h | 1 + src/glsl/shader_enums.h | 17 +++++++++++++++++ src/mesa/main/mtypes.h | 19 ------------------- 3 files changed, 18 insertions(+), 19 deletions(-) diff --git a/src/glsl/nir/nir.h b/src/glsl/nir/nir.h index f9ca0f71099..17a93543897 100644 --- a/src/glsl/nir/nir.h +++ b/src/glsl/nir/nir.h @@ -34,6 +34,7 @@ #include "util/set.h" #include "util/bitset.h" #include "nir_types.h" +#include "glsl/shader_enums.h" #include #include "nir_opcodes.h" diff --git a/src/glsl/shader_enums.h b/src/glsl/shader_enums.h index 7f59fdcae6b..79e0f6b5f78 100644 --- a/src/glsl/shader_enums.h +++ b/src/glsl/shader_enums.h @@ -26,6 +26,23 @@ #ifndef SHADER_ENUMS_H #define SHADER_ENUMS_H +/** + * Shader stages. Note that these will become 5 with tessellation. + * + * The order must match how shaders are ordered in the pipeline. + * The GLSL linker assumes that if i