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
  • FrameCapture.h
Find file
BlameHistoryPermalink
  • Cody Northrop's avatar
    Capture/Replay: Support buffer map/unmap state during MEC · 22c95964
    Cody Northrop authored Jun 04, 2020
    Angry Birds 2 is the first app we've targeted that maps buffers
    across frame boundaries.  This exposed some gaps and assumptions
    we had in the code, and required additional support for MEC.
    
    To support this, we track each buffer's starting map/unmap state
    and how it changes throughout the trace.  Then during Reset, we emit
    calls to return them to the correct state:
    
    void ResetContext3Replay()
    {
        ...
        glBindBuffer(GL_ARRAY_BUFFER, gBufferMap[546]);
        glUnmapBuffer(GL_ARRAY_BUFFER);
        glBindBuffer(GL_ARRAY_BUFFER, gBufferMap[550]);
        gMappedBufferData[gBufferMap[550]] =
            glMapBufferRange(GL_ARRAY_BUFFER, 0, 8192, GL_MAP_WRITE_BIT);
        ...
    }
    
    Test: MEC of Angry Birds 2
    Bug: angleproject:4599
    Bug: b/157672184
    Change-Id: I5c73ca4d4eba7f1ecea01467ae887bae7f2d27fd
    Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2231803
    Commit-Queue: Cody Northrop <cnorthrop@google.com>
    Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
    22c95964
FrameCapture.h 18.2 KB
EditWeb IDE
×

Replace FrameCapture.h

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.