Respect NVIDIA constraints for vulkan encode input

Images can't have mutable flag for vulkan encode on NVIDIA, perform a
copy instead, as they allow transfer dst.
This commit is contained in:
Patrick Nicolas
2026-04-12 16:03:05 +02:00
parent 1f6e237f21
commit 19c5285479
3 changed files with 186 additions and 17 deletions
+1 -1
View File
@@ -412,7 +412,7 @@ bool wivrn::vk_bundle::has_device_ext(const char * ext) const
bool wivrn::vk_bundle::optimal_transfer(uint32_t from, uint32_t to) const
{
if (from == vk::QueueFamilyIgnored or to == vk::QueueFamilyIgnored)
if (from == vk::QueueFamilyIgnored or to == vk::QueueFamilyIgnored or from == to)
return false;
#ifdef VK_KHR_maintenance9
if (std::get<vk::PhysicalDeviceMaintenance9FeaturesKHR>(feat).maintenance9)