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:
parent
ec8ca8a403
commit
59d4556641
@ -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 = { };
|
||||
|
Loading…
x
Reference in New Issue
Block a user