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

[dxbc] Extend scalar constants to vectors if required

Needed for ENB. Fixes #865.
This commit is contained in:
Philip Rebohle 2019-10-23 15:14:51 +02:00
parent ec8ca8a403
commit 59d4556641
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -5609,6 +5609,8 @@ namespace dxvk {
result.type.ctype = DxbcScalarType::Uint32;
result.type.ccount = 1;
result.id = m_module.constu32(reg.imm.u32_1);
result = emitRegisterExtend(result, writeMask.popCount());
} else if (reg.componentCount == DxbcComponentCount::Component4) {
// Create a u32 vector with as many components as needed
std::array<uint32_t, 4> indices = { };