1. 16 Apr, 2021 1 commit
  2. 14 Apr, 2021 1 commit
  3. 13 Apr, 2021 2 commits
  4. 09 Apr, 2021 1 commit
  5. 29 Mar, 2021 1 commit
    • Automate installing the API library for testing · 4c0f888d
      Nicolas Capens authored
      To run dEQP tests we previously either had to install the Vulkan Loader
      and configure it to find the SwiftShader Vulkan ICD, or manually copy
      over the library.
      
      This change introduces the SWIFTSHADER_VULKAN_API_LIBRARY_INSTALL_PATH
      environment variable, which can be set to a path where the API library
      should be copied to. When used with dEQP it ensures we always test with
      the last build, instead of the path provided in the JSON file used by
      the Vulkan loader.
      
      Note this is only meant as a convenience for SwiftShader development.
      It shouldn't be used as a substitute for installing the ICD for
      system-wide usage. The latter should probably use CMAKE_INSTALL_PREFIX
      instead, but there are no known use cases yet for installing SwiftShader
      as the system-level driver, through the CMake build.
      
      Bug: b/149486511
      Change-Id: I5ec9d669967ba0c05a763263605ee0ad5cfd505e
      Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/53768
      Presubmit-Ready: Nicolas Capens <nicolascapens@google.com>
      Tested-by: 's avatarNicolas Capens <nicolascapens@google.com>
      Kokoro-Result: kokoro <noreply+kokoro@google.com>
      Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com>
  6. 26 Mar, 2021 1 commit
  7. 25 Mar, 2021 2 commits
  8. 24 Mar, 2021 1 commit
  9. 17 Mar, 2021 1 commit
  10. 16 Mar, 2021 1 commit
    • Fix multiview renderpass queries · a0aeb64e
      Nicolas Capens authored
      The spec states that "If queries are used while executing a render pass
      instance that has multiview enabled, the query uses N consecutive query
      indices in the query pool (starting at query) where N is the number of
      bits set in the view mask in the subpass the query is used in. How the
      numerical results of the query are distributed among the queries is
      implementation-dependent. For example, some implementations may write
      each view’s results to a distinct query, while other implementations
      may write the total result to the first query and write zero to the
      other queries."
      
      This wasn't working properly for occlusion queries, but we missed it
      because dEQP doesn't provide coverage for this case if timestamp queries
      are not supported. This change fixes it for both query types.
      
      Note that for occlusion queries we write the total result to the first
      query, and set the remaining query results to 0, as explicitly allowed
      by the spec.
      
      For timestamp queries each query result is a valid timestamp (note that
      the spec also allows for only the first query to be a timestamp, while
      the remaining ones are zero).
      
      Bug: b/142643809
      Change-Id: I531248c2822c5f68d8636d4a3d153082c48cac1d
      Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/53668
      Presubmit-Ready: Nicolas Capens <nicolascapens@google.com>
      Tested-by: 's avatarNicolas Capens <nicolascapens@google.com>
      Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com>
  11. 15 Mar, 2021 1 commit
  12. 13 Mar, 2021 1 commit
  13. 12 Mar, 2021 5 commits
  14. 11 Mar, 2021 2 commits
  15. 10 Mar, 2021 1 commit
  16. 08 Mar, 2021 2 commits
  17. 05 Mar, 2021 1 commit
  18. 04 Mar, 2021 1 commit
    • Implement VK_KHR_timeline_semaphore · 6846389f
      Sean Risser authored
      Timeline semaphores track a monotonically increasing uint64_t that
      serves as a signal to any number of threads on the device or the host.
      Threads and the host wait on the value of the payload to become a
      specific value, then unblock. Or they can signal the semaphore and
      update its value, unblocking all threads waiting on that value in the
      process.
      
      Clang's Thread Safety Analysis is not used for TimelineSemaphore as
      it has a bug that prevents it from properly analyzing lambdas that access
      guarded resources.
      
      Change-Id: Iafd95b8eac11beea21c00df87ca7ca1e51c77c64
      Bug: b/147738281
      Test: dEQP-VK.api.info.vulkan1p2_limits_validation.timeline_semaphore
      Test: dEQP-VK.synchronization.basic.timeline_semaphore.*
      Test: dEQP-VK.synchronization.timeline_semaphore.*
      Test: dEQP-VK.synchronization.op.single_queue.timeline_semaphore.*
      Test: dEQP-VK.synchronization.cross_instance.*
      Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/52148
      Kokoro-Result: kokoro <noreply+kokoro@google.com>
      Tested-by: 's avatarSean Risser <srisser@google.com>
      Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
      Reviewed-by: 's avatarAntonio Maiorano <amaiorano@google.com>
      Commit-Queue: Sean Risser <srisser@google.com>
  19. 03 Mar, 2021 1 commit
  20. 26 Feb, 2021 2 commits
  21. 24 Feb, 2021 6 commits
  22. 22 Feb, 2021 4 commits
  23. 20 Feb, 2021 1 commit
    • Simplify If/Else lowering · d85a7a27
      Nicolas Capens authored
      Previously we would append the 'begin' basic block with the conditional
      branch only once we know whether or not there's a 'false' block separate
      from the 'end' block (namely when executing the Else statement). We can
      instead treat the 'false' block as the 'end' block itself when no Else
      is encountered and simply continue emitting instructions in this block.
      
      Note this removes the need to explicitly materialize all variables,
      because that's taken care of by createCondBr().
      
      Bug: b/180131694
      Change-Id: I5c5c4373d1dc02991feffa69d4089b2c12054dc0
      Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/52988
      Kokoro-Result: kokoro <noreply+kokoro@google.com>
      Tested-by: 's avatarNicolas Capens <nicolascapens@google.com>
      Presubmit-Ready: Nicolas Capens <nicolascapens@google.com>
      Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com>