mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-20 22:05:12 +00:00
gl: Avoid UBO/SSBO binding index collisions
- Some drivers don't like this. Actually only RADV. - Almost all GPUs going back 15 years have a large number of UBO slots but limited SSBO slots. Move UBO slots up as we have tons more headroom there.
This commit is contained in:
parent
c4db65cc08
commit
df36c44bc2
6 changed files with 41 additions and 11 deletions
|
|
@ -250,7 +250,7 @@ namespace vk
|
|||
VkImageSubresourceRange range = { aspect(), 0, mipmaps(), 0, layers() };
|
||||
const u32 src_queue_family = info.sharingMode == VK_SHARING_MODE_EXCLUSIVE ? current_queue_family : VK_QUEUE_FAMILY_IGNORED;
|
||||
const u32 dst_queue_family2 = info.sharingMode == VK_SHARING_MODE_EXCLUSIVE ? dst_queue_family : VK_QUEUE_FAMILY_IGNORED;
|
||||
change_image_layout(src_queue_cmd, value, current_layout, new_layout, range, current_queue_family, dst_queue_family2, ~0u, 0u);
|
||||
change_image_layout(src_queue_cmd, value, current_layout, new_layout, range, src_queue_family, dst_queue_family2, ~0u, 0u);
|
||||
}
|
||||
|
||||
current_layout = new_layout;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue