pan/mdg: remove ins->br_compact and ins->branch_extended
authorItalo Nicola <italonicola@collabora.com>
Wed, 29 Jul 2020 20:37:15 +0000 (20:37 +0000)
committerMarge Bot <eric+marge@anholt.net>
Thu, 30 Jul 2020 22:55:36 +0000 (22:55 +0000)
Signed-off-by: Italo Nicola <italonicola@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5933>

src/panfrost/midgard/compiler.h
src/panfrost/midgard/midgard_schedule.c

index f8fa09f3fda48618b9f9b90a72c6c3dda14a74c2..4a318f169bbe2edca5a188d5a1e5171fccce5f9a 100644 (file)
@@ -184,11 +184,7 @@ typedef struct midgard_instruction {
         union {
                 midgard_load_store_word load_store;
                 midgard_texture_word texture;
-                midgard_branch_extended branch_extended;
-                uint16_t br_compact;
 
-                /* General branch, rather than packed br_compact. Higher level
-                 * than the other components */
                 midgard_branch branch;
         };
 } midgard_instruction;
index cee0271718f0d791955ac32cac9dbec943687850..3391e5360b2f340555b55ca92f334fd6c06768e0 100644 (file)
@@ -225,7 +225,7 @@ bytes_for_instruction(midgard_instruction *ains)
         else if (ains->unit == ALU_ENAB_BRANCH)
                 return sizeof(midgard_branch_extended);
         else if (ains->compact_branch)
-                return sizeof(ains->br_compact);
+                return sizeof(uint16_t);
         else
                 return sizeof(midgard_reg_info) + sizeof(midgard_scalar_alu);
 }