1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-03-13 19:29:14 +01:00

[dxso] Fix getting sampler type of vertex textures

Fixes: c7afe0dd2386f0c4acdf610fb7d2c9eaa95c3516
This commit is contained in:
Joshua Ashton 2022-08-05 18:17:21 +00:00 committed by Joshie
parent 7e237b33b7
commit 438ae5cdfc

View File

@ -3050,7 +3050,7 @@ void DxsoCompiler::emitControlFlowGenericLoop(
auto SampleType = [&](DxsoSamplerType samplerType) {
uint32_t typeId = m_module.defIntType(32, 0);
uint32_t offset = m_module.consti32(m_programInfo.type() == DxsoProgramTypes::VertexShader ? samplerIdx + 17 : samplerIdx);
uint32_t offset = m_module.consti32(m_programInfo.type() == DxsoProgramTypes::VertexShader ? samplerIdx + caps::MaxTexturesPS : samplerIdx);
uint32_t bitCnt = m_module.consti32(1);
uint32_t isNull = m_module.opBitFieldUExtract(typeId, m_nullSpecConstant, offset, bitCnt);