radv: do not load the local invocation index when it's unused
[mesa.git] / src / amd / common / ac_shader_info.h
index 965ad542a2acb926d06970120e282eb8f08f8447..79e5615254b8188cf584eb4d9658b4c611e2d624 100644 (file)
@@ -30,6 +30,7 @@ struct ac_nir_compiler_options;
 struct ac_shader_info {
        bool needs_push_constants;
        uint32_t desc_set_used_mask;
+       bool needs_multiview_view_index;
        struct {
                bool has_vertex_buffers; /* needs vertex buffers and base/start */
                bool needs_draw_id;
@@ -38,9 +39,13 @@ struct ac_shader_info {
        struct {
                bool force_persample;
                bool needs_sample_positions;
+               bool uses_input_attachments;
        } ps;
        struct {
-               uint8_t grid_components_used;
+               bool uses_grid_size;
+               bool uses_block_id[3];
+               bool uses_thread_id[3];
+               bool uses_local_invocation_idx;
        } cs;
 };