[Mesa-dev] i965/radeonsi use STD430 packing of UBOs by default

Marek Olšák maraeo at gmail.com
Sun Aug 20 17:25:31 UTC 2017


On Thu, Aug 17, 2017 at 1:02 PM, Timothy Arceri <tarceri at itsqueeze.com> wrote:
> Shared (the default) and packed layouts are decided by the implementation.
> Currently we just pack them using the std140 layout. This change makes it so
> we use the slightly more compact std430 layout on i965 and radeonsi.
>
> I doubt this will help many games, but it still seems worth implementing.
> I could only find shaders for a single game in my shader-db collection
> where STD140 layout wasn't explicitly defined for UBOs, and even there
> it was using vec4s so there would be no improvement.

Why having a separate codepath that only 2 drivers will use If it
doesn't improve any app?

Marek


More information about the mesa-dev mailing list