spirv: sort spirv_supported_capabilities
authorDanylo Piliaiev <dpiliaiev@igalia.com>
Tue, 7 Mar 2023 16:27:51 +0000 (17:27 +0100)
committerMarge Bot <emma+marge@anholt.net>
Fri, 24 Mar 2023 15:49:25 +0000 (15:49 +0000)
Makes easier for c++ driver to keep initializer in order.

Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21931>

src/compiler/shader_info.h

index c771526..a63b9e6 100644 (file)
@@ -39,6 +39,13 @@ extern "C" {
 
 struct spirv_supported_capabilities {
    bool address;
+   bool amd_fragment_mask;
+   bool amd_gcn_shader;
+   bool amd_image_gather_bias_lod;
+   bool amd_image_read_write_lod;
+   bool amd_shader_ballot;
+   bool amd_shader_explicit_vertex_parameter;
+   bool amd_trinary_minmax;
    bool atomic_storage;
    bool demote_to_helper_invocation;
    bool derivative_group;
@@ -47,36 +54,38 @@ struct spirv_supported_capabilities {
    bool descriptor_indexing;
    bool device_group;
    bool draw_parameters;
+   bool float_controls;
    bool float16_atomic_add;
    bool float16_atomic_min_max;
+   bool float16;
    bool float32_atomic_add;
    bool float32_atomic_min_max;
-   bool float64;
    bool float64_atomic_add;
    bool float64_atomic_min_max;
+   bool float64;
    bool fragment_fully_covered;
-   bool fragment_shader_sample_interlock;
    bool fragment_shader_pixel_interlock;
+   bool fragment_shader_sample_interlock;
    bool fragment_shading_rate;
    bool generic_pointers;
    bool geometry_streams;
    bool groups;
+   bool image_atomic_int64;
    bool image_ms_array;
    bool image_read_without_format;
    bool image_write_without_format;
-   bool image_atomic_int64;
-   bool int8;
    bool int16;
-   bool int64;
    bool int64_atomics;
+   bool int64;
+   bool int8;
    bool integer_functions2;
-   bool kernel;
-   bool kernel_image;
    bool kernel_image_read_write;
+   bool kernel_image;
+   bool kernel;
    bool linkage;
    bool literal_sampler;
-   bool mesh_shading;
    bool mesh_shading_nv;
+   bool mesh_shading;
    bool min_lod;
    bool multiview;
    bool per_view_attributes_nv;
@@ -84,18 +93,17 @@ struct spirv_supported_capabilities {
    bool post_depth_coverage;
    bool printf;
    bool ray_cull_mask;
-   bool ray_tracing;
    bool ray_query;
+   bool ray_tracing;
    bool ray_traversal_primitive_culling;
    bool runtime_descriptor_array;
-   bool float_controls;
    bool shader_clock;
    bool shader_viewport_index_layer;
    bool shader_viewport_mask_nv;
    bool sparse_residency;
    bool stencil_export;
-   bool storage_8bit;
    bool storage_16bit;
+   bool storage_8bit;
    bool storage_image_ms;
    bool subgroup_arithmetic;
    bool subgroup_ballot;
@@ -109,17 +117,9 @@ struct spirv_supported_capabilities {
    bool tessellation;
    bool transform_feedback;
    bool variable_pointers;
-   bool vk_memory_model;
    bool vk_memory_model_device_scope;
+   bool vk_memory_model;
    bool workgroup_memory_explicit_layout;
-   bool float16;
-   bool amd_fragment_mask;
-   bool amd_gcn_shader;
-   bool amd_shader_ballot;
-   bool amd_trinary_minmax;
-   bool amd_image_read_write_lod;
-   bool amd_shader_explicit_vertex_parameter;
-   bool amd_image_gather_bias_lod;
 
    bool intel_subgroup_shuffle;
    bool intel_subgroup_buffer_block_io;