Skip to content

turnip: Rewrite inline uniform implementation

Instead of a "dummy" implementation that just uses a regular UBO whose descriptor we fill out, this instead forces inline uniforms to always be pushed to the constant file and uses an indirect CP_LOAD_STATE6 to set them up. I believe that there is just enough space to handle push constants, inline uniforms, and any driver params in the per-stage safe constlen if we go with the minimum possible limits (4 inline uniform bindings per stage with up to 256 bytes each, or 1024 bytes/64 vec4's per stage), so this should be possible.

Merge request reports