tree-wide: replace MAYBE_UNUSED with ASSERTED
[mesa.git] / src / intel / compiler / brw_compiler.h
index ba95df5b7dc887f7caf1beeb33aff943f04ee178..736d85669dc3411972e26339bb41f722a72d91aa 100644 (file)
@@ -206,8 +206,17 @@ struct brw_sampler_prog_key_data {
 /** An enum representing what kind of input gl_SubgroupSize is. */
 enum PACKED brw_subgroup_size_type
 {
-   BRW_SUBGROUP_SIZE_API_CONSTANT,  /**< Vulkan behavior */
-   BRW_SUBGROUP_SIZE_UNIFORM,       /**< OpenGL behavior */
+   BRW_SUBGROUP_SIZE_API_CONSTANT,     /**< Default Vulkan behavior */
+   BRW_SUBGROUP_SIZE_UNIFORM,          /**< OpenGL behavior */
+   BRW_SUBGROUP_SIZE_VARYING,          /**< VK_EXT_subgroup_size_control */
+
+   /* These enums are specifically chosen so that the value of the enum is
+    * also the subgroup size.  If any new values are added, they must respect
+    * this invariant.
+    */
+   BRW_SUBGROUP_SIZE_REQUIRE_8   = 8,  /**< VK_EXT_subgroup_size_control */
+   BRW_SUBGROUP_SIZE_REQUIRE_16  = 16, /**< VK_EXT_subgroup_size_control */
+   BRW_SUBGROUP_SIZE_REQUIRE_32  = 32, /**< VK_EXT_subgroup_size_control */
 };
 
 struct brw_base_prog_key {
@@ -1408,7 +1417,7 @@ encode_slm_size(unsigned gen, uint32_t bytes)
  * '2^n - 1' for some n.
  */
 static inline bool
-brw_stage_has_packed_dispatch(MAYBE_UNUSED const struct gen_device_info *devinfo,
+brw_stage_has_packed_dispatch(ASSERTED const struct gen_device_info *devinfo,
                               gl_shader_stage stage,
                               const struct brw_stage_prog_data *prog_data)
 {