1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-20 19:54:19 +01:00

[dxso] Forbid FETCH4 for 3D and not Cube

SPIR-V spec contradicts itself as to what is allowed here, and SPIR-V val doesn't help by listing the wrong dimension.
This commit is contained in:
Joshua Ashton 2020-05-25 09:26:09 +01:00
parent 87e8b9733f
commit 9ee4add77e

View File

@ -2771,7 +2771,7 @@ void DxsoCompiler::emitControlFlowGenericLoop(
}
uint32_t fetch4 = 0;
if (m_programInfo.type() == DxsoProgramType::PixelShader && samplerType != SamplerTypeTextureCube) {
if (m_programInfo.type() == DxsoProgramType::PixelShader && samplerType != SamplerTypeTexture3D) {
fetch4 = m_module.opBitFieldUExtract(
m_module.defIntType(32, 0), m_ps.fetch4Spec,
m_module.consti32(samplerIdx), m_module.consti32(1));