1. 10 Dec, 2020 2 commits
    • Context refactor: from OpenGL-like state to Vulkan-like state · 35f07708
      Alexis Hetu authored
      Overview of the changes:
      
      The Context class has been split into more Vulkan related functional
      elements:
      - The IndexBuffer class, which contains the index buffer information
        and has been extended to also the functionality to support
        primitive restart. Should we need primitive restart related caching
        in the future, this would be the place to do it.
      - The Attachments class, which contains information about render
        targets and depth and stencil buffers
      - The Inputs class, which contains information about descriptor sets
        and input streams.
      - The GraphicsState is a completely constant class which can only be
        modified in the constructor, which represents the state of a
        graphics pipeline, which never changes past construction. The
        GraphicsState can be combined with a DynamicState structure in
        order to create a complete state used by rendering.
      
      Also to note:
      - The DynamicState class in now in Context.hpp, in order for the
        GraphicsState to have functionality related to it.
      - PushConstantStorage was moved to vk::Pipeline, as it is used by
        both the Graphics Pipeline and the Compute Pipeline.
      - Viewport/scissor functionality is contained in the GraphicsState
        and was removed from the Renderer.
      - All *Processor::update() functions now receive only the information
        that they require, rather that having access to the entire context.
      
      Bug: b/132280877
      
      Change-Id: I74f2582d34e45aa1e7b192dbd2b9b770e7af118d
      Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/48830Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
      Tested-by: 's avatarAlexis Hétu <sugoi@google.com>
      Commit-Queue: Alexis Hétu <sugoi@google.com>
      Kokoro-Result: kokoro <noreply+kokoro@google.com>
    • Set prefersDedicatedAllocation for AHB · d94a77b3
      Jason Macnak authored
      ... to make VkAHardwareBufferImage::init() happy.
      
      Bug: b/147316305
      Bug: b/141698760
      Test: cts CtsGraphicsTestCases -t android.graphics.cts.BasicVulkanGpuTest
      Change-Id: I599e2c0803a4008b80c1cd1f3ba9e4198cd0b72d
      Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/51069Tested-by: 's avatarJason Macnak <natsu@google.com>
      Commit-Queue: Jason Macnak <natsu@google.com>
      Kokoro-Result: kokoro <noreply+kokoro@google.com>
      Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
  2. 09 Dec, 2020 8 commits
  3. 07 Dec, 2020 2 commits
  4. 05 Dec, 2020 1 commit
  5. 04 Dec, 2020 7 commits
  6. 02 Dec, 2020 8 commits
  7. 30 Nov, 2020 4 commits
  8. 26 Nov, 2020 1 commit
    • Roll SPIRV-Headers and SPIRV-Tools · 9dff6a3b
      Ryan Harrison authored
      Squashed 'third_party/SPIRV-Headers/' changes from 7845730ca..104ecc356
      
      104ecc356 Merge pull request #180 from dneto0/issue-179
      93effe164 MeshShadingNV enables builtins PrimitiveId, Layer, and ViewportIndex
      4de110ce1 Merge pull request #182 from dgkoch/khr_rt_final
      632375607 de-alias/reassign OpIgnoreIntersectionKHR/OpTerminateRayKHR
      928a192ee Raytracing and Rayquery updates for final
      eb5e40912 Updated headers for new trace/executeCallable and acceleration structure cast.
      5ab5c9619 Reserve additional loop control bit for Intel extension (NoFusionINTEL) (#175)
      793f9199b Add EmbarkStudios/rust-gpu to vendor list. (#174)
      
      git-subtree-dir: third_party/SPIRV-Headers
      git-subtree-split: 104ecc356c1bea4476320faca64440cd1df655a3
      
      Squashed 'third_party/SPIRV-Tools/' changes from a61d07a72..b0e22d28f
      
      b0e22d28f spirv-fuzz: Fix facts arising from CompositeConstruct (#4034)
      5ffa320fe spirv-fuzz: Do not flatten conditionals that create synonyms (#4030)
      cd590fa33 Update MeshShadingNV dependencies (and land Ray tracing updates) (#4028)
      671914c28 Fix buffer oob instrumentation for matrix refs (#4025)
      1f2fcddd3 spirv-opt: Set parent when adding basic block (#4021)
      f686518ce spirv-opt: properly preserve DebugValue indexes operand (#4022)
      1cda49527 Use less stack space when validating Vulkan builtins (#4019)
      
      git-subtree-dir: third_party/SPIRV-Tools
      git-subtree-split: b0e22d28f5ec891d6b256703575d08fce4228bd9
      
      BUG: b/174239232
      
      Change-Id: I1973df95f38ce8d77d344dd43afa707588ab6dde
      Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/50749Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
      Tested-by: 's avatarRyan Harrison <rharrison@chromium.org>
  9. 23 Nov, 2020 6 commits
  10. 20 Nov, 2020 1 commit