1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-18 20:52:10 +01:00

[dxbc] Fix operand type of resinfo_rcp_float division

Fixes invalid SPIR-V generated for this instruction.
This commit is contained in:
Philip Rebohle 2018-04-22 16:43:16 +02:00
parent f30923718f
commit cd63ff6d76

View File

@ -2630,7 +2630,8 @@ namespace dxvk {
if (resinfoType == DxbcResinfoType::RcpFloat) {
imageSize.id = m_module.opFDiv(
getVectorTypeId(imageSize.type),
m_module.constvec4f32(1.0f, 1.0f, 1.0f, 1.0f),
emitBuildConstVecf32(1.0f, 1.0f, 1.0f, 1.0f,
DxbcRegMask::firstN(imageSize.type.ccount)).id,
imageSize.id);
}