Commit Graph
271 Commits
Author SHA1 Message Date
Unknown W. Brackets 0ff922c3e0 Android: Buildfix.
Not sure why the linker is having trouble with VulkanDebug.cpp.
2020-05-23 08:29:21 -07:00
Unknown W. Brackets e9e0ea9d05 Vulkan: Cleanup some duplicate code. 2020-05-21 08:55:36 -07:00
Henrik Rydgård e216295d32 Vulkan validation: Switch to the new Khronos validation layer shipping with recent SDKs. 2020-05-18 00:40:14 +02:00
Henrik Rydgård f9f568d266 Vulkan: Framebuffer manager: Use an allocator for "MakePixelTexture" images.
Fixes #12355 (or at a minimum, will improve it).
2020-05-06 22:24:10 +02:00
Unknown W. Brackets a540274435 Vulkan: Blacklist on Switch. 2020-03-15 07:57:32 -07:00
Henrik RydgårdandGitHub fa8968f5c6 Merge pull request #12660 from unknownbrackets/frame-latency
GPU: Add setting to control inflight frame usage
2020-03-02 00:16:48 +01:00
Unknown W. Brackets a91e206926 GPU: Add setting to control inflight frame usage. 2020-03-01 06:21:27 -08:00
Henrik Rydgård 0da04f3694 Vulkan: Support devices that don't properly support 16-bit texture (like MoltenVK).
Fixes #12615.

Will make finishing #10654 worthwhile.
2020-03-01 14:07:13 +01:00
Unknown W. Brackets 2a3fd05651 Vulkan: Present using FIFO for vsync.
This allows the setting to be changed at runtime in Vulkan too.

