Offset image operands is only valid for gather operations

This commit is contained in:
baldurk
2021-08-30 14:41:54 +01:00
parent 107077fde2
commit 241587a231
@@ -2573,10 +2573,6 @@ private:
rdcspv::ImageOperandsAndParamDatas imageOperands;
if(m_pDriver->GetDeviceEnabledFeatures().shaderImageGatherExtended &&
offsets[i] != rdcspv::Id())
imageOperands.setOffset(offsets[i]);
cases.add(rdcspv::OpLabel(label));
rdcspv::Id loadedImage =
cases.add(rdcspv::OpLoad(texSampTypes[i], editor.MakeId(), bindVars[i]));
@@ -2643,10 +2639,6 @@ private:
rdcspv::ImageOperandsAndParamDatas imageOperands;
if(m_pDriver->GetDeviceEnabledFeatures().shaderImageGatherExtended &&
offsets[i] != rdcspv::Id())
imageOperands.setOffset(offsets[i]);
cases.add(rdcspv::OpLabel(label));
rdcspv::Id loadedImage =
cases.add(rdcspv::OpLoad(texSampTypes[i], editor.MakeId(), bindVars[i]));