mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-11-27 12:14:10 +08:00
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:
parent
0291f62c6a
commit
a5149f3fef
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user