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
  • InitOutputVariables_test.cpp
Find file
BlameHistoryPermalink
  • Olli Etuaho's avatar
    Clean up redundant initialization of gl_Position · b12040c4
    Olli Etuaho authored Jun 27, 2017
    In case gl_Position is statically used in the input shader, setting
    the INIT_OUTPUT_VARIABLES flag will initialize gl_Position. Avoid
    redundant initialization of gl_Position in this case.
    
    Includes cleaning up memory management in InitOutputVariables_test:
    all the pool-allocated variables will be freed at the end of each test
    when the memory pool is cleared, so manual memory management is not
    needed.
    
    Also includes making the zero node check used in unit tests stricter
    so that the tests are more reliable and moving it to
    ShaderCompileTreeTest.h so that it can be reused in the future.
    
    BUG=angleproject:2092
    TEST=angle_unittests
    
    Change-Id: I323a0a094afa6cea95c8a64e681d9fc485137423
    Reviewed-on: https://chromium-review.googlesource.com/549418
    Commit-Queue: Olli Etuaho <oetuaho@nvidia.com>
    Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
    b12040c4
InitOutputVariables_test.cpp 14.3 KB
EditWeb IDE
×

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