Skip to content

panvk: Pack push constants

Boris Brezillon requested to merge bbrezillon/mesa:panvk-pack-push-consts into main

What does this MR do and why?

We're about to add more sysvals, and the more we add, the bigger the sysvals region gets, which increases the amount of memory we have to allocate when push_uniforms are dirty.

Instead of allocating FAUs for all sysvals/push_constants, track FAU usage per-shader, and pack those, and emit a FAU buffer per stage instead of trying to share it.

While at it, automate the sysval dirty tracking a bit.

Merge request reports

Loading