Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
S
swiftshader
  • 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
  • swiftshader
  • Repository

Switch branch/tag
  • swiftshader
  • tests
  • SystemUnitTests
  • BUILD.gn
Find file
BlameHistoryPermalink
  • David 'Digit' Turner's avatar
    [memfd] Create support class for Linux memfd-backed region. · c9fa9fe9
    David 'Digit' Turner authored Aug 13, 2019
    This creates a new helper class to allocate memfd-backed shared
    memory regions with the Linux kernel. The feature has been
    supported since at least Linux 3.17, which is sufficient for
    a large number of desktop Linux and Android devices.
    
    However, only recent version of GLibc or the Android C library
    expose memfd_create(), so keep implementing it as a direct syscall.
    
    NOTE: There is a similar function named memfd_create() inside
          of src/Reactor/ExecutableMemory.cpp, but it is easier to
          keep them separate for now to avoid introducing subtle
          dependency issues in the CMakeLists.txt file.
    
    This will used in future CLs that implement Vulkan external
    semaphores and external memory on Linux and Android for SwiftShader.
    
    Bug: b/140419396
    
    Change-Id: I378c34760930d8fef7d0659128ededb5227c323f
    Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/35128Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
    Tested-by: 's avatarDavid Turner <digit@google.com>
    Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
    c9fa9fe9
BUILD.gn 930 Bytes
EditWeb IDE
×

Replace BUILD.gn

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.