Skip to content

nir: properly split CS sys vals into API and driver variants (_zero_base)

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

This always annoyed me, that drivers have to deal with both. Just make the "API" variants always lower to the _zero_base ones to make it easier on drivers. This also fixes range analysis trying to optimize the "API" sys vals with hardware limits, even though they are unbound in e.g. OpenCL.

I also don't like the _zero_base naming, but this can kept until we have a better name.

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