Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
} else if (instr->format == Format::MIMG) {
MIMG_instruction *mimg = static_cast<MIMG_instruction *>(instr.get());
return mimg->disable_wqm;
+ } else if (instr->format == Format::FLAT || instr->format == Format::GLOBAL) {
+ FLAT_instruction *flat = static_cast<FLAT_instruction *>(instr.get());
+ return flat->disable_wqm;
} else {
return instr->format == Format::EXP || instr->opcode == aco_opcode::p_fs_buffer_store_smem;
}
flat->glc = glc;
flat->dlc = false;
flat->offset = offset;
+ flat->disable_wqm = true;
+ ctx->program->needs_exact = true;
ctx->block->instructions.emplace_back(std::move(flat));
}
}
bool dlc; /* NAVI: device level coherent */
bool lds;
bool nv;
+ bool disable_wqm;
};
struct Export_instruction : public Instruction {
fprintf(output, " lds");
if (flat->nv)
fprintf(output, " nv");
+ if (flat->disable_wqm)
+ fprintf(output, " disable_wqm");
break;
}
case Format::MTBUF: {