mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 00:10:20 +01:00
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:
parent
898012ba11
commit
3f6b5ea27a
1 changed files with 1 additions and 0 deletions
|
|
@ -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 &&
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue