Skip to content

Commit

Permalink
vk: Support panvk, allow creating device without textureCompressionBC
Browse files Browse the repository at this point in the history
panvk supports BC1-BC3 which is all RPCS3 require, support is reported as
false since not all formats are supported
  • Loading branch information
q4a authored and elad335 committed Jan 4, 2025
1 parent da84326 commit c9d39ce
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rpcs3/Emu/RSX/VK/vkutils/device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,12 @@ namespace vk
enabled_features.textureCompressionBC = VK_FALSE;
}

if (!pgpu->features.textureCompressionBC && pgpu->get_driver_vendor() == driver_vendor::PANVK)
{
rsx_log.error("Your GPU running on the PANVK driver does not support full texture block compression. Graphics may not render correctly.");
enabled_features.textureCompressionBC = VK_FALSE;
}

VkDeviceCreateInfo device = {};
device.sType = VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO;
device.pNext = nullptr;
Expand Down

0 comments on commit c9d39ce

Please sign in to comment.