Commit Graph
1888 Commits
Author SHA1 Message Date
Henrik Rydgård be0adc29fa Merge pull request #14169 from unknownbrackets/startup-locks
Reduce startup locks
2021-02-17 10:20:42 +01:00
Unknown W. Brackets f448e8e923 UI: Divert background only on change.
To avoid triggering a transition and event.
2021-02-17 00:32:58 -08:00
Unknown W. Brackets 9692ddccba UI: Correct tweens repeatedly finishing. 2021-02-17 00:32:39 -08:00
Unknown W. Brackets ee1a15291d UI: Use atomic to check for events.
Prevents a lock in the very common case of no events.
2021-02-17 00:31:38 -08:00
Unknown W. Brackets 58f6751891 UI: Avoid PathBrowser lock with no remote files.
Only needs locks once the thread starts.
2021-02-17 00:29:39 -08:00
Unknown W. Brackets fe9870bf37 Draw: Auto ref/release bound textures/samplers. 2021-02-16 21:48:43 -08:00
Henrik Rydgård ab1a94d184 Merge pull request #14148 from unknownbrackets/warnings
Remove a bunch of unused variables, other warnings
2021-02-15 21:57:37 +01:00
Unknown W. Brackets e85a8b0f5b Global: Cleanup class init order warnings. 2021-02-15 11:59:45 -08:00
Unknown W. Brackets 4a33b5d4e2 D3D11: Fail if uniform buffer create fails. 2021-02-15 11:59:45 -08:00
Unknown W. Brackets f32f89dd90 Global: Remove some unused variables. 2021-02-15 11:59:45 -08:00
Henrik Rydgård 5d62610a93 Merge pull request #14038 from unknownbrackets/savestate-str
SaveState: Load misaligned wide strings properly
2021-02-15 18:50:23 +01:00
Henrik Rydgård 9b13220f49 Merge pull request #13864 from unknownbrackets/vulkan-amd
Vulkan: Remove #10097 hack for newer AMD drivers
2021-02-15 16:31:49 +01:00
Henrik Rydgård 6df37b86bc Merge pull request #14076 from unknownbrackets/zhp-map
GPU: Force texture invalidation for ZHP minimap
2021-02-15 11:33:32 +01:00
Henrik Rydgård a2093da542 Merge pull request #14088 from unknownbrackets/fakejit
Jit: Fix compilation of FakeJit and MipsJit
2021-02-15 09:13:38 +01:00
Unknown W. Brackets 9d22297a90 Windows: Use CommonWindows more consistently.
Also, make sure WinSock2.h is included beforehand where it's needed.
2021-02-14 10:30:10 -08:00
Unknown W. Brackets da2e722794 Windows: Fix some format warnings. 2021-02-14 10:30:10 -08:00
Unknown W. Brackets 6247e4d0ee Windows: Add some missing override specifiers. 2021-02-14 10:30:10 -08:00
Unknown W. Brackets 0ffac20fcd Common: Include unistd.h before ctime on mingw.
This is required for localtime_r and similar to be available.
2021-02-14 10:30:10 -08:00
Unknown W. Brackets 7aa4b53422 Common: Fix AVX check on mingw/lower targets. 2021-02-14 10:30:10 -08:00
Unknown W. Brackets 2c165c9b6d Windows: Fix improper case or missing includes.
As per mingw errors/warnings.
2021-02-14 10:30:10 -08:00
Henrik Rydgård c8dfa091fa Add some checks trying to prevent creation of 0 sized textures.
Saw a crash log with a driver crash in CreateTexture...
2021-02-13 11:33:15 +01:00
Henrik Rydgård d23bef1525 Merge pull request #14129 from unknownbrackets/gpu-copyimage
GPU: Force reinterpret off without copy image
2021-02-13 07:38:52 +01:00
Unknown W. Brackets 5aa3e3180f GPU: Force reinterpret off without copy image.
Also, assert we have it when using it, since there's ifs.
2021-02-12 20:40:21 -08:00
Henrik Rydgård c76fe9cec4 Assorted paranoid cleanups, inspired by #14082 2021-02-10 00:20:52 +01:00
Unknown W. Brackets 45f3f4554b SaveState: Prevent crash on bad cookie marker.
Just fail to load the save state.
2021-02-09 07:14:07 -08:00
Unknown W. Brackets c7635a5d2f Jit: Fix compilation of FakeJit.
Maybe should just remove this...
2021-02-08 23:17:15 -08:00
Unknown W. Brackets be4c905373 SaveState: Load misaligned wide strings properly. 2021-01-31 08:55:54 -08:00
Unknown W. Brackets 5d60fa0d0d Common: Maintain C++11 support in sign extend. 2021-01-31 08:44:02 -08:00
Henrik Rydgård 5e501fa9fc Fix minor rendering glitch in PPSSPP's menus on iOS 2021-01-31 15:49:52 +01:00
Unknown W. Brackets 1b00da2f3a Common: Sign extend w/func not chained casts.
Should be clearer to read and easier to get right.
2021-01-31 01:25:52 -08:00
Henrik Rydgård c48bdf7efc Vulkan: Fix image layout issues after compute shader uploads.
We're already in GENERAL so probably not worth to transfer to DST just
to do even more transfers due to the silliness of GenerateMip.

