aco: validate instructions reading/writing upper halves/bytes
[mesa.git] / src / amd / compiler / aco_ir.h
index a25efe1e7a1886c4af086aba3a8dfbcb918ee877..4e8aa372dff64e6ac6ad1db20b9e3255650c0e1a 100644 (file)
@@ -1223,6 +1223,8 @@ barrier_interaction get_barrier_interaction(const Instruction* instr);
 
 bool is_dead(const std::vector<uint16_t>& uses, Instruction *instr);
 
+bool can_use_opsel(chip_class chip, aco_opcode op, int idx, bool high);
+
 enum block_kind {
    /* uniform indicates that leaving this block,
     * all actives lanes stay active */
@@ -1430,6 +1432,7 @@ public:
    unsigned workgroup_size; /* if known; otherwise UINT_MAX */
 
    bool xnack_enabled = false;
+   bool sram_ecc_enabled = false;
 
    bool needs_vcc = false;
    bool needs_flat_scr = false;