diff options
author | Eric Anholt <[email protected]> | 2015-01-08 18:32:29 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2015-01-10 13:54:12 +1300 |
commit | 72cb6619cb75a92901d372d687505a747a384571 (patch) | |
tree | 90568090fa72cec2f3c6aa78cd274dd5453cece0 /src/gallium/drivers/vc4/vc4_qir.c | |
parent | 3093bfacf042516cd2a0fa2346da1e9df5f321ec (diff) |
vc4: Restructure color packing as a series of channel replacements.
I'm using this in some WIP commits for doing blending in 8888 instead of
vec4. But it also gives us these results immediately, thanks to allowing
more uniforms/immediates in the arguments:
total instructions in shared programs: 41027 -> 40960 (-0.16%)
instructions in affected programs: 4381 -> 4314 (-1.53%)
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_qir.c')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_qir.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/drivers/vc4/vc4_qir.c b/src/gallium/drivers/vc4/vc4_qir.c index 3fd39413222..5f3b8ddc445 100644 --- a/src/gallium/drivers/vc4/vc4_qir.c +++ b/src/gallium/drivers/vc4/vc4_qir.c @@ -73,7 +73,11 @@ static const struct qir_op_info qir_op_info[] = { [QOP_RSQ] = { "rsq", 1, 1, false, true }, [QOP_EXP2] = { "exp2", 1, 2, false, true }, [QOP_LOG2] = { "log2", 1, 2, false, true }, - [QOP_PACK_COLORS] = { "pack_colors", 1, 4, false, true }, + [QOP_PACK_8888_F] = { "pack_8888_f", 1, 1, false, true }, + [QOP_PACK_8A_F] = { "pack_8a_f", 1, 2, false, true }, + [QOP_PACK_8B_F] = { "pack_8b_f", 1, 2, false, true }, + [QOP_PACK_8C_F] = { "pack_8c_f", 1, 2, false, true }, + [QOP_PACK_8D_F] = { "pack_8d_f", 1, 2, false, true }, [QOP_PACK_SCALED] = { "pack_scaled", 1, 2, false, true }, [QOP_VPM_READ] = { "vpm_read", 0, 1, true }, [QOP_TLB_DISCARD_SETUP] = { "discard", 0, 1, true }, |