Hello. I have some questions about Mali GPU (After Valhall) index buffer shading.
Related Video : https://youtu.be/BD1zXW7Uz8Q?t=2838
Hi seungchan,
Index groups always round down to a naturally aligned base index (i.e. where (base % 4) == 0).
ex.) [1, 5, 7]
Groups will be 0-3, 4-7
ex.) [1, 5, 13]
Groups will be 0-3, 4-7, 12-15
ex.) [1, 10, 15]
Groups will be 0-3, 8-11, 12-15
seungchan said: reorder result : [a, i, e, b, c, f, d, g, h]
One thing to watch out for with reordering is a loss of reuse locality (e.g. "a" and "b" share an edge, but are now some distance apart). Mali uses a post-transform cache for positions, so if the index reuse is too far apart you may end up reshading the same index multiple times.
Our new Frame Advisor tool can give more feedback on geometry efficiency metrics and how much additional shading you will experience.
Cheers,Pete