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

Vulkan memory gets flushed after unmap

XMLWordPrintable

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

      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.

        For Gerrit Dashboard: QTBUG-109123
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes