From 773ee60e48e2cbcb245207f74461e2c1145fef11 Mon Sep 17 00:00:00 2001 From: Georg Lehmann Date: Wed, 20 Aug 2025 12:29:50 +0200 Subject: [PATCH] nir/uub: decrease default max subgroup size to 128 128 is the maximum all apis allow. Reviewed-by: Rhys Perry Part-of: --- src/compiler/nir/nir_range_analysis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/nir/nir_range_analysis.c b/src/compiler/nir/nir_range_analysis.c index a215ea0f952..655174a5013 100644 --- a/src/compiler/nir/nir_range_analysis.c +++ b/src/compiler/nir/nir_range_analysis.c @@ -1573,7 +1573,7 @@ lookup_input(nir_shader *shader, unsigned driver_location) /* The config here should be generic enough to be correct on any HW. */ static const nir_unsigned_upper_bound_config default_ub_config = { .min_subgroup_size = 1u, - .max_subgroup_size = UINT16_MAX, + .max_subgroup_size = 128u, .max_workgroup_invocations = UINT16_MAX, /* max_workgroup_count represents the maximum compute shader / kernel