Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
A
angle
  • Project
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Chen Yisong
  • angle
  • Repository

Switch branch/tag
  • angle
  • src
  • libANGLE
  • renderer
  • vulkan
  • ProgramPipelineVk.cpp
Find file
BlameHistoryPermalink
  • Jamie Madill's avatar
    Vulkan: Implement shader buffers descriptor cache. · 0c77f3ad
    Jamie Madill authored Mar 10, 2021
    Implements a descriptor set cache for UBOs, SSBOs, and atomic counter
    buffers. Storage Images and framebuffer fetch input attachments are
    not yet included. Requires moving the buffer barrier handling into
    ContextVk, similarly to how we handle the barriers for Textures.
    
    The packed description key for the descriptors uses a "fast" vector
    with a basic minimum size. For most cases of a few buffers this will
    fit easily in stack memory, but for larger programs with many buffers
    we fit this into heap memory. The key has a large upper bound due to
    the high ES 3.2 requirements and the need to index several values such
    as the offset and binding size.
    
    We use dynamic offsets for uniform buffers when possible. This ensures
    applications like Manhattan 3.1 that use sets of common buffers with
    changing offsets hit the cache most of the time.
    
    Because of resource limits we pick at compilation time whether to use
    dynamic or static descriptor sets. Mostly this applies to tests that
    use a large number of uniform buffers. A future implementation could
    be smart and would recompile the program with heuristics to use a
    minimal number of dynamic indices.
    
    Reduces the number of descriptor set updates from ~300 -> ~30 per frame
    in Manhattan 3.1 and in Asphalt 9 from 900+ to as low as 0 per frame.
    
    Bug: angleproject:5736
    Change-Id: I5c2a3881bec90d301dab15cc86c8a70e60674ad7
    Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2757515
    Commit-Queue: Jamie Madill <jmadill@chromium.org>
    Reviewed-by: 's avatarTim Van Patten <timvp@google.com>
    Reviewed-by: 's avatarShahbaz Youssefi <syoussefi@chromium.org>
    0c77f3ad
ProgramPipelineVk.cpp 11.2 KB
EditWeb IDE
×

Replace ProgramPipelineVk.cpp

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.