Skip to content

anv: Bounds-check pushed UBOs when robustBufferAccess = true

We can't bounds check by adjusting the range we put in 3DSTATE_CONSTANT_* because that also adjusts the layout of the push constants in the shader. Instead, we have to emit a bit of shader code (one CMP per 32B and a SEL per component) to do the bounds checking.

Merge request reports