Skip to content

radv: Fix GLSL BDA struct alignment and use pointer arithmetic SIZEOF.

Use pointer arithmetic from GL_EXT_buffer_reference2 to replace explicit struct sizes. For that to work we also need to fix BDA alignment by setting it to the smallest possible value (default is 16).

We could also replace the INDEX macro with a[b] operators, but that's actually a change in behavior because a[b] always uses 64bit arithmetic.

Merge request reports