diff options
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_qpu.c')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_qpu.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_qpu.c b/src/gallium/drivers/vc4/vc4_qpu.c index 18863f7eac1..de07f72bdd6 100644 --- a/src/gallium/drivers/vc4/vc4_qpu.c +++ b/src/gallium/drivers/vc4/vc4_qpu.c @@ -208,3 +208,11 @@ qpu_inst(uint64_t add, uint64_t mul) return merge; } + +uint64_t +qpu_set_sig(uint64_t inst, uint32_t sig) +{ + assert(QPU_GET_FIELD(inst, QPU_SIG) == QPU_SIG_NONE); + return (inst & ~QPU_SIG_MASK) | QPU_SET_FIELD(sig, QPU_SIG); +} + |