diff options
author | Eric Anholt <[email protected]> | 2015-10-24 16:30:30 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2015-10-24 17:55:22 -0700 |
commit | f09ed63f4342846e361242233162799140674d5f (patch) | |
tree | a84c67f872a7618541e35bcac96ca19b8dd3056f /src/gallium/drivers/vc4/vc4_qir.c | |
parent | 9ecfc6baf1c92a9050942e0f015ba4e9e2619cb9 (diff) |
vc4: Fix the test for skipping raw MOVs.
I don't know what previous test was trying to do, but it dates back to the
first add of vc4_qpu_emit.c. No change to shader-db.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_qir.c')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_qir.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_qir.c b/src/gallium/drivers/vc4/vc4_qir.c index e7d0d664e19..3d3989fa95d 100644 --- a/src/gallium/drivers/vc4/vc4_qir.c +++ b/src/gallium/drivers/vc4/vc4_qir.c @@ -190,6 +190,14 @@ qir_is_mul(struct qinst *inst) } bool +qir_is_raw_mov(struct qinst *inst) +{ + return (inst->op == QOP_MOV && + !inst->dst.pack && + !inst->src[0].pack); +} + +bool qir_is_tex(struct qinst *inst) { return inst->op >= QOP_TEX_S && inst->op <= QOP_TEX_DIRECT; |