Skip to content

nir: get rid of "_zero_base" variants of intrinsics

Karol Herbst requested to merge karolherbst/mesa:nir/sane_cs_sysvals into main

This always annoyed me, that drivers have to deal with both. With this MR nir_lower_compute_system_values will always emit the addition with the base and drivers/frontends are responsible in lowering it to 0 via nir_lower_compute_system_values_options if they choose to.

I think I've figured out all regressions, and hopefully this makes handling of compute sysvals more sane in the future.

Edited by Karol Herbst

Merge request reports