From 7a52e975e4e97061b6ccab1b027bc4524460a7fd Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Thu, 14 May 2020 13:29:22 -0400 Subject: [PATCH] pan/mdg: Add pack_colour_32 opcode Seen for RGB10_A2UI packing. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/midgard/midgard.h | 3 +++ src/panfrost/midgard/midgard_ops.c | 1 + 2 files changed, 4 insertions(+) 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}, -- 2.30.2