Commit Graph

22941 Commits

Author SHA1 Message Date
Henrik Rydgård
5d6a830288 Vulkan hw tess: Don't reuse the same dynamic texture for multiple draws, not safe. 2017-11-11 20:39:19 +01:00
Henrik Rydgård
9f77d48719
Merge pull request #10091 from hrydgard/vulkan-remove-refcounts
Vulkan: Remove refcounts on VKRFramebuffer.
2017-11-11 20:38:56 +01:00
Henrik Rydgård
edfea7aed3 Remove unused pointer. 2017-11-11 20:22:45 +01:00
Henrik Rydgård
e18a023ce8 Vulkan: Noticed a framebuffer refcount leak, and changed my mind regarding those :) Let's do it this way instead. 2017-11-11 19:41:43 +01:00
Henrik Rydgård
bd8067a631 Reduce a ERROR_LOG_REPORT to a warning (vfpu branches in delay slots) 2017-11-11 19:39:44 +01:00
Henrik Rydgård
83e1cfb283
Merge pull request #10088 from unknownbrackets/d3d11-savestate
Avoid clearing shaders on load state
2017-11-11 18:19:29 +01:00
Unknown W. Brackets
7041341d1a SaveState: Avoid clearing shaders in all backends. 2017-11-11 08:17:04 -08:00
Unknown W. Brackets
9cf17d9288 D3D11: Clear input layouts on shader clear.
When we do clear shaders, make sure to also clear input layouts so we
don't have corrupt keys.
2017-11-11 08:11:10 -08:00
Unknown W. Brackets
f93ef92960 D3D11: Avoid clearing shaders on load state.
They don't need to be cleared (unlike FBOs), and clearing them requires
clearing even more things.  Fixes #9637.
2017-11-11 08:09:56 -08:00
Unknown W. Brackets
039c69f031 SaveState: Fix use-after-resize iterator.
Only on older save states.
2017-11-11 08:08:59 -08:00
Henrik Rydgård
74a8aa5a91
Merge pull request #10086 from hrydgard/vulkan-accurate-depth
Vulkan: Enable the "accurate depth" codepath, using the same formula as D3D9.
2017-11-11 12:16:10 +01:00
Henrik Rydgård
47c06b9633 Vulkan: Enable the "accurate depth" codepath, using the same formula as D3D9.
As a side effect, this should fix #10082 since backwards depth is no
longer used.
2017-11-11 11:36:26 +01:00
Henrik Rydgård
e6681a443d Android: Cleaner way to avoid double-resizing the backbuffer. 2017-11-11 11:18:38 +01:00
Henrik Rydgård
08041d8775 Fix blackscreen when resolution is set to auto. Fixes #10081 2017-11-10 22:33:00 +01:00
Henrik Rydgård
9519b89056 Experimenally disable dual source blending on AMD too for Vulkan, see #10065 2017-11-10 18:28:38 +01:00
Henrik Rydgård
05930ea32e MotoGP: Compat hack to disable framebuffer readbacks.
This is the only known game to copy its framebufer to RAM before display on every frame and we already have a
hack so we can display the high resolution framebuffer, but we still did the readback for no good reason.

