diff options
author | Eric Anholt <[email protected]> | 2015-08-05 20:54:02 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2015-08-20 23:42:45 -0700 |
commit | 98728ce0718e49864b872beb76fc3afbf341b38a (patch) | |
tree | 40ed67a84615a7a7967a68a44fb49fba3fd388c2 /src/gallium/drivers/vc4/vc4_program.c | |
parent | 69ef08d303cdf153fe2432a7e40faccae5d62aab (diff) |
vc4: Switch QPU_PACK_SCALED to be two non-SSA instructions.
total instructions in shared programs: 98159 -> 98136 (-0.02%)
instructions in affected programs: 12279 -> 12256 (-0.19%)
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_program.c')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_program.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/drivers/vc4/vc4_program.c b/src/gallium/drivers/vc4/vc4_program.c index 303132f3a3b..ff41779e6c1 100644 --- a/src/gallium/drivers/vc4/vc4_program.c +++ b/src/gallium/drivers/vc4/vc4_program.c @@ -1142,7 +1142,10 @@ emit_scaled_viewport_write(struct vc4_compile *c, struct qreg rcp_w) rcp_w)); } - qir_VPM_WRITE(c, qir_PACK_SCALED(c, xyi[0], xyi[1])); + struct qreg packed = qir_get_temp(c); + qir_PACK_16A_I(c, packed, xyi[0]); + qir_PACK_16B_I(c, packed, xyi[1]); + qir_VPM_WRITE(c, packed); } static void |