summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc4/vc4_qir.h
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2016-11-15 12:36:20 -0800
committerEric Anholt <[email protected]>2016-11-29 08:38:59 -0800
commit51087327f2ba929739719b2ae243d8c69d31346f (patch)
treeabdb18b2c979269ee92b963a2e46e6550ad4beb9 /src/gallium/drivers/vc4/vc4_qir.h
parenta220f1b5a9beaba146096971354ae37c6f75d4ef (diff)
vc4: Replace the qinst src[] with a fixed-size array.
This may have made a tiny bit of sense when we had one 4-arg inst per shader, but if we only ever put 2 things in, having a pointer to 2 things almost every instruction is pointless indirection.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_qir.h')
-rw-r--r--src/gallium/drivers/vc4/vc4_qir.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/vc4/vc4_qir.h b/src/gallium/drivers/vc4/vc4_qir.h
index 4c240c71c66..eec50c3439e 100644
--- a/src/gallium/drivers/vc4/vc4_qir.h
+++ b/src/gallium/drivers/vc4/vc4_qir.h
@@ -203,7 +203,7 @@ struct qinst {
enum qop op;
struct qreg dst;
- struct qreg *src;
+ struct qreg src[2];
bool sf;
bool cond_is_exec_mask;
uint8_t cond;