Should help #10105.
2020-02-29 22:48:59 -08:00
李通洲 7cd60549dd Initial support for vulkan on macOS ( MoltenVK ) 2020-01-20 14:42:40 +08:00
Unknown W. Brackets be5d93d5f1 Vulkan: Compile compute shaders only if enabled. 2019-09-30 00:39:00 -07:00
Unknown W. Brackets 8524dbdf13 Vulkan: Check coherent bit. 2019-09-29 10:53:00 -07:00
Henrik RydgårdandUnknown W. Brackets a355f49c91 Also experiment with a "copy shader" that just does raw data manipulation into GPU local memory, then copies to image from there. 2019-09-29 10:39:12 -07:00
Henrik RydgårdandUnknown W. Brackets 9ed66001c6 Use a plain compute shader for RGBA8888 texture uploads, as a proof of concept. 2019-09-29 10:27:50 -07:00
Henrik Rydgård 1e20024a15 Vulkan: Just some extra logging. 2019-09-17 09:28:24 +02:00
Henrik Rydgård 025a9f4dae Improve Mali driver version detection 2019-09-04 21:46:07 +02:00
Henrik Rydgård 6ae18c27f4 Vulkan/PowerVR: Make another blind fix attempt for #12296. Can't find my PowerVR device :/ 2019-09-02 19:06:29 +02:00
Henrik Rydgård 95367b34c9 Vulkan: Even more logging in VulkanMayBeAvailable. 2019-09-02 18:15:01 +02:00
Henrik Rydgård 7610220b30 Vulkan: Prepare for adding a second init path for VulkanContext.
Will eventually be used for libretro.
2019-09-01 22:21:19 +02:00
Henrik Rydgård 5847bf3201 Attempt to work around the PowerVR bug again (pretransform undid the old workaround in landscape). See #12276 2019-09-01 18:23:02 +02:00
Henrik Rydgård 88612d1d30 Oops, fix the last commit, it got a little restrictive. 2019-09-01 16:10:28 +02:00
Henrik Rydgård 515bbd28fc VulkanMaybeAvailable: Bail earlier in some cases where there's no surface extension. 2019-09-01 15:39:33 +02:00
Henrik Rydgård 5fcac1a9e2 Vulkan: Disable some bad validation. Things are right and work fine. 2019-08-21 10:23:36 +02:00
Henrik Rydgård 19a443819b Bugfixes to VK gpu profiling. Properly get the valid bits. 2019-08-21 09:02:40 +02:00
Unknown W. Brackets 9f98f440c8 Vulkan: Check default case with an assert. 2019-08-17 12:01:22 -07:00
Henrik Rydgård 3356f94029 More extreme paranoia in VulkanMaybeAvailable 2019-08-15 11:49:15 +02:00
Henrik Rydgård c7ae0ed4bf Vulkan: Re-enable the blacklist. 2019-08-15 09:51:44 +02:00
Henrik Rydgård 61e20d72cf Vulkan: On Android, only try to load libvulkan.so, not libvulkan.so.1. Plus more paranoia. 2019-08-15 09:50:42 +02:00
Henrik Rydgård 84dece9d96 VulkanMayBeAvailable: Add more logging, disable blacklist check for testing (see #12093) 2019-08-15 09:35:13 +02:00
Henrik Rydgård 5d08f9fcba Vulkan loader: Fix the SHIELD Tablet blacklist string. 2019-08-15 09:23:47 +02:00
Unknown W. BracketsandGitHub 9f694afcc3 Merge pull request #12237 from hrydgard/vulkan-device-name-blacklist
Vulkan: Simple blacklist of device names that are not allowed to check for Vulkan
2019-08-13 19:03:20 -07:00
Henrik Rydgård 44cb991d8c Cleanup 2019-08-13 10:17:24 +02:00
Henrik Rydgård 8788c1e678 Vulkan: Simple blacklist of device names that are not allowed to check for Vulkan. Will help #12093. 2019-08-13 09:37:55 +02:00
Henrik Rydgård f4d348ca0c Micro-optimize the Vulkan loader: Load more device-specific function pointers to avoid a bounce in the device loader, reorder things a little. 2019-08-12 23:24:40 +02:00
Henrik Rydgård cf06b4a947 Vulkan: Image views: The driver is probably smart enough to recognize a no-swizzle, but let's use the proper method. 2019-08-12 23:09:47 +02:00
Henrik Rydgård 7de49c66a1 Warning fix 2019-06-25 21:35:54 +02:00
Henrik Rydgård 2a664add31 Vulkan: An additional check during init. May help #12131 2019-06-24 18:31:56 +02:00
Henrik Rydgård 0f9dbaa2bc Don't ask for TRANSFER_DST for swapchain surface. No reason to. 2019-06-21 14:09:45 +02:00
Henrik Rydgård e943724905 Vulkan: Apply the desired pretransform when drawing to the backbuffer.
This should save a lot of memory bandwidth on mobile devices that can't
rotate images natively in the display engine. Fixes #12099.
2019-06-21 09:38:51 +02:00
Henrik Rydgård 9def42d800 Vulkan: Log supported pretransforms. 2019-06-20 23:58:18 +02:00
Henrik RydgårdandGitHub b0048525a1 Merge pull request #11884 from hrydgard/vulkan-buffer-usage
Vulkan: Tighten up push buffer usage flags a little bit.
2019-03-18 11:17:49 +01:00
Henrik Rydgård d6d6dbb772 Finish up the fix attempt for #11882 2019-03-14 15:15:13 +01:00
Henrik Rydgård 06b04f65a0 Vulkan: Narrow down buffer usage flags a little bit. 2019-03-14 12:41:39 +01:00
Henrik Rydgård 036aeda512 Correctly handle memory types in VulkanPushBuffer. Should help #11882. 2019-03-14 11:43:44 +01:00
Henrik Rydgård c1427f5981 VulkanImage: Fix issue where we'd try to free dedicated allocations from the allocator_ instead of Vulkan directly.
Snuck in some minor cleanups.
2019-02-24 22:23:26 +01:00
Henrik Rydgard f38a6650b1 VK code cleanup: Just a little helper for handling dedicated allocation for images. 2019-02-07 14:56:29 +01:00
Henrik Rydgard e30daa8027 Remove unused API, assorted cleanup.
No longer enable the geometry shader feature, no plans to use it.
2019-02-05 21:31:43 +01:00
Henrik Rydgard 478b0b4278 Further improve VK extension loading. Switch to VK_EXT_debug_utils (but fallback to VK_EXT_debug_report if only that is available). 2019-02-05 21:31:38 +01:00
Henrik Rydgard 7ae6ba9d91 Add code to enable a couple more extensions I anticipate using eventually. 2019-02-05 18:07:18 +01:00
Henrik Rydgard 32f37723f9 Properly use VK_KHR_dedicated_allocation to make some drivers extra happy 2019-02-05 18:07:18 +01:00