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
  • tests
  • compiler_tests
  • ConstantFolding_test.cpp
Find file
BlameHistoryPermalink
  • Olli Etuaho's avatar
    Refine swizzle/indexing constant folding code · 90892fbd
    Olli Etuaho authored Jul 14, 2016
    Fix constant folding of subscripting non-square matrices. Previously
    constant folding would offset the pointer into the matrix in multiples
    of the number of columns, when it should offset the pointer in
    multiples of the number of rows.
    
    Also change the MalformedShaderTest so that it only succeeds if vector
    swizzle is being checked correctly. Previously compilation would fail
    in the test either way because the shader code contained a call to an
    undefined function.
    
    Also refactor indexing checks and constant folding so that constant
    folding is done entirely separately from out-of-range checks. Bogus
    comments are removed from the constant folding functions.
    
    BUG=angleproject:1444
    TEST=angle_unittests, angle_end2end_tests
    
    Change-Id: I7073b38f759e9b3635ee05947df4f6d8e23a39d5
    Reviewed-on: https://chromium-review.googlesource.com/360112Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
    Commit-Queue: Olli Etuaho <oetuaho@nvidia.com>
    90892fbd
ConstantFolding_test.cpp 24.3 KB
EditWeb IDE
×

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