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
  • SamplerVk.cpp
Find file
BlameHistoryPermalink
  • Jamie Madill's avatar
    Vulkan: Redo Sampler Serials. · b9b5fa55
    Jamie Madill authored Aug 02, 2020
    Instead of refreshing sampler serials every time the SamplerVk or
    TextureVk has a state change we can give a VkSampler a unique serial.
    The serial is unique to this VkSampler and repeated state changes
    will fetch the same Serial from the SamplerCache. This allows for
    more cache hits.
    
    We store the the new Serial together with the VkSampler in a
    SamplerHelper class and store references to a SamplerHelper in
    SamplerVk and TextureVk instead of the VkSampler directly.
    
    In a follow-up change we will improve image view caching by also
    improving how we store serials for ImageViews.
    
    Bug: angleproject:4911
    Change-Id: I9168c2700e383bca796cca925b38cfd30132d982
    Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2333988
    Commit-Queue: Jamie Madill <jmadill@chromium.org>
    Reviewed-by: 's avatarTim Van Patten <timvp@google.com>
    Reviewed-by: 's avatarShahbaz Youssefi <syoussefi@chromium.org>
    b9b5fa55
SamplerVk.cpp 1.11 KB
EditWeb IDE
×

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