vc4: Try to pair up instructions when only one of them has PM bit
authorBoyan Ding <boyan.j.ding@gmail.com>
Sun, 30 Aug 2015 07:07:33 +0000 (15:07 +0800)
committerEric Anholt <eric@anholt.net>
Thu, 17 Sep 2015 18:57:46 +0000 (14:57 -0400)
commit8d3b92af21afb58b6a65e18bb05785d7aae72c27
tree2b11422853edaf34ddf112edc0744322120c8dba
parentfc11dbe13f3470ff2a4cb91c6b063db2456664da
vc4: Try to pair up instructions when only one of them has PM bit

Instructions with difference in PM field can actually be paired up if
the one without PM doesn't do packing/unpacking and non-NOP
packing/unpacking operations from PM instruction aren't added to the
other without PM.

total instructions in shared programs: 48209 -> 47460 (-1.55%)
instructions in affected programs:     11688 -> 10939 (-6.41%)

Signed-off-by: Boyan Ding <boyan.j.ding@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/gallium/drivers/vc4/vc4_qpu.c