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

[dxbc] Assume vec4 type for i/o vars not declared in signature

Works around an ENB bug.
This commit is contained in:
Philip Rebohle 2019-10-23 15:08:40 +02:00
parent 3e12a116bb
commit ec8ca8a403
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -7572,7 +7572,10 @@ namespace dxvk {
default: {
DxbcVectorType result;
result.ctype = DxbcScalarType::Float32;
result.ccount = m_isgn->regMask(regIdx).minComponents();
result.ccount = 4;
if (m_isgn->findByRegister(regIdx))
result.ccount = m_isgn->regMask(regIdx).minComponents();
return result;
}
}
@ -7606,7 +7609,10 @@ namespace dxvk {
default: {
DxbcVectorType result;
result.ctype = DxbcScalarType::Float32;
result.ccount = m_osgn->regMask(regIdx).minComponents();
result.ccount = 4;
if (m_osgn->findByRegister(regIdx))
result.ccount = m_osgn->regMask(regIdx).minComponents();
return result;
}
}