Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
S
swiftshader
  • 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
  • swiftshader
  • Repository

Switch branch/tag
  • swiftshader
  • third_party
  • astc-encoder
  • Source
  • astc_symbolic_physical.cpp
Find file
BlameHistoryPermalink
  • Alexis Hetu's avatar
    Implement ASTC support · 1b900878
    Alexis Hetu authored Feb 24, 2020
    This cl adds both LDR and HDR support for ASTC compressed
    textures. Only LDR formats are exposed in the
    PhysicalDevice's properties, but HDR support can be added
    trivially later by adding the HDR formats and exposing
    "VK_EXT_texture_compression_astc_hdr".
    
    Pulled from: https://github.com/ARM-software/astc-encoder
    Git hash: 81a5e50741b4c8302cf7d78f314a53e44ee68e1f
    
    The astc-encode git repo was added to third-party, with a
    few minor modifications:
    1) All encoding related code has been ripped out, only
       decoding related code remains
    2) Replaced ASTC_CODEC_INTERNAL_ERROR() with UNREACHABLE()
       in a switch statement in astc_color_unquantize.cpp
    3) Some functions were using a lot of stack memory, so I
       added a unique_ptr to allocate the same objects on the
       heap, to avoid potential issues.
    
    LDR ASTC is decoded to 8bit unsigned RGBA.
    HDR ASTC is decoded to 32b floating point.
    
    Tests: dEQP-VK.*astc*
    Bug: b/150130101
    Change-Id: I6b03fed6e1f326a95c7aefe9f9a9d0a89cf24428
    Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/41568Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
    Tested-by: 's avatarNicolas Capens <nicolascapens@google.com>
    Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
    1b900878
astc_symbolic_physical.cpp 7.37 KB
EditWeb IDE
×

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