This eliminates the readback.
2017-11-10 16:32:56 +01:00
Henrik Rydgård
f014735ebf
Merge pull request #10079 from hrydgard/vulkan-android-fixes
Vulkan lost-device fixes
2017-11-10 16:11:58 +01:00
Henrik Rydgård
3e7d913967 Buildfix 32-bit 2017-11-10 16:11:23 +01:00
Henrik Rydgård
17d624d311 Ditch a silly vertex count limit that only makes sense for GLES, so move it there. 2017-11-10 15:59:36 +01:00
Henrik Rydgård
c32f505b58 Fix race condition. 2017-11-10 15:45:14 +01:00
Henrik Rydgård
378e01625c Fix a few more device-loss bugs. 2017-11-10 15:10:36 +01:00
Henrik Rydgård
1c76d28843 Avoid double-initializing the Vulkan backbuffer on startup. 2017-11-10 13:13:56 +01:00
Henrik Rydgård
ee768ca949 Logging improvements, avoid resetting the Android text drawer unnecessarily 2017-11-10 13:02:24 +01:00
Henrik Rydgård
3cc5d8f40a More minor vulkan fixes and cleanups. Don't actually call "Resized" if the size stays the same. 2017-11-10 12:41:06 +01:00
Henrik Rydgård
f3eeafc728 Change Android logging ID from "NativeApp" to "PPSSPP" 2017-11-10 12:37:54 +01:00
Henrik Rydgård
0a2b20bf59 More logging and tweaking 2017-11-10 12:09:42 +01:00
LunaMoo
6ae8b3603d
Merge pull request #10072 from unknownbrackets/cheats
Cheats: Split parsing and execution
2017-11-09 18:46:52 +01:00
Henrik Rydgård
8b42d83123 Vulkan: Remove duplicate depalShaderCache, fix a number of instances where we didn't use the deleter properly.
Plus more logging, of course.
2017-11-09 17:25:37 +01:00
Henrik Rydgård
6eb58b1252 Keep the draw context up to date in a bunch of places. More logging. 2017-11-09 16:28:22 +01:00
Henrik Rydgård
ec504756e0 Vulkan: Improve init/shutdown logging on Android. Fix a bug where we'd not run InitDeviceObjects on GPU_Vulkan sometimes. 2017-11-09 16:02:05 +01:00
Henrik Rydgård
cd55e9d2a8
Merge pull request #10076 from hrydgard/upgrade-glslang
Upgrade glslang to a fresh version (used to compile Vulkan shaders).
2017-11-09 14:42:47 +01:00
Henrik Rydgård
b689e8e15f Fix some ports 2017-11-09 13:55:33 +01:00
Henrik Rydgård
4e04780adc Upgrade glslang to a fresh version (used to compile Vulkan shaders). Might help #10065 ?) 2017-11-09 13:36:18 +01:00
Henrik Rydgård
845b02a6c5 Ooops 2017-11-09 13:35:42 +01:00
Henrik Rydgård
25f32b1d78 Vulkan: Disable dual source blending on Intel GPUs, fixes #10074. 2017-11-09 13:16:06 +01:00
Henrik Rydgård
13e508e00b
Merge pull request #10075 from hrydgard/vulkan-device-detection
Vulkan device detection - prefer discrete GPUs
2017-11-09 13:15:13 +01:00
Henrik Rydgård
ba846fdbc5 Show textual names of Vulkan GPU vendors 2017-11-09 12:30:07 +01:00
Henrik Rydgård
c6c90d4cbc Improve Vulkan device selection mechanism to prefer discrete GPUs 2017-11-09 12:21:20 +01:00
Henrik Rydgård
c855ab66d5 Cleanup gradle output. 2017-11-09 11:22:38 +01:00
Unknown W. Brackets
1d348b8aa7 Cheats: Fix pointer command count offset.
2 means there's 1 line of data.  This was the actual problem.
Thanks LunaMoo.
2017-11-08 22:24:37 -08:00
Unknown W. Brackets
baf351c372 Cheats: Clamp pointer command data to avail.
In case more data is provided, as was allowed before.
2017-11-08 17:48:33 -08:00
Unknown W. Brackets
0ed62cfe30
Merge pull request #7 from LunaMoo/cheats
Fix 0x6 code types
2017-11-08 20:46:18 -05:00
LunaMoo
34b1cb7141 Fix 0x6 code types 2017-11-08 17:39:22 +01:00
Henrik Rydgård
ca3be1877e Vulkan: Apply simple workaround for Mali driver bug (see #10070), and minor cleanup. 2017-11-08 17:03:27 +01:00
Henrik Rydgård
62b24edde1 Fix some minor things found by running Sizer on PPSSPP
Sizer: https://github.com/aras-p/sizer
2017-11-08 16:56:48 +01:00
Unknown W. Brackets
bf4f5a102e Cheats: Enable for any non-zero number. 2017-11-08 06:51:25 -08:00
Henrik Rydgård
8fe171253d Disable lwl/lwr on ARM64 JIT again. Seems b9b2656e93 broke things, see #10020 2017-11-08 12:11:55 +01:00
Henrik Rydgård
d618b3673b Count readbacks in a frame and show in GPU debug stats. 2017-11-08 11:57:53 +01:00
Unknown W. Brackets
c62a53c223 Cheats: Split parsing and execution.
This makes the code easier to read, and makes it easier to add other types
later on.

Also, the parser can now handle a file with multiple game ids.
2017-11-07 19:51:32 -08:00
Henrik Rydgård
4970668b99 Try harder to free up memory from the Android native font rendering system. Might help #10069 2017-11-07 12:31:03 +01:00