Skip to content

Commit

Permalink
[dxso] Fix getting sampler type of vertex textures
Browse files Browse the repository at this point in the history
Fixes: c7afe0d
  • Loading branch information
misyltoad committed Aug 5, 2022
1 parent 7e237b3 commit 438ae5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dxso/dxso_compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 438ae5c

Please sign in to comment.