diff options
author | Eric Anholt <[email protected]> | 2016-03-21 14:17:45 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2016-04-08 18:41:45 -0700 |
commit | 44d7b8ad12df504058615901c7233c45e4f24a9f (patch) | |
tree | 535ccd17f60cb13753acdb0d00fbe92592b70ca8 /src/gallium/drivers/vc4/vc4_qir_lower_uniforms.c | |
parent | 114c8b38d317629769ad0fcf3f84e24951ffcd7c (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.c | 2 |
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; |