st/glsl_to_nir: gather next_stage in shader_info
[mesa.git] / src / compiler / shader_info.h
index 00aee77c00297bda63e0f05626c40d9daa254dfe..ababe520b2d63dd83a5b388e5e9ede4dc8ad1014 100644 (file)
@@ -45,6 +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 {
@@ -56,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 */