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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user