From: Paul Berry Date: Tue, 7 Jan 2014 18:58:56 +0000 (-0800) Subject: mesa: Move declaration of gl_shader_stage earlier in mtypes.h. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1722f5e73ee73e7c2ab58a4be39c95c2a55b154f;p=mesa.git mesa: Move declaration of gl_shader_stage earlier in mtypes.h. Also move the related #define MESA_SHADER_STAGES. This will allow gl_shader_stage to be used in struct gl_shader. Reviewed-by: Brian Paul v2: Split from patch "mesa: Store gl_shader_stage enum in gl_shader objects." Reviewed-by: Kenneth Graunke --- diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index 9e2083c53bb..04bc4d4660f 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -392,6 +392,23 @@ typedef enum BUFFER_BIT_COLOR7) +/** + * 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