Commit graph

205 commits

Author SHA1 Message Date
Megamouse
3b36df48e9 Vk/Gl/Overlays: Do not blend the alpha channel when rendering overlays
When blending a source pixel with alpha less than 1 onto a texture, we will end up having even less alpha than before.
This can lead to ugly "holes" in the overlays, especially on the edges of glyphs with smooth fonts for example.
We can fix this by only blending the RGB values while keeping the destination's alpha value.
I haven't really seen this happen in RPCS3, but it's better to be safe than sorry.
2024-08-28 01:19:15 +03:00
kd-11
296c931d55 Fix v3dv workaround 2024-08-24 02:07:00 +03:00
Ani
67308bcf6f vk: Only allow unsupported textureCompressionBC for v3dv 2024-08-21 23:07:13 +03:00
Ani
0649da4cfb vk: Add driver vendor V3DV (Broadcom on Mesa)
VK_DRIVER_ID_MESA_V3DV
2024-08-21 23:07:13 +03:00
Ani
18df24d390 vk: Support v3dv, allow creating device without textureCompressionBC
v3dv supports BC1-BC3 which is all we require, support is reported as 
false since not all formats are supported
2024-08-21 23:07:13 +03:00
kd-11
f6b5511546 Improved wayland support 2024-08-04 02:59:03 +03:00
kd-11
27047bb3dc vk: Fix VEGA float16 workaround 2024-07-25 14:23:36 +03:00
kd-11
53b81af704 vk: Dump diagnostic messages if device creation fails 2024-05-30 21:16:12 +03:00
kd-11
9fb79b8930 vk: Fix typo 2024-05-29 03:28:18 +03:00
kd-11
d545aa01b2 vk: Add support for NVK driver 2024-05-29 03:28:18 +03:00
Elad Ashkenazi
a2dcbb9c13 Replace src_loc with std::soource_location 2024-05-21 14:19:12 +03:00
kd-11
62eb9c2012 vk: Allow barriers to optionally skip renderpass splitting
- This is allowed by spec when we don't care about what happens outside the renderpass
2024-05-12 21:26:25 +03:00
kd-11
7abc5f3ead vk: Move driver properties to properties section from features section 2024-02-16 18:11:30 +03:00
kd-11
a54f1970f1 vk: Make more features "optional"
- This allows some non-conformant drivers to at least finish swapchain creation.
2024-02-11 17:21:56 +03:00
kd-11
7f602937a3 vk: Improve driver detection for dozen and lavapipe 2024-02-11 17:21:56 +03:00
Megamouse
e23db7efbd Mac: Update MoltenVk to 1.2.7
Remove deprecated extension VK_MVK_moltenvk
2024-01-16 22:52:57 +01:00
kd-11
dfa83314df vk: Add chip detection for INTEL DG2 cards
- No specific optimizations yet, but they're becoming more popular so that may be necessary soon.
2023-10-25 20:06:04 +03:00
kd-11
867153c5ea vk: Drop obsolete ANV workaround 2023-10-25 20:06:04 +03:00
Ani
6672499dde vk: Fix detection of RADV on get_driver_vendor()
Since Mesa 22.2.0 (2022-09-21), commit 
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11027/diffs?commit_id=f06da59fd75d7ce7708d159753fcdbc11de16f9e, 
the deviceName property has included the name of the GPU, thus 
invalidating our previous method of detecting RADV as a driver vendor

Before: "AMD RADV NAVY_FLOUNDER"
After: "AMD Radeon RX 6700M (RADV NAVI22)"

