1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-19 05:52:11 +01:00

[dxbc] Fixed issue with FtoD instruction picking an incorrect type

This commit is contained in:
Philip Rebohle 2018-06-07 16:02:59 +02:00
parent 68a7ad81e1
commit e35cbf833c
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -2581,7 +2581,7 @@ namespace dxvk {
uint32_t dstBits = ins.dst[0].mask.popCount(); uint32_t dstBits = ins.dst[0].mask.popCount();
DxbcRegMask srcMask = isDoubleType(ins.dst[0].dataType) DxbcRegMask srcMask = isDoubleType(ins.dst[0].dataType)
? DxbcRegMask(dstBits == 2, dstBits == 4, false, false) ? DxbcRegMask(dstBits >= 2, dstBits >= 4, false, false)
: DxbcRegMask(dstBits >= 1, dstBits >= 1, dstBits >= 2, dstBits >= 2); : DxbcRegMask(dstBits >= 1, dstBits >= 1, dstBits >= 2, dstBits >= 2);
// Perform actual conversion, destination modifiers are not applied // Perform actual conversion, destination modifiers are not applied