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
  • vk_format_utils.cpp
Find file
BlameHistoryPermalink
  • Jamie Madill's avatar
    Vulkan: Use angle::FormatID instead of VkFormat. · 2e9706d8
    Jamie Madill authored Jan 08, 2021
    This change switches the internal enums we pass around from VkFormat
    to FormatID. The end goal of the refactor is to allow the Vulkan
    back-end to store packed tables indexed by FormatID. Because VkFormat
    has large gaps in its enum space we'd otherwise need to use unordered
    data structures like unordered_map.
    
    The change removes the redundant VkFormat storage from vk::Format and
    uses a new table query to return the VkFormat that 1:1 matches an
    angle::FormatID. We also include a reverse mapping for use with native
    Vulkan get functions for Android.
    
    Also moves sRGB conversion functions into renderer_utils. A couple
    sRGB formats that don't exist in GL are no longer handled by the sRGB
    conversion functions. These formats should be extremely rare.
    
    Bug: angleproject:5438
    Change-Id: Id8b49773ca0c556f9f5a6a10fcf0d9762b93bbea
    Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2618204
    Commit-Queue: Jamie Madill <jmadill@chromium.org>
    Reviewed-by: 's avatarShahbaz Youssefi <syoussefi@chromium.org>
    Reviewed-by: 's avatarIan Elliott <ianelliott@google.com>
    2e9706d8
vk_format_utils.cpp 17.5 KB
EditWeb IDE
×

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