aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc4/vc4_qir_lower_uniforms.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2016-03-21 14:17:45 -0700
committerEric Anholt <[email protected]>2016-04-08 18:41:45 -0700
commit44d7b8ad12df504058615901c7233c45e4f24a9f (patch)
tree535ccd17f60cb13753acdb0d00fbe92592b70ca8 /src/gallium/drivers/vc4/vc4_qir_lower_uniforms.c
parent114c8b38d317629769ad0fcf3f84e24951ffcd7c (diff)
vc4: Add a helper function for the construction of qregs.
The separate declaration of the struct is not helping clarity, and I was going to be writing a whole lot more of these in the upcoming patches.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_qir_lower_uniforms.c')
-rw-r--r--src/gallium/drivers/vc4/vc4_qir_lower_uniforms.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/vc4/vc4_qir_lower_uniforms.c b/src/gallium/drivers/vc4/vc4_qir_lower_uniforms.c
index a57e100593c..927268d71ef 100644
--- a/src/gallium/drivers/vc4/vc4_qir_lower_uniforms.c
+++ b/src/gallium/drivers/vc4/vc4_qir_lower_uniforms.c
@@ -150,7 +150,7 @@ qir_lower_uniforms(struct vc4_compile *c)
* reference a temp instead.
*/
struct qreg temp = qir_get_temp(c);
- struct qreg unif = { QFILE_UNIF, max_index };
+ struct qreg unif = qir_reg(QFILE_UNIF, max_index);
struct qinst *mov = qir_inst(QOP_MOV, temp, unif, c->undef);
list_add(&mov->link, &c->instructions);
c->defs[temp.index] = mov;