Skip to content

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

Switch branch/tag
  • angle
  • src
  • compiler
  • translator
  • Compiler.cpp
Find file
BlameHistoryPermalink
  • Olli Etuaho's avatar
    Work around pow() issue in NVIDIA 331.x drivers · 5c407bb7
    Olli Etuaho authored Jun 01, 2015
    pow(x, y) when y is a certain kind of a constant vector can cause issues on
    NVIDIA 331 series drivers. Add an option to replace pow(x, y) with
    exp2(y * log2(x)) when y is a constant to work around this issue.
    
    This is done with an AST traverser instead of BuiltInFunctionEmulator, since
    there's no mechanism in BuiltInFunctionEmulator to apply the replacements
    only to calls where the second parameter is constant.
    
    TEST=WebGL conformance tests
    BUG=chromium:477306
    
    Change-Id: Ifb327d72659fca36868439f24705203014b3ce53
    Reviewed-on: https://chromium-review.googlesource.com/274279Tested-by: 's avatarOlli Etuaho <oetuaho@nvidia.com>
    Reviewed-by: 's avatarZhenyao Mo <zmo@chromium.org>
    5c407bb7
Compiler.cpp 25.2 KB
EditWeb IDE
×

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