mirror of
https://github.com/KhronosGroup/SPIRV-Cross.git
synced 2024-11-15 00:11:06 +00:00
b77be9f347
The robust access code was fixed to use a signed clamp which generates different results in the SPIR-V cross test.
56 lines
1.4 KiB
Bash
Executable File
56 lines
1.4 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
GLSLANG_REV=a4af7676feb011d61b1dfa8915bd41d9c5aaf22a
|
|
SPIRV_TOOLS_REV=e82a428605f6ce0a07337b36f8ba3935c9f165ac
|
|
SPIRV_HEADERS_REV=204cd131c42b90d129073719f2766293ce35c081
|
|
|
|
if [ -z $PROTOCOL ]; then
|
|
PROTOCOL=git
|
|
fi
|
|
|
|
echo "Using protocol \"$PROTOCOL\" for checking out repositories. If this is problematic, try PROTOCOL=https $0."
|
|
|
|
if [ -d external/glslang ]; then
|
|
echo "Updating glslang to revision $GLSLANG_REV."
|
|
cd external/glslang
|
|
git fetch origin
|
|
git checkout $GLSLANG_REV
|
|
else
|
|
echo "Cloning glslang revision $GLSLANG_REV."
|
|
mkdir -p external
|
|
cd external
|
|
git clone $PROTOCOL://github.com/KhronosGroup/glslang.git
|
|
cd glslang
|
|
git checkout $GLSLANG_REV
|
|
fi
|
|
cd ../..
|
|
|
|
if [ -d external/spirv-tools ]; then
|
|
echo "Updating SPIRV-Tools to revision $SPIRV_TOOLS_REV."
|
|
cd external/spirv-tools
|
|
git fetch origin
|
|
git checkout $SPIRV_TOOLS_REV
|
|
else
|
|
echo "Cloning SPIRV-Tools revision $SPIRV_TOOLS_REV."
|
|
mkdir -p external
|
|
cd external
|
|
git clone $PROTOCOL://github.com/KhronosGroup/SPIRV-Tools.git spirv-tools
|
|
cd spirv-tools
|
|
git checkout $SPIRV_TOOLS_REV
|
|
fi
|
|
|
|
if [ -d external/spirv-headers ]; then
|
|
cd external/spirv-headers
|
|
git pull origin master
|
|
git checkout $SPIRV_HEADERS_REV
|
|
cd ../..
|
|
else
|
|
git clone $PROTOCOL://github.com/KhronosGroup/SPIRV-Headers.git external/spirv-headers
|
|
cd external/spirv-headers
|
|
git checkout $SPIRV_HEADERS_REV
|
|
cd ../..
|
|
fi
|
|
|
|
cd ../..
|
|
|