[D3D12] Don't use emit_then_cut due to RDNA 3 crash

This commit is contained in:
Triang3l
2023-04-09 18:07:44 +03:00
parent baa2ff78d8
commit 88c645d818
2 changed files with 12 additions and 9 deletions

View File

@@ -2196,6 +2196,8 @@ class Assembler {
++stat_.instruction_count;
++stat_.cut_instruction_count;
}
// Don't use emit_then_cut_stream - crashes AMD Software: Adrenalin Edition
// 23.3.2 shader compiler on RDNA 3 if used conditionally.
void OpEmitThenCutStream(const Dest& stream) {
uint32_t operands_length = stream.GetLength();
code_.reserve(code_.size() + 1 + operands_length);