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
  • OutputHLSL.cpp
Find file
BlameHistoryPermalink
  • Corentin Wallez's avatar
    Change the FLATTEN heuristic to "ifs with a loop with a gradient" · 477b243b
    Corentin Wallez authored Aug 31, 2015
    This heuristic makes more sense than the previous "ifs with a
    discontinuous loop" as the reason we need to flatten is that we need
    gradients to be in branchless code.
    
    Change the UnrollFlatten test accordingly.
    
    Tested with:
     - the WebGL CTS
     - dev.miaumiau.cat/rayTracer "Skull Demo"
     - THe turbulenz engine GPU particle demo
     - Lots of ShaderToy Samples (inc. Volcanic, Metropolis and Hierarchical
       Voronoi)
     - Google Maps Earth mode
     - Lots of Chrome experiments
     - madebyevan.com/webgl-water
    
    BUG=524297
    
    Change-Id: Iaa727036fffcfde3952716a1ef33b6ee0546b69d
    Reviewed-on: https://chromium-review.googlesource.com/296442Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
    Tested-by: 's avatarCorentin Wallez <cwallez@chromium.org>
    477b243b
OutputHLSL.cpp 113 KB
EditWeb IDE
×

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