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_command_buffer.mm
Find file
BlameHistoryPermalink
  • Le Hoang Quyen's avatar
    Metal: correctly clamp stencil reference values · fbe6c1d2
    Le Hoang Quyen authored Dec 14, 2019
    According to GL spec:
    - If stencil ref value is larger than max value the stencil buffer
    can represent, clamp it to max value (2^bits - 1)
    - The stencil clear value & mask will be truncated to stencil buffer's bits
    instead of clamping.
    
    Metal API is very vague on how it handles the stencil ref value larger than
    the stencil bits can represent, so we need to handle it manually. In fact,
    the Metal API seems to have bugs when dealing with large stencil ref value,
    i.e. > 0xff for example.
    
    Bug: angleproject:2634
    Change-Id: I86f61f0bfd19dfc0fa459c84d98785a1af857a6b
    Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1966185
    Commit-Queue: Jamie Madill <jmadill@chromium.org>
    Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
    Reviewed-by: 's avatarJonah Ryan-Davis <jonahr@google.com>
    fbe6c1d2
mtl_command_buffer.mm 29.5 KB
EditWeb IDE
×

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