I'm planning to rework the whole texture upload thing to be far more
optimal with some kind of TextureUploadManager

Fixes #13987
2021-01-30 23:09:42 +01:00
Henrik Rydgård 1eeebccd04 Fix Apple gpu detection 2021-01-30 18:31:39 +01:00
Gleb Mazovetskiy 7305ba9d9b x64Emitter: Fix unaligned store UBSAN errors
This compiles to the same assembly as before even without optimizations and avoids UB.

https://godbolt.org/z/4G5edM

While the UB here is benign, this improves signal-to-noise ratio of UBSAN errors.

Fixes #14005
2021-01-30 12:26:01 +00:00
Henrik Rydgård c251d69eab Minimize the Adreno shader compiler bug repro test 2021-01-30 10:21:14 +01:00
Gleb Mazovetskiy 0fb42e07a6 CMake: Rename USE_ADDRESS_SANITIZER to USE_ASAN
For consistency with USE_UBSAN
2021-01-29 23:10:22 +00:00
Unknown W. Brackets 6798d5379a GLES: Remove direct khrplatform.h header include.
Shouldn't be needed anymore, was a hack for Nokia.  See #13978.
2021-01-25 18:42:24 -08:00
Henrik Rydgård ca50077341 More GPU test improvements
* Fix the flat test. Unfortunately doesn't repro the bug :(
2021-01-17 18:04:00 +01:00
Henrik Rydgård 02a771c049 Add texture to flat shaded test. 2021-01-17 13:44:57 +01:00
Henrik Rydgård a30b521257 Adds two new tests to GPU driver test screen: Adreno shader logic test and flat shading
The adreno test tests for the bug mentioned in #13910.
Very clear repro on Adreno 630, Pocophone F1.

The flat shading test is an untested attempt at a repro of

(will test that tomomorrow).
2021-01-17 13:29:36 +01:00
Unknown W. Brackets 6ca9acf94b Vulkan: Delete only created swapchain images.
We do other null checks here, same reason.  Create may have failed.
2021-01-16 20:55:34 -08:00
Unknown W. Brackets eee529c6c9 UI: Cleanup Windows header in MainScreen.cpp.
Better to have this come from System, probably.  It's mainly for Windows
anyway, to alert people their save data isn't permanent.
2021-01-09 14:45:49 -08:00
Unknown W. Brackets b60074f697 http: Prevent Windows header leak from HTTPClient. 2021-01-09 14:45:03 -08:00
Henrik Rydgård 401d9ca469 Add a file picker (WIP) 2021-01-09 01:09:21 +01:00
Henrik Rydgård 3c6f21173c Add a fullscreen toggle button to the main screen (Windows-only for now) 2021-01-08 20:05:43 +01:00
Unknown W. Brackets 57fda69e50 Android: Minor cleanup. 2021-01-07 22:41:38 -08:00
Henrik Rydgård 76504c1a36 Remove redundant method from PathBrowser.cpp 2021-01-07 23:22:25 +01:00
Henrik Rydgård e30d079fb5 UI tweaks 2021-01-07 09:40:01 +01:00
Henrik Rydgård 1c753e4a22 Use hacky methods to retrieve SD card directory if available.
This will disappear in future Android versions but can be useful for
older devices.

Fixes (or at least tries to) #10199, at least for some devices.

Might help #13827 ?

Tested on Pocophone F1.
2021-01-07 00:55:35 +01:00
Henrik Rydgård 5929c78307 Add home button on all platforms 2021-01-07 00:54:50 +01:00
Henrik Rydgård 3f01cbb98c Initialize/Deinitialize the shader translation system once globally.
Fixes #13839.
2021-01-04 23:51:34 +01:00