vc4: Pull uinfo->data[i] dereference out to the top of the loop.
authorEric Anholt <eric@anholt.net>
Tue, 7 Aug 2018 20:31:09 +0000 (13:31 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 8 Aug 2018 00:00:22 +0000 (17:00 -0700)
commit3954331aff2329157a15f8b5b9b4655179aafc33
treeb02581247cb537ec1f87ab5ca4a1d273ec3e694e
parent550e9c917c155b3fc4e7bd0b74ead90814f864d8
vc4: Pull uinfo->data[i] dereference out to the top of the loop.

Reduces the size of vc4_uniforms.o by about 10%.  We would basically
always end up loading the cachline of uinfo->data[i] anyway, so it should
be good for performance as well as making the code a bit cleaner.
src/gallium/drivers/vc4/vc4_uniforms.c