compiler: adjust comments for mesa_shader_stage

We're going to support mesh shader in GL, the stage order
is not sorted as comment described.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Yonggang Luo <luoyonggang@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36596>
This commit is contained in:
Qiang Yu
2025-08-06 14:40:31 +08:00
committed by Marge Bot
parent 08b643f244
commit d42936c6a7

View File

@@ -45,6 +45,7 @@ extern "C" {
/**
* Shader stages.
*
* For vertex/tessallation/geometry/fragment shaders:
* The order must match how shaders are ordered in the pipeline.
* The GLSL linker assumes that if i<j, then the j-th shader is
* executed later than the i-th shader.
@@ -57,11 +58,10 @@ typedef enum mesa_shader_stage {
MESA_SHADER_GEOMETRY = 3,
MESA_SHADER_FRAGMENT = 4,
MESA_SHADER_COMPUTE = 5,
MESA_SHADER_TASK = 6,
MESA_SHADER_MESH = 7,
/* Vulkan-only stages. */
MESA_SHADER_TASK = 6,
MESA_SHADER_MESH = 7,
MESA_SHADER_RAYGEN = 8,
MESA_SHADER_ANY_HIT = 9,
MESA_SHADER_CLOSEST_HIT = 10,