mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +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) {
|
if (resinfoType == DxbcResinfoType::RcpFloat) {
|
||||||
imageSize.id = m_module.opFDiv(
|
imageSize.id = m_module.opFDiv(
|
||||||
getVectorTypeId(imageSize.type),
|
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);
|
imageSize.id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user