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: f098620c21 ("rusticl/kernel: add optimized Kernel variant")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32139>
This commit is contained in:
Karol Herbst 2024-11-14 13:25:50 +01:00 committed by Marge Bot
parent 0291f62c6a
commit a5149f3fef

View File

@ -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 {