Henrik Rydgård
213e2ccefc
Vulkan: Add missing barrier when rendering to a target that's already in COLOR_OPTIMAL layout.
...
Fixes #12215
2019-08-08 15:38:09 +02:00
Henrik Rydgård
3b0624ff9f
Some changes and asserts.
2019-08-08 14:07:53 +02:00
Henrik Rydgård
ebe64c60e9
Vulkan: Improve the Metal Gear Acid 2 performance hack.
2019-08-08 11:49:35 +02:00
Henrik Rydgård
75e2366a6d
Vulkan: Actually fix #12202 , an array was out of scope where it was used, causing garbage flags.
2019-08-01 17:46:46 +02:00
Henrik Rydgård
3d6bd6f0df
Vulkan: Using VK_DEPENDENCY_BY_REGION on the backbuffer subpass causes tearing, let's not do it. Fixes #12202 .
2019-08-01 14:56:58 +02:00
Unknown W. Brackets
3de796779c
Debugger: Fix subtexture readback crash.
...
When the texture image is scaled, we don't properly know its size, so we
were allocating too small of a buffer. Since this is only used for
debugging, let's just get the actual texture size.
2019-06-23 15:30:30 -07:00
Henrik Rydgård
ee294251c9
Fix the 270 degree rotation case
2019-06-21 11:58:41 +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
eb3faf5370
Fix some further static analysis warnings
2019-06-18 01:08:25 +02:00
Henrik Rydgård
a0dc85a9d7
Fix a bunch of inconsequential uninitialized variables
2019-06-18 00:18:40 +02:00
driver1998
eb99044a4f
Fix d3d11_loader on x86
2019-05-12 11:17:54 +08:00
driver1998
21d2008676
Use D3DCompiler_47.dll for D3D9 context.
2019-05-12 11:17:10 +08:00
Henrik Rydgård
ff65b813d9
Assorted warning fixes
2019-05-10 23:26:34 +02:00
Henrik Rydgård
ed1aa74827
Address feedback from #11936 (support memory types without CACHED as a backup)
2019-03-26 10:39:51 +01:00
Henrik Rydgård
60889767bf
Vulkan: Request cached memory for readbacks. First try coherent too but also support non-coherent cached memory.
...
Should speed up readbacks slightly.
This is just a common sense optimization, I haven't measured it. Writes to
coherent non-cached memory is OK due to hardware write combining, but for
reads you really want cached to avoid a memory transaction for every
single read (instead reading full cache lines).
2019-03-25 21:40:25 +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
7362cccee4
Vulkan subpass dependencies: Handle VK_IMAGE_LAYOUT_UNDEFINED without debug-asserting.
2019-03-12 22:34:41 +01:00
Henrik Rydgård
624587c594
Fix a VK validation failure when opening the homebrew menu
2019-03-11 16:42:41 +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 Rydgård
58c240045e
Make window resize work with Vulkan. Seems more stable now.
2019-02-23 15:53:05 +01:00
Henrik Rydgård
7e939802b5
Merge pull request #11787 from unknownbrackets/range-cull
...
GLES: Disable range culling on VideoCore/Vivante
2019-02-10 20:46:37 +01:00
Unknown W. Brackets
957c3d5b89
GLES: Disable range culling on VideoCore/Vivante.
...
Was only disabled before on Vivante GL3/GLES3 devices.
2019-02-10 11:36:23 -08:00
Henrik Rydgård
c509650bec
OpenGL: Disable the mapped buffer strategy for Adreno (Qualcomm).
...
It's a race during shutdown between the EmuThread writing commands, and
the render thread which just lost the buffer.
2019-02-10 20:13:39 +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 Rydgård
54c6c148fb
Detect PCI device ID where available (not in GL?)
2019-02-06 22:43:31 +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
32f37723f9
Properly use VK_KHR_dedicated_allocation to make some drivers extra happy
2019-02-05 18:07:18 +01:00
Henrik Rydgard
8e1a5ef3d6
Minor refactor of physical device property/feature detection, to allow for more extension use.
2019-02-05 18:07:17 +01:00
Henrik Rydgard
f339a0c15b
VK: Minor cleanup, turn off unfinished and probably wrong use of dedicated allocation feature
2019-01-31 14:09:21 +01:00
Henrik Rydgård
bb4d91c958
If we lose the Vulkan device, recommend the user to switch to Direct3D11.
...
:-(
2019-01-30 17:57:20 +01:00
Henrik Rydgård
12f295c4a5
GLES: Detect Vivante GPU, disable vertex range culling
...
Should work-around #11703
2019-01-03 12:43:32 +01:00
Unknown W. Brackets
adeca2c3ba
GLES: Move some vendor bug checks to Draw.
2018-12-23 20:27:22 -08:00
Unknown W. Brackets
9a3de5cb1c
GPU: Move dual source blending bug check to Draw.
...
This also allows the ini setting to avoid it on Intel.
2018-12-23 14:11:57 -08:00
Unknown W. Brackets
f8ce9b08ba
Vulkan: Limit stencil workaround to Adreno 5xx.
2018-12-23 14:11:57 -08:00
Henrik Rydgård
d047955686
This should finally repro one of the Adreno bugs
2018-12-20 11:00:15 +01:00
Henrik Rydgård
c2319cd6d1
thin3d: Make the stencil ref value dynamic state (all APIs support this directly).
2018-12-19 13:48:58 +01:00
Henrik Rydgård
df98721e73
Write rough framework for GPU discard test screen
2018-12-19 13:48:54 +01:00
Henrik Rydgård
683a4e0fb2
Merge pull request #11676 from unknownbrackets/gles-depth
...
WIP - GLES: Download depth values via shader
2018-12-19 09:58:38 +01:00
Henrik Rydgård
a135dc1547
thin3d: Remove unused shader language support
2018-12-18 14:29:48 +01:00
Henrik Rydgård
956af61ff5
Fix ridiculous bug in thin3d.h. Only worked by accidental matchup between shader IDs..
2018-12-18 14:29:48 +01:00
Henrik Rydgård
637b6ce79a
Remove unused and unfinished SPIRV disassembler
2018-12-18 10:37:49 +01:00
Unknown W. Brackets
27e8720e14
GLES: Download depth values via shader.
...
Working on desktop, but not on mobile...
2018-12-16 17:34:16 -08:00
Unknown W. Brackets
2dc3912d0a
GLES: Actually support depthless FBOs.
...
We use these for temp buffers. This might at least save some VRAM.
2018-12-16 17:34:16 -08:00
Unknown W. Brackets
57767ba1f8
GLES: Use depth textures where possible.
2018-12-16 17:34:16 -08:00
Henrik Rydgård
d1910de166
GL: Realized we need another sanity check in the readback code
...
Added similar checks to Vulkan, just because.
2018-11-24 17:20:56 +01:00
Henrik Rydgård
d9493009c7
Merge pull request #11574 from unknownbrackets/lighting
...
Correct various light param issues based on tests
2018-11-22 20:04:46 +01:00
Unknown W. Brackets
c944063d03
Reporting: Ignore link error with bad shaders.
...
We only need the issue reported once.
2018-11-22 07:58:08 -08:00
Henrik Rydgård
442b57033f
Attempt to fix the last very common issue of #11493 by being paranoid
2018-11-21 22:40:54 +01:00
Henrik Rydgård
f2244f789e
VK: Add extra safety checks around font texture creation. Motivated by some Play crashes.
2018-11-21 17:34:54 +01:00
Unknown W. Brackets
caf5bb2789
Vulkan: Allow pre-transition from undefined.
...
This seems like it can happen when download/upload operations break up a
render, and happens now with dumps using the display at the right timing.
2018-11-17 10:01:38 -08:00