+++ /dev/null
-diff --git a/SPIRV/GlslangToSpv.cpp b/SPIRV/GlslangToSpv.cpp
-index dd11304..aebc986 100755
---- a/SPIRV/GlslangToSpv.cpp
-+++ b/SPIRV/GlslangToSpv.cpp
-@@ -2630,13 +2630,6 @@ spv::Id TGlslangToSpvTraverser::createImageTextureFunctionCall(glslang::TIntermO
- bias = true;
- }
-
-- // See if the sampler param should really be just the SPV image part
-- if (cracked.fetch) {
-- // a fetch needs to have the image extracted first
-- if (builder.isSampledImage(params.sampler))
-- params.sampler = builder.createUnaryOp(spv::OpImage, builder.getImageType(params.sampler), params.sampler);
-- }
--
- // set the rest of the arguments
-
- params.coords = arguments[1];
cd %GLSLANG_DIR%
git fetch --all
git checkout %GLSLANG_REVISION%
- REM Revert glslang a5c33d6ffb34ccede5b233bc724c907166b6e479
- REM See https://github.com/KhronosGroup/Vulkan-LoaderAndValidationLayers/issues/681
- git apply --whitespace=fix %BUILD_DIR%\glslang_revert_a5c33d.patch.txt
goto:eof
:create_spirv-tools
cd $BASEDIR/glslang
git fetch --all
git checkout $GLSLANG_REVISION
- # Revert glslang a5c33d6ffb34ccede5b233bc724c907166b6e479
- # See https://github.com/KhronosGroup/Vulkan-LoaderAndValidationLayers/issues/681
- git diff-index --quiet HEAD | true
- rc=${PIPESTATUS[0]}
- if (( $rc == 0 ))
- then
- echo "applying patch to revert glslang a5c33d"
- git apply $BUILDDIR/glslang_revert_a5c33d.patch.txt
- fi
}
function create_spirv-tools () {