vc4: Add a helper for making driver-specific NIR load_uniform for GL state
authorEric Anholt <eric@anholt.net>
Fri, 31 Jul 2015 16:02:01 +0000 (09:02 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 14 Aug 2015 18:39:18 +0000 (11:39 -0700)
commit38c6c0f5b499e2bcff2cc9607f67c0f1836f305b
treea3ae18cf0f05626fe62c1b5644b656d94556c175
parentd50c182671a6aa315c83b5e203655e902996c0e7
vc4: Add a helper for making driver-specific NIR load_uniform for GL state

In order to move more of our lowering into NIR, we need the ability to
reference various pipeline state (like texture rectangle scaling factors
or blend colors), so we just set those up as a load_uniform with a big
offset to indicate that it's not within the shader's uniform storage and
is one of our state values.
src/gallium/drivers/vc4/vc4_program.c
src/gallium/drivers/vc4/vc4_qir.h