intel/brw: Use linear walk when shader requires DERIVATIVE_GROUP_LINEAR

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30955>
This commit is contained in:
Caio Oliveira 2024-08-30 11:32:57 -07:00 committed by Marge Bot
parent 898012ba11
commit 3f6b5ea27a

View file

@ -362,6 +362,7 @@ brw_nir_lower_cs_intrinsics(nir_shader *nir,
/* TODO: more heuristics about 1D/SLM access vs. 2D access */
bool linear =
state.derivative_group == DERIVATIVE_GROUP_LINEAR ||
BITSET_TEST(nir->info.system_values_read,
SYSTEM_VALUE_LOCAL_INVOCATION_INDEX) ||
(nir->info.workgroup_size[1] == 1 &&