• Show log

    Commit

  • Hash : 7b62cf97
    Author : Jamie Madill
    Date : 2017-11-02T15:20:49

    Refactor TextureFormatMap to store an array.
    
    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: Corentin Wallez <cwallez@chromium.org>
    

  • Properties

  • Git HTTP https://git.kmx.io/kc3-lang/angle.git
    Git SSH git@git.kmx.io:kc3-lang/angle.git
    Public access ? public
    Description

    A conformant OpenGL ES implementation for Windows, Mac, Linux, iOS and Android.

    Homepage

    Github

    Users
    kc3_lang_org thodg_w www_kmx_io thodg_l thodg thodg_m
    Tags