Before: "AMD RADV RENOIR"
After: "AMD Radeon Graphics (RADV RENOIR)"
2023-08-06 01:08:06 +02:00
Talkashie
dabb2cc9a0
Fix typos, improve consistency
Fixes typos where spelling or grammar is objectively wrong.
Changes wording and capitalization in some areas to be more consistent with other areas.
2023-07-28 13:09:06 +03:00
kd-11
10af0e8c93 vk: Disable anisotropy if the anisotropic level is meaningless 2023-07-04 09:31:51 +03:00
kd-11
c818f8af82 vk: Fix namespace pollution in sync module 2023-07-04 09:31:51 +03:00
kd-11
931a2c516f vk/rsx: Fix build errors and warnings 2023-06-30 18:38:14 +03:00
kd-11
2f9e1cf4df vk: Get rid of some spammy debug code 2023-06-30 18:38:14 +03:00
kd-11
68d1c38f3b vk: Minor refactor to make early-exit branches trivial and easier to read 2023-06-30 18:38:14 +03:00
kd-11
c4acea6c82 vk: Fix some regressions in synchronization2 behavior 2023-06-30 18:38:14 +03:00
kd-11
7ebabddfe0 vk: Fix GPU hang 2023-06-30 18:38:14 +03:00
kd-11
a047ddffc0 vk: Restructure gpu labels and add them as an event backend 2023-06-30 18:38:14 +03:00
kd-11
92992a5406 vk: Use pipeline barriers for proper event sync 2023-06-30 18:38:14 +03:00
kd-11
ec4565263d Dump extensions info to the log 2023-06-27 16:41:30 +03:00
kd-11
3e8f9cbbf2 Add flags to handle sync domain with v2 events 2023-06-27 16:41:30 +03:00
kd-11
322b5dac79 Properly enable synchronization2 feature 2023-06-27 16:41:30 +03:00
kd-11
5a85fee3f1 Silence logspam about unused parameter 2023-06-27 16:41:30 +03:00
kd-11
0a0ef50caf Try to fix build 2023-06-23 15:21:17 +03:00
kd-11
e20f1587cd Workaround for old compilers
Xcode is not yet c++20 compliant
2023-06-23 15:21:17 +03:00
kd-11
850166eca1 vk: Reimplement events using synchronization2 extension 2023-06-22 14:59:58 +03:00
kd-11
49c6c2c529 vk: Do not hard-sync on first sign of fragmentation
- It is very likely that the resource would be available if we just waited a while for the GPU queue to clear.
- Instead of also discarding the current work, first check if we can get by without a hard sync.
2023-06-14 01:12:11 +03:00
kd-11
29f3eec957 vk: On pool recovery, rescan the subpool table in case a new pool really cannot be created 2023-06-14 01:12:11 +03:00
kd-11
c1d875d841 vk: Handle VK_ERROR_FRAGMENTATION when allocating descriptor pools 2023-06-14 01:12:11 +03:00
kd-11
ac0c60b740 vk: Rename gc_wrapper_t to gc_callback_t which is more relevant 2023-06-01 19:25:50 +03:00
kd-11
6a2ea62f82 vk: Minor cleanup 2023-05-30 16:50:08 +03:00
kd-11
6cfd817b5a vk: Fix descriptor-related crashes 2023-05-30 16:50:08 +03:00
kd-11
c99ef4b09f vk: Refactor descriptor handling 2023-05-30 16:50:08 +03:00
shinra-electric
cbe1628cf2 remove deprecated VK_MVK_moltenvk and replace with mvk_config.h
VK_MVK_moltenvk extension has been removed. 

Will try with `mvk_config.h`, but it this doesn't work `mvk_deprecated_api.h` should work instead.
2023-05-25 08:54:44 +02:00
kd-11
976a3ed3bf Formatting fixes 2023-05-23 14:37:13 +03:00
kd-11
98c0944419 vk: Fix some sampler load crashes 2023-05-23 14:37:13 +03:00
kd-11
bf78b197a3 vk: Reimplement sampler disposal using the new pool mechanism 2023-05-23 14:37:13 +03:00
kd-11
427960fee8 vk: Fix compiler warning 2023-05-23 14:37:13 +03:00
kd-11
75da7d80dc vk: Reimplement sampler caching to take border color into account 2023-05-23 14:37:13 +03:00
kd-11
7eb730ee03 vk: Integrate custom border colors when supported 2023-05-23 14:37:13 +03:00