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
  • src
  • Common
  • Half.hpp
Find file
BlameHistoryPermalink
  • Nicolas Capens's avatar
    Use half-precision for special internal formats. · a6bc61d6
    Nicolas Capens authored Dec 20, 2017
    This change uses half-precision floating-point implementation formats
    for all OpenGL half-precision floating-point formats, as well as the
    R11F_G11F_B10F and RGB9_E5 special internal formats.
    
    sw::FORMAT_X16B16G16R16F was implemented for the formats without alpha.
    
    RGB9E5 conversion was optimized to not require powf(2.0, x), and 11-
    and 10-bit floating-point formats were optimized to map directly to
    16-bit half-precision floating-point.
    
    Change-Id: Ic33f903d01f37394244aec9f53b0e67d1c978764
    Reviewed-on: https://swiftshader-review.googlesource.com/15410Tested-by: 's avatarNicolas Capens <nicolascapens@google.com>
    Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com>
    Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
    a6bc61d6
Half.hpp 1.87 KB
EditWeb IDE
×

Replace Half.hpp

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.