diff options
author | Alyssa Rosenzweig <[email protected]> | 2020-05-14 13:29:22 -0400 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-05-22 18:05:14 +0000 |
commit | 7a52e975e4e97061b6ccab1b027bc4524460a7fd (patch) | |
tree | fbacc1f6054debbd8050817ca15283ab4e3fdb09 /src/panfrost/midgard | |
parent | f7cf5a30c747e83ef728142e472c341a01f19a70 (diff) |
pan/mdg: Add pack_colour_32 opcode
Seen for RGB10_A2UI packing.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5153>
Diffstat (limited to 'src/panfrost/midgard')
-rw-r--r-- | src/panfrost/midgard/midgard.h | 3 | ||||
-rw-r--r-- | src/panfrost/midgard/midgard_ops.c | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/panfrost/midgard/midgard.h b/src/panfrost/midgard/midgard.h index 13e7bac210a..705bbd386cb 100644 --- a/src/panfrost/midgard/midgard.h +++ b/src/panfrost/midgard/midgard.h @@ -415,6 +415,9 @@ typedef enum { /* Packs a colour from fp16 to a native format */ midgard_op_pack_colour = 0x09, + /* Likewise packs from fp32 */ + midgard_op_pack_colour_32 = 0x0A, + /* Unclear why this is on the L/S unit, but moves fp32 cube map * coordinates in r27 to its cube map texture coordinate destination * (e.g r29). */ diff --git a/src/panfrost/midgard/midgard_ops.c b/src/panfrost/midgard/midgard_ops.c index 8bb2528711a..5e3debec9a7 100644 --- a/src/panfrost/midgard/midgard_ops.c +++ b/src/panfrost/midgard/midgard_ops.c @@ -182,6 +182,7 @@ struct mir_op_props alu_opcode_props[256] = { struct mir_ldst_op_props load_store_opcode_props[256] = { [midgard_op_unpack_colour] = {"unpack_colour", M32}, [midgard_op_pack_colour] = {"pack_colour", M32}, + [midgard_op_pack_colour_32] = {"pack_colour_32", M32}, [midgard_op_ld_cubemap_coords] = {"ld_cubemap_coords", M32}, [midgard_op_ld_compute_id] = {"ld_compute_id", M32}, [midgard_op_ldst_perspective_division_z] = {"ldst_perspective_division_z", M32}, |