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
  • Shader
  • Constants.cpp
Find file
BlameHistoryPermalink
  • Nicolas Capens's avatar
    Implement sRGB texture sampling. · 5555af49
    Nicolas Capens authored Dec 14, 2017
    Previously sRGB data was converted to linear space on upload. This
    caused a loss of precision. This change performs the conversion after
    texel lookup. Note that we had a code path for performing the
    conversion after filtering, but that leads to failures in dEQP and
    unacceptable darkening between texels.
    
    Also, glTexSubImage calls can update sRGB textures using a format/type
    combination with no indication of the color space, which caused an
    unintentional conversion on upload. Likewise we were missing support
    for an A2B10G10R10UI implementation format.
    
    Change-Id: Ib10845f628fb2d1849e88d7a9350868cdec32fa2
    Reviewed-on: https://swiftshader-review.googlesource.com/15068Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com>
    Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
    Tested-by: 's avatarNicolas Capens <nicolascapens@google.com>
    5555af49
Constants.cpp 13.8 KB
EditWeb IDE
×

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