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:
parent
f30923718f
commit
cd63ff6d76
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user