From a5149f3feff8de11b5dd90a0e618721e8f4a5d67 Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Thu, 14 Nov 2024 13:25:50 +0100 Subject: [PATCH] rusticl/kernel: fix kernel variant selection Apparently I messed up enough so that the optimized kernel variant was almost never selected. This fixes that :) Fixes: f098620c215 ("rusticl/kernel: add optimized Kernel variant") Part-of: --- src/gallium/frontends/rusticl/core/kernel.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/frontends/rusticl/core/kernel.rs b/src/gallium/frontends/rusticl/core/kernel.rs index 1ded64b1493..b60d1adcb8d 100644 --- a/src/gallium/frontends/rusticl/core/kernel.rs +++ b/src/gallium/frontends/rusticl/core/kernel.rs @@ -1291,7 +1291,8 @@ impl Kernel { && grid[0] <= hw_max_grid[0] && grid[1] <= hw_max_grid[1] && grid[2] <= hw_max_grid[2] - && block == kernel_info.work_group_size_hint + && (kernel_info.work_group_size_hint == [0; 3] + || block == kernel_info.work_group_size_hint) { NirKernelVariant::Optimized } else {