1. 27 Feb, 2021 2 commits
  2. 26 Feb, 2021 4 commits
  3. 25 Feb, 2021 2 commits
  4. 24 Feb, 2021 4 commits
    • Merge pull request #2549 from jeremy-lunarg/hayes-2479 · 00c6d2d4
      greg-lunarg authored
      Require fixed workgroup size declaration
    • Require fixed workgroup size declaration · 1c628064
      Jeremy Hayes authored
      Fix 2479.
    • Merge pull request #2546 from proydakov/msvc-noexcept-fix · 9801a9e4
      greg-lunarg authored
      Fixed msvc 2019 nmake noexcept build.
    • Fixed msvc 2019 nmake noexcept build. · 5f7228e7
      Evgeny Proydakov authored
      By default cmake generates cxx_flags with /EHsc parameter.
      I updated CMAKE_CXX_FLAGS string and removed /EHsc, also I added compile defenitions _HAS_EXCEPTIONS=0, it is mandatory for noexcept build with MSVC STL implementation.
      Output files became smaller.
      
      How to reproduce:
      
      Visual Studio 2019 x64 command port
      
      mkdir build-msvc2019
      cd build-msvc2019
      cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_LIBDIR=install ..
      nmake
      
      CXX FLAGS BEFORE:
      
      -- CMAKE_C_FLAGS:   /DWIN32 /D_WINDOWS /W3
      -- CMAKE_CXX_FLAGS: /DWIN32 /D_WINDOWS /W3 /GR- /EHsc
      -- CMAKE_CXX_FLAGS_DEBUG:   /MDd /Zi /Ob0 /Od /RTC1
      -- CMAKE_CXX_FLAGS_RELEASE: /MD /O2 /Ob2 /DNDEBUG
      -- ENABLE_RTTI:       OFF
      -- ENABLE_EXCEPTIONS: OFF
      
      OUTPUT SIZE BEFORE:
      
      Build folder size: 61,8 MB (64 808 580 bytes)
      
      GLSLANG SIZE BEFORE:
      
      glslang.lib 22,7 MB (23 887 150 bytes)
      
      CXX FLAGS AFTER:
      
      -- CMAKE_C_FLAGS:   /DWIN32 /D_WINDOWS /W3
      -- CMAKE_CXX_FLAGS: /DWIN32 /D_WINDOWS /W3 /GR-
      -- CMAKE_CXX_FLAGS_DEBUG:   /MDd /Zi /Ob0 /Od /RTC1
      -- CMAKE_CXX_FLAGS_RELEASE: /MD /O2 /Ob2 /DNDEBUG
      -- ENABLE_RTTI:       OFF
      -- ENABLE_EXCEPTIONS: OFF
      
      OUTPUT SIZE AFTER:
      
      Build folder size: 58,4 MB (61 331 179 bytes)
      
      GLSLANG SIZE AFTER:
      
      glslang.lib 21,6 MB (22 655 252 bytes)
  5. 23 Feb, 2021 5 commits
  6. 22 Feb, 2021 2 commits
  7. 19 Feb, 2021 1 commit
    • Fix warning in build · d9b931e2
      Daniel Koch authored
      glslang/MachineIndependent/SymbolTable.h:892:41: error: comparison of integers of
      different signs: 'int' and 'const uint32_t' (aka 'const unsigned int') [-Werror,-Wsign-compare]
                  uint64_t level = currentLevel() > MaxLevelInUniqueID ? MaxLevelInUniqueID : currentLevel();
                                   ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
      1 error generated.
  8. 18 Feb, 2021 3 commits
    • Fixed cmake generation warning for regeneration project build files. · 31d234c1
      Evgeny Proydakov authored
      [BEFORE]:
      
      % cmake ..
      CMake Warning (dev) at CMakeLists.txt:35 (project):
        Policy CMP0048 is not set: project() command manages VERSION variables.
        Run "cmake --help-policy CMP0048" for policy details.  Use the cmake_policy
        command to set the policy and suppress this warning.
      
        The following variable(s) would be set to empty:
      
          CMAKE_PROJECT_VERSION
          CMAKE_PROJECT_VERSION_MAJOR
          CMAKE_PROJECT_VERSION_MINOR
          CMAKE_PROJECT_VERSION_PATCH
      This warning is for project developers.  Use -Wno-dev to suppress it.
      
      -- No build type selected, default to Debug
      -- Found PythonInterp: /usr/local/bin/python3 (found version "3.9")
      -- Found PythonInterp: /usr/local/bin/python3 (found suitable version "3.9", minimum required is "3")
      -- optimizer enabled
      -- Google Mock found - building tests
      -- Configuring done
      
      [AFTER]:
      
      % cmake ..
      -- No build type selected, default to Debug
      -- Google Mock was not found - tests based on that will not build
      -- Configuring done
      -- Generating done
    • Merge pull request #2536 from greg-lunarg/chg0 · e56beaee
      greg-lunarg authored
      Update CHANGES for 11.1.0
    • Update CHANGES for 11.1.0 · ecd9bb20
      Greg Fischer authored
  9. 15 Feb, 2021 3 commits
  10. 14 Feb, 2021 1 commit
  11. 12 Feb, 2021 1 commit
  12. 11 Feb, 2021 1 commit
  13. 09 Feb, 2021 5 commits
  14. 07 Feb, 2021 1 commit
  15. 03 Feb, 2021 2 commits
  16. 01 Feb, 2021 2 commits
  17. 30 Jan, 2021 1 commit
    • callGraph.push_front -> emplace_front to fix UBSAN · 546f626c
      Gleb Mazovetskiy authored
      UBSAN rightly complains on `push_front` here:
      
          glslang/MachineIndependent/localintermediate.h:100:8: runtime error: load of value 160, which is not a valid value for type 'bool'
          #0 in glslang::TCall::TCall(glslang::TCall&&) glslang/MachineIndependent/localintermediate.h:100
          #1 in void __gnu_cxx::new_allocator<std::_List_node<glslang::TCall> >::construct<glslang::TCall, glslang::TCall>(glslang::TCall*, glslang::TCall&&) /usr/include/c++/10/ext/new_allocator.h:150
          #2 in void std::allocator_traits<std::allocator<std::_List_node<glslang::TCall> > >::construct<glslang::TCall, glslang::TCall>(std::allocator<std::_List_node<glslang::TCall> >&, glslang::TCall*, glslang::TCall&&) /usr/include/c++/10/bits/alloc_traits.h:512
          #3 in std::_List_node<glslang::TCall>* std::__cxx11::list<glslang::TCall, std::allocator<glslang::TCall> >::_M_create_node<glslang::TCall>(glslang::TCall&&) (...)
          #4 in void std::__cxx11::list<glslang::TCall, std::allocator<glslang::TCall> >::_M_insert<glslang::TCall>(std::_List_iterator<glslang::TCall>, glslang::TCall&&) /usr/include/c++/10/bits/stl_list.h:1911
          #5 in std::__cxx11::list<glslang::TCall, std::allocator<glslang::TCall> >::push_front(glslang::TCall&&) /usr/include/c++/10/bits/stl_list.h:1167
          #6 in glslang::TIntermediate::addToCallGraph(TInfoSink&, std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char> > const&) glslang/MachineIndependent/Intermediate.cpp:2860
      
      What happens here:
      
      1. TCall's bool fields are not initialized on construction.
      2. `push_front` move the `TCall` passed into it.
      3. The move constructor copies unitialized bool, which may have an
         out-of-range value.
      
      What this fix does:
      
      Calls `emplace_back` to ensure no copy/move constructor is called.
      
      Fixes #2222
      Refs #2112