[FFmpeg-trac] #11648(avutil:new): mpv cannot use vulkan decoder since ReBAR check

FFmpeg trac at avcodec.org
Thu Jun 26 18:15:15 EEST 2025


#11648: mpv cannot use vulkan decoder since ReBAR check
--------------------------------+--------------------------------------
             Reporter:  Luis    |                     Type:  defect
               Status:  new     |                 Priority:  normal
            Component:  avutil  |                  Version:  git-master
             Keywords:          |               Blocked By:
             Blocking:          |  Reproduced by developer:  0
Analyzed by developer:  0       |
--------------------------------+--------------------------------------
 Since the commit 27590d86534b0c94f12b9a206410f475fb008e72, mpv fails to
 use vulkan decoding. Vulkan decoding using ffmpeg directly works but, for
 some reason, with mpv it prints "[ffmpeg] Vulkan: No memory type found for
 flags 0x1" and fails.

 There have been some updates since then, like
 60fc0288ae39c3294091c2a4e06816836be95740 which is pretty close to the
 solution @haasn gave to me, but they are not enough apparently. The only
 patch fixing the issue is this one:

 {{{
 --- a/libavutil/hwcontext_vulkan.c
 +++ b/libavutil/hwcontext_vulkan.c
 @@ -2019,6 +2019,8 @@ FF_ENABLE_DEPRECATION_WARNINGS
      if (!hwctx->unlock_queue)
          hwctx->unlock_queue = unlock_queue;

 +    vk->GetPhysicalDeviceMemoryProperties(hwctx->phys_dev, &p->mprops);
 +
      p->vkctx.device = ctx;
      p->vkctx.hwctx = hwctx;

 }}}

 I don't know why that works. As I said @haasn was kind enough to propose
 that solution and it is the only fix I found so far.

 You can find the full log attached.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/11648>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list