v3d: Move constant offsets to UBO addresses into the main uniform stream.
authorEric Anholt <eric@anholt.net>
Tue, 19 Mar 2019 18:39:58 +0000 (11:39 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 21 Mar 2019 21:20:50 +0000 (14:20 -0700)
commit320e96baced8093c6af11d86a216d83cee1eeb30
treeccd26e9344f16640e17212171a4d4d558139da46
parentc36d2793ec79a8cee75953acbc87b621fbd25e49
v3d: Move constant offsets to UBO addresses into the main uniform stream.

We'd end up with the constant offset in the uniform stream anyway, since
they're bigger than small immediates.  Avoids the extra uniforms and adds
in the shader in favor of just adding once on the CPU.

shader-db:
total instructions in shared programs: 6496865 -> 6494851 (-0.03%)
total uniforms in shared programs: 2119511 -> 2117243 (-0.11%)
src/broadcom/compiler/nir_to_vir.c
src/broadcom/compiler/v3d_compiler.h
src/broadcom/compiler/vir_dump.c
src/gallium/drivers/v3d/v3d_screen.c
src/gallium/drivers/v3d/v3d_uniforms.c