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
  • VulkanBenchmarks
  • ClearImageBenchmarks.cpp
Find file
BlameHistoryPermalink
  • Antonio Maiorano's avatar
    VulkanBenchmarks: add validation layers and load via ICD · 60f543a6
    Antonio Maiorano authored Feb 10, 2021
    In DEBUG builds, enable validation layers: VK_LAYER_KHRONOS_validation
    and VK_LAYER_LUNARG_standard_validation. Also register the debug utils
    messenger ext callback for when validation layers report a problem. We
    can force validation layers in non-DEBUG by defining
    ENABLE_VALIDATION_LAYERS to 1.
    
    In order to be able to use validation layers, load the Vulkan driver via
    ICD, rather than directly. To load SwiftShader, generate a temp icd.json
    file pointing at the driver path, and temporarily set the
    VK_ICD_FILENAMES env var to point at it when we load the ICD. This also
    allows us to load the native GPU driver by defining LOAD_NATIVE_DRIVER
    to 1 (default is 0).
    
    Fixed errors reported by enabling validation layers:
    * TriangleSampleTexture had a mismatched binding number for the sampler2D
    * Correctly set memoryTypeIndex for allocations instead of 0
    
    Bug: b/176981107
    Change-Id: I3c791086acea048b73d3568d6d7a45d8e0100c17
    Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/52749
    Kokoro-Result: kokoro <noreply+kokoro@google.com>
    Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com>
    Tested-by: 's avatarAntonio Maiorano <amaiorano@google.com>
    Commit-Queue: Antonio Maiorano <amaiorano@google.com>
    60f543a6
ClearImageBenchmarks.cpp 4.73 KB
EditWeb IDE
×

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