diff options
author | Eric Anholt <[email protected]> | 2015-08-18 21:26:05 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2015-08-20 23:43:04 -0700 |
commit | 8b36d107fdd6f6b91556fcdc3498df16803d4181 (patch) | |
tree | 197465bb5fde7eb6081064552ce27d61785f6221 /src/gallium/drivers/vc4/vc4_qir.h | |
parent | 572a48366d9dfac6a7f9ee8f4d29832c496125e2 (diff) |
vc4: Pack the unorm-packing bits into a src MUL instruction when possible.
Now that we do non-SSA QIR instructions, we can take a NIR SSA src that's
only used by the unorm packing and just stuff the pack bits into it.
total instructions in shared programs: 98136 -> 97974 (-0.17%)
instructions in affected programs: 4149 -> 3987 (-3.90%)
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_qir.h')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_qir.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_qir.h b/src/gallium/drivers/vc4/vc4_qir.h index c9ca3da203c..65d493dd558 100644 --- a/src/gallium/drivers/vc4/vc4_qir.h +++ b/src/gallium/drivers/vc4/vc4_qir.h @@ -58,6 +58,7 @@ enum qfile { struct qreg { enum qfile file; uint32_t index; + int pack; }; enum qop { |