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
  • Olli Etuaho's avatar
    Fix HLSL for switch statements that don't end in a branch · 852fe873
    Olli Etuaho authored Oct 10, 2017
    In case the last case inside a switch statement is not terminated in
    a branch statement, RemoveSwitchFallThrough needs to add it before
    calling handlePreviousCase. This ensures that all preceding
    fall-through cases will get a copy of the branch statement and so will
    not fall through.
    
    This also fixes running RemoveSwitchFallThrough so that it's only
    executed once per each switch statement.
    
    The error was not caught by the dEQP tests, so a new ANGLE test is
    added.
    
    BUG=angleproject:2178
    TEST=angle_end2end_tests
    
    Change-Id: I26b6989aa4d32de2d74cde56d72ee24f61195445
    Reviewed-on: https://chromium-review.googlesource.com/709196Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
    Reviewed-by: 's avatarCorentin Wallez <cwallez@chromium.org>
    Commit-Queue: Olli Etuaho <oetuaho@nvidia.com>
    852fe873
OutputHLSL.cpp 92.8 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.