1. 19 Jul, 2019 1 commit
  2. 17 Jul, 2019 3 commits
  3. 16 Jul, 2019 3 commits
  4. 15 Jul, 2019 6 commits
  5. 11 Jul, 2019 2 commits
    • Fix reporting VK_ERROR_OUT_OF_HOST_MEMORY · 4cd9767e
      Nicolas Capens authored
      The regular C++ operator new calls the installed new-handler on
      out-of-memory, which by default throws std::bad_alloc when exception
      handling is enabled, or aborts when not. Under no circumstance is null
      returned. Furthermore, LLVM installs a new-handler itself, which also
      ends up aborting the program.
      
      Using the std::nothrow version of new does not work because it still
      calls the new-handler. Installing our own non-fatal new-handler is also
      futile because the new operator will re-attempt allocation.
      
      Setting the new-handler to nullptr will cause the nothrow version of new
      to return null on out-of-memory. However, this still overrides any new
      handler which the application may have installed, or, can be overridden
      by the application again at any point.
      
      Instead just use legacy malloc(), which is guaranteed to never throw and
      returns null on failure. This is already checked for by vk::Create() and
      it reports VK_ERROR_OUT_OF_HOST_MEMORY.
      
      Bug: b/137093675
      Change-Id: I6c9ccf738cfd21af9e52382d6e7755071d613d39
      Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/34028
      Presubmit-Ready: Nicolas Capens <nicolascapens@google.com>
      Reviewed-by: 's avatarBen Clayton <bclayton@google.com>
      Reviewed-by: 's avatarChris Forbes <chrisforbes@google.com>
      Tested-by: 's avatarNicolas Capens <nicolascapens@google.com>
      Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
    • Fix for rendering being too dark · f3dce112
      Alexis Hetu authored
      Using a non SRGB format with VK_COLOR_SPACE_SRGB_NONLINEAR_KHR
      yields a resulting image in the wrong color space. Making sure
      a surface format where format and color space are both SRGB
      fixes the issue.
      
      Bug b/137088174
      
      Change-Id: I934e6b60afe5f65d22832162e48aecef773627e8
      Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/34048Tested-by: 's avatarAlexis Hétu <sugoi@google.com>
      Presubmit-Ready: Alexis Hétu <sugoi@google.com>
      Reviewed-by: 's avatarChris Forbes <chrisforbes@google.com>
  6. 10 Jul, 2019 3 commits
  7. 08 Jul, 2019 1 commit
  8. 05 Jul, 2019 6 commits
  9. 04 Jul, 2019 14 commits
  10. 03 Jul, 2019 1 commit