The issue is that we ask for storage images by default if available, but because that is gated by the format supporting storage images, and the check for the format supporting storage images is gated by the usage, this resulted in a catch-22.
Unified · Split
| @@ -2617,7 +2617,8 @@ static int vulkan_frames_init(AVHWFramesContext *hwfc) · 2616 unmodified lines | ||
| 2617 | 2617 | err = vkfmt_from_pixfmt2(hwfc->device_ctx, hwfc->sw_format, |
| 2618 | 2618 | hwctx->tiling, NULL, |
| 2619 | 2619 | NULL, NULL, &supported_usage, 0, |
| 2620 | − hwctx->usage & VK_IMAGE_USAGE_STORAGE_BIT); | |
| 2620 | + !hwctx->usage || | |
| 2621 | + (hwctx->usage & VK_IMAGE_USAGE_STORAGE_BIT)); | |
| 2621 | 2622 | if (err < 0) { |
| 2622 | 2623 | av_log(hwfc, AV_LOG_ERROR, "Unsupported sw format: %s!\n", |
| 2623 | 2624 | av_get_pix_fmt_name(hwfc->sw_format)); |
| @@ -2628,7 +2629,8 @@ static int vulkan_frames_init(AVHWFramesContext *hwfc) · 4 unmodified lines | ||
| 2628 | 2629 | hwctx->tiling, hwctx->format, NULL, |
| 2629 | 2630 | NULL, &supported_usage, |
| 2630 | 2631 | disable_multiplane, |
| 2631 | − hwctx->usage & VK_IMAGE_USAGE_STORAGE_BIT); | |
| 2632 | + !hwctx->usage || | |
| 2633 | + (hwctx->usage & VK_IMAGE_USAGE_STORAGE_BIT)); | |
| 2632 | 2634 | if (err < 0) |
| 2633 | 2635 | return err; |
| 2634 | 2636 | } |