Update glslang to (af4592) - include proper RelaxedPrecision handling
authorscygan <slawomir.cygan@intel.com>
Fri, 6 May 2016 15:46:29 +0000 (17:46 +0200)
committerscygan <slawomir.cygan@intel.com>
Fri, 6 May 2016 15:46:29 +0000 (17:46 +0200)
Without this all build-in functions get RelaxedPrecision decoration in fragment shader, making _many_ tests fail.

external/fetch_sources.py
external/glslang/CMakeLists.txt

index ca8edb5..7af1ad5 100644 (file)
@@ -174,7 +174,7 @@ PACKAGES = [
                "spirv-tools"),
        GitRepo(
                "https://github.com/KhronosGroup/glslang.git",
-               "f2d8a5c53fda69a7e19defbda7964f380da54ad1",
+               "af459216a18a08c2e3eec880329c3a7a1244ddeb",
                "glslang"),
 ]
 
index 834190c..28dd5b4 100644 (file)
@@ -18,16 +18,7 @@ else ()
        set(GLSLANG_ABS_PATH "${CMAKE_SOURCE_DIR}/${GLSLANG_SRC_PATH}")
 endif ()
 
-find_package(BISON)
-
-# \todo [2015-06-24 pyry] Full C++11 support on Android requires using CLang + libc++
-if (NOT BISON_FOUND AND DE_OS_IS_WIN32 AND EXISTS ${GLSLANG_ABS_PATH}/tools/bison.exe)
-       message(STATUS "Using pre-built bison executable")
-       set(BISON_EXECUTABLE ${GLSLANG_ABS_PATH}/tools/bison.exe)
-       set(BISON_FOUND ON)
-endif ()
-
-if (BISON_FOUND AND EXISTS ${GLSLANG_ABS_PATH}/glslang/GenericCodeGen/CodeGen.cpp AND NOT DE_OS_IS_ANDROID)
+if (EXISTS ${GLSLANG_ABS_PATH}/glslang/GenericCodeGen/CodeGen.cpp)
        message(STATUS "glslang found; building with DEQP_SUPPORT_GLSLANG")
 
        include_directories(
@@ -40,7 +31,6 @@ if (BISON_FOUND AND EXISTS ${GLSLANG_ABS_PATH}/glslang/GenericCodeGen/CodeGen.cp
                ${GLSLANG_ABS_PATH}/glslang/OSDependent
                ${GLSLANG_ABS_PATH}/OGLCompilersDLL
                ${GLSLANG_ABS_PATH}/SPIRV
-               ${CMAKE_CURRENT_BINARY_DIR}
                )
 
        set(GLSLANG_SRCS
@@ -56,6 +46,7 @@ if (BISON_FOUND AND EXISTS ${GLSLANG_ABS_PATH}/glslang/GenericCodeGen/CodeGen.cp
                ${GLSLANG_ABS_PATH}/glslang/MachineIndependent/ShaderLang.cpp
                ${GLSLANG_ABS_PATH}/glslang/MachineIndependent/SymbolTable.cpp
                ${GLSLANG_ABS_PATH}/glslang/MachineIndependent/Versions.cpp
+               ${GLSLANG_ABS_PATH}/glslang/MachineIndependent/glslang_tab.cpp
                ${GLSLANG_ABS_PATH}/glslang/MachineIndependent/intermOut.cpp
                ${GLSLANG_ABS_PATH}/glslang/MachineIndependent/limits.cpp
                ${GLSLANG_ABS_PATH}/glslang/MachineIndependent/linkValidate.cpp
@@ -71,6 +62,10 @@ if (BISON_FOUND AND EXISTS ${GLSLANG_ABS_PATH}/glslang/GenericCodeGen/CodeGen.cp
                ${GLSLANG_ABS_PATH}/glslang/GenericCodeGen/CodeGen.cpp
                ${GLSLANG_ABS_PATH}/glslang/GenericCodeGen/Link.cpp
                ${GLSLANG_ABS_PATH}/OGLCompilersDLL/InitializeDll.cpp
+               
+               ${GLSLANG_ABS_PATH}/hlsl/hlslGrammar.cpp
+               ${GLSLANG_ABS_PATH}/hlsl/hlslParseHelper.cpp
+               ${GLSLANG_ABS_PATH}/hlsl/hlslScanContext.cpp
 
                ${GLSLANG_ABS_PATH}/SPIRV/GlslangToSpv.cpp
                ${GLSLANG_ABS_PATH}/SPIRV/InReadableOrder.cpp
@@ -79,9 +74,6 @@ if (BISON_FOUND AND EXISTS ${GLSLANG_ABS_PATH}/glslang/GenericCodeGen/CodeGen.cp
                ${GLSLANG_ABS_PATH}/SPIRV/doc.cpp
                ${GLSLANG_ABS_PATH}/SPIRV/disassemble.cpp
 
-               ${CMAKE_CURRENT_BINARY_DIR}/glslang_tab.cpp
-               ${CMAKE_CURRENT_BINARY_DIR}/glslang_tab.cpp.h
-
                osinclude.cpp
                )
 
@@ -92,11 +84,6 @@ if (BISON_FOUND AND EXISTS ${GLSLANG_ABS_PATH}/glslang/GenericCodeGen/CodeGen.cp
                set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
        endif ()
 
-       add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/glslang_tab.cpp ${CMAKE_CURRENT_BINARY_DIR}/glslang_tab.cpp.h
-                                          COMMAND ${BISON_EXECUTABLE} --defines=${CMAKE_CURRENT_BINARY_DIR}/glslang_tab.cpp.h -t MachineIndependent/glslang.y -o ${CMAKE_CURRENT_BINARY_DIR}/glslang_tab.cpp
-                                          MAIN_DEPENDENCY ${GLSLANG_ABS_PATH}/glslang/MachineIndependent/glslang.y
-                                          WORKING_DIRECTORY ${GLSLANG_ABS_PATH}/glslang)
-
        add_library(glslang STATIC ${GLSLANG_SRCS})
        target_link_libraries(glslang dethread ${ZLIB_LIBRARY})