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
  • d3d
  • d3d11
  • Fence11.cpp
Find file
BlameHistoryPermalink
  • Brian Osman's avatar
    Fix several bugs in the timeout logic of clientWait · a4810f71
    Brian Osman authored Oct 09, 2017
    1) timeout is unsigned, and clients tend to pass large unsigned values
       (like -1) to mean "wait as long as possible". Casting to signed at
       the start of the math meant that everything was negative, so we would
       never actually wait for fences to be signalled.
    
    2) When going from nanoseconds to seconds, we should divide by 10^9, not
       multiply by 10^6.
    
    3) Even with all of this, it's possible for a sufficiently large counter
       frequency to still cause overflow, so detect that case and clamp.
    
    Change-Id: I9e728aac72d8dc0b15582732b6fd4d87c90bd140
    Reviewed-on: https://chromium-review.googlesource.com/707202Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org>
    Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
    Commit-Queue: Jamie Madill <jmadill@chromium.org>
    a4810f71
Fence11.cpp 6.3 KB
EditWeb IDE
×

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