diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-04-05 05:37:37 +0000 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-04-07 16:01:12 +0000 |
commit | 65816ad6e8df9663401ec8f0454228de8e2074e2 (patch) | |
tree | ff25050c410995ead0e6a9da65b8173242776fb7 /src/gallium/drivers/panfrost/midgard/helpers.h | |
parent | 6cba9acb75865183ae887554cc617e2935f68472 (diff) |
panfrost/midgard: Add ibitcount8 op
The mechanics of this opcode are a little opaque, but essentially, it's
used in 8-bit mode to do a bit count in parallel of a uint and then
doing a ton of clever iadd/imov ops to recombine.
v2: Correct opcode. Thank you to jernej on IRC for noticing this awkward
typo!
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/gallium/drivers/panfrost/midgard/helpers.h')
-rw-r--r-- | src/gallium/drivers/panfrost/midgard/helpers.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/panfrost/midgard/helpers.h b/src/gallium/drivers/panfrost/midgard/helpers.h index 6cb00a58d68..4c2be223186 100644 --- a/src/gallium/drivers/panfrost/midgard/helpers.h +++ b/src/gallium/drivers/panfrost/midgard/helpers.h @@ -254,6 +254,7 @@ static unsigned alu_opcode_props[256] = { [midgard_alu_op_ior] = UNITS_ADD, [midgard_alu_op_ixor] = UNITS_ADD, [midgard_alu_op_ilzcnt] = UNITS_ADD, + [midgard_alu_op_ibitcount8] = UNITS_ADD, [midgard_alu_op_inot] = UNITS_MOST, [midgard_alu_op_ishl] = UNITS_ADD, [midgard_alu_op_iasr] = UNITS_ADD, |