Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • mesa mesa
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,061
    • Issues 3,061
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 997
    • Merge requests 997
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • MesaMesa
  • mesamesa
  • Issues
  • #178
Closed
Open
Issue created Sep 18, 2019 by Bugzilla Migration User@bugzilla-migration

Support VK_IMAGE_USAGE_STORAGE_BIT for WSI swapchain surfaces

Submitted by Niklas Haas

Assigned to Jason Ekstrand @jekstrand

Link to original bug (#106646)

Description

It would appear as though RADV (and ANV, judging by the code) on both X11 and Wayland only support the following hard-coded list of VkImageUsageFlags:

caps->supportedUsageFlags = VK_IMAGE_USAGE_TRANSFER_SRC_BIT | VK_IMAGE_USAGE_SAMPLED_BIT | VK_IMAGE_USAGE_TRANSFER_DST_BIT | VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT;

Could we get VK_IMAGE_USAGE_STORAGE_BIT added to this list? Other Vulkan implementations I looked at (NVIDIA and AMDVLK) both support it, and simply adding it to the list seems to work just fine for me. (on RADV+X11, not sure about ANV or Wayland)

Use case: I have a rendering pipeline (mpv/vlc/libplacebo) that may involve the use of a compute shader during the final output step, in order to do HDR peak detection. If the swapchain image supports STORAGE_BIT then I can directly paint to screen without needing to allocate an intermediate texture and roundtrip through a fragment shader unnecessarily.

Version: git

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking