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
  • D3D11FormatTablesTest.cpp
Find file
BlameHistoryPermalink
  • Jamie Madill's avatar
    Refactor TextureFormatMap to store an array. · 7b62cf97
    Jamie Madill authored Nov 02, 2017
    std::map lookups are already showing up as a hot spot during some
    profile trace analysis. We can elimintate these by only doing a
    single switch at the entry point level to convert the GL internal
    format to an internal identifier or type info pointer.
    
    This change doesn't completely fix the hot spot, since now we are
    doing multiple switch statements, but it does remove the std::map
    storage in TextureCapsMap. It replaces it with a flat std::array
    indexed by angle::Format::ID, and gives us the option in the future
    to eliminate all by one switch statement.
    
    This should allow for a faster texture caps implementation in Vulkan.
    
    This also fixes the missing ANGLE format entries for ETC1 compressed
    formats.
    
    BUG=angleproject:2207
    
    Change-Id: I74ea2082e582a6790d5fde90e33246a618a2da0e
    Reviewed-on: https://chromium-review.googlesource.com/742375
    Commit-Queue: Jamie Madill <jmadill@chromium.org>
    Reviewed-by: 's avatarCorentin Wallez <cwallez@chromium.org>
    7b62cf97
D3D11FormatTablesTest.cpp 6.58 KB
EditWeb IDE
×

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