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
  • tests
  • gl_tests
  • RobustResourceInitTest.cpp
Find file
BlameHistoryPermalink
  • Alexis Hetu's avatar
    Fix clearing compressed textures with Vulkan backend · 6e7d7296
    Alexis Hetu authored Apr 24, 2020
    When making sure a texture's data is initialized in ANGLE, it
    is illegal to attempt to clear it when using the Vulkan backend.
    
    The Vulkan spec, regarding vkCmdClearColorImage, mentions that:
    "image must not have a compressed or depth/stencil format"
    
    The proper way of initializing the memory of a compressed image
    in Vulkan is to do a buffer to image copy instead. This was added
    to ImageHelper::stageRobustResourceClear() so that it may now
    handle compressed textures properly.
    
    Bug: angleproject:4092
    Change-Id: I073ed0603d9e92e787b9be8992751dbc0c8978db
    Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2165636Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
    Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org>
    Commit-Queue: Alexis Hétu <sugoi@chromium.org>
    6e7d7296
RobustResourceInitTest.cpp 77.9 KB
EditWeb IDE
×

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