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
  • Pipeline
  • ShaderCore.cpp
Find file
BlameHistoryPermalink
  • Alexis Hetu's avatar
    Fix float to r11g11b10 conversion · 1c9f2426
    Alexis Hetu authored Mar 19, 2020
    Floating point negative values were first converted to half values,
    followed with a conversion to 11 bit or 10 bit mini floats by
    chopping the mantissa and removing the sign bit. Negative values
    were converted to the same values as positive values since removing
    the sign bit ended up doing the equivalent of an Abs() call.
    
    Clamped the value to 0 before the conversion to solve the issue.
    
    Bug: b/146223877 b/147900455
    Change-Id: I97decae66dc57a68f175b06902eb6725fc7d5794
    Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/42548
    Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
    Tested-by: 's avatarAlexis Hétu <sugoi@google.com>
    Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
    1c9f2426
ShaderCore.cpp 32.4 KB
EditWeb IDE
×

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