Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-109123

Vulkan memory gets flushed after unmap

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.5.0
    • 6.4.0
    • Qt RHI
    • None
    • macOS
    • 62d76743b (dev)

    Description

      Spec states that memory must be host mapped for flush.
      https://registry.khronos.org/vulkan/specs/1.3/html/chap11.html#VUID-VkMappedMemoryRange-memory-00684

      But Qt first unmaps and then flushes vma memory in different parts of code:

      https://github.com/qt/qtbase/blob/dev/src/gui/rhi/qrhivulkan.cpp#L3240-L3241

      vmaUnmapMemory(toVmaAllocator(allocator), a);
      vmaFlushAllocation(toVmaAllocator(allocator), a, 0, stagingSize);

      This causes a TON of validation errors which makes it impossible to extract useful information from validation layer.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            lagocs Laszlo Agocs
            muratseker Murat Seker
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes