st/glsl_to_nir: gather next_stage in shader_info
[mesa.git] / src / compiler / shader_info.h
index fd740e0d489ffcc53c4cbd17900100c82c1a9491..ababe520b2d63dd83a5b388e5e9ede4dc8ad1014 100644 (file)
@@ -45,11 +45,14 @@ struct spirv_supported_capabilities {
    bool variable_pointers;
    bool storage_16bit;
    bool shader_viewport_index_layer;
+   bool subgroup_arithmetic;
    bool subgroup_ballot;
    bool subgroup_basic;
    bool subgroup_quad;
    bool subgroup_shuffle;
    bool subgroup_vote;
+   bool gcn_shader;
+   bool trinary_minmax;
 };
 
 typedef struct shader_info {
@@ -61,6 +64,11 @@ typedef struct shader_info {
    /** The shader stage, such as MESA_SHADER_VERTEX. */
    gl_shader_stage stage;
 
+   /** The shader stage in a non SSO linked program that follows this stage,
+     * such as MESA_SHADER_FRAGMENT.
+     */
+   gl_shader_stage next_stage;
+
    /* Number of textures used by this shader */
    unsigned num_textures;
    /* Number of uniform buffers used by this shader */