1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-11-29 19:24:10 +01:00

[dxbc] Fix incorrect OpSelectionMerge instruction

Fixes a regression introduced in v0.53 that would cause
Witcher 3 to crash when enabling Nvidia Hairworks on RADV.
This commit is contained in:
Philip Rebohle 2018-05-31 14:20:12 +02:00
parent 621aed5fdb
commit aa76bae32a
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -3670,7 +3670,7 @@ namespace dxvk {
cond.labelIf = m_module.allocateId(); cond.labelIf = m_module.allocateId();
cond.labelEnd = m_module.allocateId(); cond.labelEnd = m_module.allocateId();
m_module.opSelectionMerge(cond.labelIf, spv::SelectionControlMaskNone); m_module.opSelectionMerge(cond.labelEnd, spv::SelectionControlMaskNone);
m_module.opBranchConditional(zeroTest.id, cond.labelIf, cond.labelEnd); m_module.opBranchConditional(zeroTest.id, cond.labelIf, cond.labelEnd);
// OpKill terminates the block // OpKill terminates the block