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
  • libANGLE
  • renderer
  • metal
  • mtl_glslang_utils.mm
Find file
BlameHistoryPermalink
  • Tim Van Patten's avatar
    Revert "Vulkan: Generate gl_Position.z correction in SPIR-V" · e3c35736
    Tim Van Patten authored Jan 16, 2021
    This reverts commit 1e4f8b02.
    
    Reason for revert:
    Earlier CL breaks pre-rotation:
    https://chromium-review.googlesource.com/c/angle/angle/+/2598584
    
    Original change's description:
    > Vulkan: Generate gl_Position.z correction in SPIR-V
    >
    > Instead of having the translator output code to transform gl_Position.z
    > to Vulkan clip space in the vertex stage, this change makes the SPIR-V
    > transformer perform this operation on the last geometry stage.
    >
    > An alternative solution would be to generate this transformation in the
    > translator in every geometry stage, each controlled by a separate
    > specialization constant.  This change avoids unnecessary modifications
    > to earlier stages.  Additionally, the transformer is already modifying
    > gl_Position.xy for pre-rotation, so the addition of a small
    > transformation of gl_Position.z in the same spot is rather trivial.
    >
    > Bug: angleproject:5479
    > Change-Id: Id971179ba47b206204bfdaf3b2b295ef97dd5117
    > Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2598585
    > Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org>
    > Reviewed-by: Charlie Lao <cclao@google.com>
    > Reviewed-by: Jamie Madill <jmadill@chromium.org>
    
    TBR=syoussefi@chromium.org,jmadill@chromium.org,cclao@google.com
    
    Change-Id: I3bdf3d6f743125eaf552608f2664b715bd6935c5
    No-Presubmit: true
    No-Tree-Checks: true
    No-Try: true
    Bug: angleproject:5479
    Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2634203Reviewed-by: 's avatarTim Van Patten <timvp@google.com>
    Commit-Queue: Tim Van Patten <timvp@google.com>
    e3c35736
mtl_glslang_utils.mm 22.4 KB
EditWeb IDE
×

Replace mtl_glslang_utils.mm

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.