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
  • tests
  • gl_tests
  • VulkanPerformanceCounterTest.cpp
Find file
BlameHistoryPermalink
  • Shahbaz Youssefi's avatar
    Vulkan: Use subpass to unresolve render-to-texture attachments · f39e0f01
    Shahbaz Youssefi authored Sep 07, 2020
    GL_EXT_multisampled_render_to_texture allows singlesampled textures to
    be used with multisampled framebuffers in such a way that the final
    resolve operation is automatically done.  In Vulkan terminology, the
    render-to-texture GL attachment is used as a Vulkan subpass resolve
    attachment with an implicit (ideally-)lazy-memory multisampled image as
    the color attachment.
    
    This extension expects that if the texture is drawn to after the
    automatic resolve, the implicit multisampled image would take its
    fragment colors from the singlesampled image.  In other words, the
    opposite of a resolve operation should be automatically performed at the
    start of the render pass.  This change refers to this operation as
    "unresolve".
    
    The goal of this extension is to allow tiling GPUs to always keep
    multisampled data on tile memory and only ever load/store singlesampled
    data.  The latter is achieved by using a subpass resolve attachment and
    setting storeOp of the multisampled color attachment to DONT_CARE.  This
    change achieves the former by using an initial subpass that uses the
    resolve attachment as input attachment, draws into the multisampled
    color attachment and sets loadOp of said attachment to DONT_CARE.
    
    Bug: angleproject:4881
    Change-Id: I99f410530365963567c77a7d62fc9db1500e5e3e
    Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2397206
    Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org>
    Reviewed-by: 's avatarTim Van Patten <timvp@google.com>
    Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
    f39e0f01
VulkanPerformanceCounterTest.cpp 67.6 KB
EditWeb IDE
×

Replace VulkanPerformanceCounterTest.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.