From 16f66ffe55d7264b4b401dc31dcd91fdb615143b Mon Sep 17 00:00:00 2001 From: Sagar Ghuge Date: Mon, 3 Nov 2025 15:07:43 -0800 Subject: [PATCH] intel/common: Consider 0 threads while setting TG MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In ray tracing dispatch, we have dispatch.threads set to 0 since we calculate the local_size_x/y/z based on the launch sizes. This change takes 0 threads into an account and returh the TG size 8 in such scenarios. Before this change, we were setting TG size to 2. Fixes: 0c4e1c9efcf4 ("intel/common: Add helper for compute thread group dispatch size") Signed-off-by: Sagar Ghuge Reviewed-by: José Roberto de Souza Part-of: --- src/intel/common/intel_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/common/intel_common.c b/src/intel/common/intel_common.c index d9ebaa36784..5d3a9c68489 100644 --- a/src/intel/common/intel_common.c +++ b/src/intel/common/intel_common.c @@ -227,7 +227,7 @@ intel_compute_threads_group_dispatch_size(uint32_t hw_threads_in_wg) * compute overdispatch disabled set to 1, then we need to use TG Size 1. */ switch (hw_threads_in_wg) { - case 1 ... 16: + case 0 ... 16: return 0; case 17 ... 32: return 1;