radv: do not load the local invocation index when it's unused
[mesa.git] / src / amd / common / ac_shader_info.h
index 5f03e79a83dd4e5f33ab0ece790c4d0aea794936..79e5615254b8188cf584eb4d9658b4c611e2d624 100644 (file)
@@ -30,15 +30,22 @@ 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;
+               bool needs_instance_id;
        } vs;
        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;
 };