Skip to content

Commit

Permalink
[External] Update external libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
Minmin Gong committed Apr 26, 2020
1 parent 3abff09 commit c0bf229
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 51 deletions.
12 changes: 4 additions & 8 deletions External/DirectXShaderCompiler.cmake
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

set(DirectXShaderCompiler_REV "b053bfbaae0d4d14e7d715ebe5592ade82388637")
set(DirectXShaderCompiler_REV "002ed9737e389cebbefd1e8376bff6ad8a642340")

UpdateExternalLib("DirectXShaderCompiler" "https://github.com/Microsoft/DirectXShaderCompiler.git" ${DirectXShaderCompiler_REV} need_patch)
if(need_patch)
foreach(patch "0001-Fix-a-couple-warnings-in-code")
ApplyPatch("DirectXShaderCompiler" "${CMAKE_CURRENT_SOURCE_DIR}/Patches/${patch}.patch")
endforeach()
endif()
UpdateExternalLib("DirectXShaderCompiler" "https://github.com/Microsoft/DirectXShaderCompiler.git" ${DirectXShaderCompiler_REV})

set(ENABLE_SPIRV_CODEGEN ON CACHE BOOL "" FORCE)
set(CLANG_ENABLE_ARCMT OFF CACHE BOOL "" FORCE)
Expand All @@ -17,6 +12,7 @@ set(CLANG_INCLUDE_TESTS OFF CACHE BOOL "" FORCE)
set(LLVM_INCLUDE_TESTS OFF CACHE BOOL "" FORCE)
set(HLSL_INCLUDE_TESTS OFF CACHE BOOL "" FORCE)
set(HLSL_BUILD_DXILCONV OFF CACHE BOOL "" FORCE)
set(HLSL_SUPPORT_QUERY_GIT_COMMIT_INFO OFF CACHE BOOL "" FORCE)
set(LLVM_TARGETS_TO_BUILD "None" CACHE STRING "" FORCE)
set(LLVM_INCLUDE_DOCS OFF CACHE BOOL "" FORCE)
set(LLVM_INCLUDE_EXAMPLES OFF CACHE BOOL "" FORCE)
Expand Down Expand Up @@ -61,7 +57,7 @@ foreach(target
"LLVMLinker" "LLVMLTO" "LLVMMSSupport" "LLVMOption" "LLVMPasses" "LLVMPassPrinters" "LLVMProfileData" "LLVMScalarOpts" "LLVMSupport"
"LLVMTableGen" "LLVMTarget" "LLVMTransformUtils" "LLVMVectorize"
"ClangDriverOptions" "DxcEtw" "intrinsics_gen" "TablegenHLSLOptions"
"clang-tblgen" "GIT_COMMIT_INFO_ALWAYS_REBUILD" "llvm-tblgen" "hlsl_dxcversion_autogen" "hlsl_version_autogen")
"clang-tblgen" "llvm-tblgen" "hlsl_dxcversion_autogen" "hlsl_version_autogen")
get_target_property(vsFolder ${target} FOLDER)
if(NOT vsFolder)
set(vsFolder "")
Expand Down
39 changes: 0 additions & 39 deletions External/Patches/0001-Fix-a-couple-warnings-in-code.patch

This file was deleted.

2 changes: 1 addition & 1 deletion External/SPIRV-Cross.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

set(SPIRV_Cross_REV "d19f30a90eff98fb4c33a2f24b05699c7de87ecb")
set(SPIRV_Cross_REV "1ad1662a2b4a41ed0076750b0cc2732cb89a19e8")

UpdateExternalLib("SPIRV-Cross" "https://github.com/KhronosGroup/SPIRV-Cross.git" ${SPIRV_Cross_REV})

Expand Down
2 changes: 1 addition & 1 deletion External/SPIRV-Header.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

set(SPIRV_Headers_REV "5dbc1c32182e17b8ab8e8158a802ecabaf35aad3")
set(SPIRV_Headers_REV "f8bf11a0253a32375c32cad92c841237b96696c0")

UpdateExternalLib("SPIRV-Headers" "https://github.com/KhronosGroup/SPIRV-Headers.git" ${SPIRV_Headers_REV})

Expand Down
2 changes: 1 addition & 1 deletion External/SPIRV-Tools.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

set(SPIRV_Tools_REV "70f888131ede3d267cb19a413c9fef3fc51ccc22")
set(SPIRV_Tools_REV "fd773eb50d628c1981338addc093df879757c2cf")

UpdateExternalLib("SPIRV-Tools" "https://github.com/KhronosGroup/SPIRV-Tools.git" ${SPIRV_Tools_REV})

Expand Down
2 changes: 1 addition & 1 deletion Source/Tests/Data/Expected/DetailTessellation_HS.msl
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ struct main0_in
float3 in_var_LIGHTVECTORTS [[attribute(3)]];
};

kernel void main0(main0_in in [[stage_in]], constant type_cbMain& cbMain [[buffer(0)]], uint gl_InvocationID [[thread_index_in_threadgroup]], device main0_out* spvOut [[buffer(28)]], constant uint* spvIndirectParams [[buffer(29)]], device MTLTriangleTessellationFactorsHalf* spvTessLevel [[buffer(26)]], threadgroup main0_in* gl_in [[threadgroup(0)]])
kernel void main0(main0_in in [[stage_in]], constant type_cbMain& cbMain [[buffer(0)]], uint gl_InvocationID [[thread_index_in_threadgroup]], uint gl_PrimitiveID [[threadgroup_position_in_grid]], device main0_out* spvOut [[buffer(28)]], constant uint* spvIndirectParams [[buffer(29)]], device MTLTriangleTessellationFactorsHalf* spvTessLevel [[buffer(26)]], threadgroup main0_in* gl_in [[threadgroup(0)]])
{
device main0_out* gl_out = &spvOut[gl_PrimitiveID * 3];
if (gl_InvocationID < spvIndirectParams[0])
Expand Down

0 comments on commit c0bf229

Please sign in to comment.