summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc4/vc4_qir.h
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2014-09-29 09:39:46 -0700
committerEric Anholt <[email protected]>2014-09-29 10:07:24 -0700
commit7a85ebf6e211423c98bb045ad21026c5ffeaa9bb (patch)
tree5fec8f15cf8446ab6a98833e9d185c9e3c25670b /src/gallium/drivers/vc4/vc4_qir.h
parent3386e95994ec77248f71dedf49f996e2078f8cea (diff)
vc4: Stop trying to reuse temporaries that store uniform values.
Almost always, the MOV will get copy propagated out. Even if it doesn't, it's probably better to just reload the uniform at next use (to reduce register pressure) rather than try to save instruction count. I was looking at this because in the presence of texturing (which calls add_uniform() directly to get the uniform load forced into the instruction) the c->uniform_contents indices don't match 1:1 with the temporary qregs.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_qir.h')
-rw-r--r--src/gallium/drivers/vc4/vc4_qir.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/gallium/drivers/vc4/vc4_qir.h b/src/gallium/drivers/vc4/vc4_qir.h
index 6a2e3c4b2d6..f771c425415 100644
--- a/src/gallium/drivers/vc4/vc4_qir.h
+++ b/src/gallium/drivers/vc4/vc4_qir.h
@@ -215,7 +215,6 @@ struct vc4_compile {
struct qreg *temps;
struct qreg *inputs;
struct qreg *outputs;
- struct qreg *uniforms;
struct qreg *consts;
uint32_t temps_array_size;
uint32_t inputs_array_size;