mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-20 19:54:19 +01:00
Revert "[dxso] Make FETCH4 swizzle ARGB"
The documentation lies about the swizzle... This reverts commit 2fc00a331b952b1ecba9813d892f1edf80688c68. Closes #1641 Once and for all !
This commit is contained in:
parent
56687cc258
commit
a21e0d4bcf
@ -3121,8 +3121,8 @@ void DxsoCompiler::emitControlFlowGenericLoop(
|
||||
}
|
||||
|
||||
uint32_t fetch4Val = m_module.opImageGather(resultType, sampledImage, coordinates.id, m_module.consti32(0), fetch4Operands);
|
||||
// A R G B swizzle... Funny D3D9 order.
|
||||
const std::array<uint32_t, 4> indices = { 3, 0, 1, 2 };
|
||||
// B R G A swizzle... Funny D3D9 order.
|
||||
const std::array<uint32_t, 4> indices = { 2, 0, 1, 3 };
|
||||
fetch4Val = m_module.opVectorShuffle(resultType, fetch4Val, fetch4Val, indices.size(), indices.data());
|
||||
|
||||
val = m_module.opSelect(resultType, fetch4, fetch4Val, val);
|
||||
|
Loading…
x
Reference in New Issue
Block a user