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
Henrik Rydgård
1acbfb1a52
Never pass a null into QueueDeleteImageView (got a report of that).
...
Went through them all to see where this could happen, can't find any
other path than this, though it's strange.
2021-01-03 21:46:12 +01:00
Henrik Rydgård
f0bb504bb1
Postshader: Improve error reporting.
2021-01-03 19:15:05 +01:00
Unknown W. Brackets
ca0763c7f1
Vulkan: Remove #10097 hack for newer AMD drivers.
...
Fixes #10643 . Assumes affected drivers only supported 1.0 due to year 1.1
supporting drivers started coming out.
2021-01-03 09:24:14 -08:00
Unknown W. Brackets
cd6be61d98
Common: Correct some formatting type mismatches.
2021-01-01 15:43:13 -08:00
Henrik Rydgård
fa466d2363
Merge pull request #13850 from unknownbrackets/warnings
...
Cleanup some warnings and a logger shutdown crash
2021-01-01 19:53:10 +01:00
Unknown W. Brackets
8bf93bb757
http: Ignore signals on recv() too.
2021-01-01 08:58:35 -08:00
Unknown W. Brackets
c3ddb279f9
http: Cleanup excessive logging.
2021-01-01 08:55:18 -08:00
Unknown W. Brackets
f57c642f0b
Common: Fix logging shutdown race condition.
...
Got a crash during logging on another thread during shutdown.
2021-01-01 08:38:27 -08:00
Unknown W. Brackets
84aa33970b
Debugger: Fix some type conversion warnings.
2021-01-01 08:37:54 -08:00
Henrik Rydgård
c5d90a7e50
Merge pull request #13831 from unknownbrackets/debugger
...
Debugger: Tweaks to memory read/write APIs
2020-12-29 10:51:02 +01:00
Unknown W. Brackets
711dd0e8ac
Debugger: Correct a type error.
2020-12-28 20:16:49 -08:00
Unknown W. Brackets
3325a27811
Debugger: Cleanup some syntax.
2020-12-28 11:13:54 -08:00
Unknown W. Brackets
7e5052bc9e
Debugger: Add API to read/write chunks of memory.
...
Using base64 at this point to keep JSON.
2020-12-28 10:30:58 -08:00
Unknown W. Brackets
589d83d4da
http: Prevent assert on bad websocket data.
2020-12-28 09:30:36 -08:00
Jan Beich
633ba355ee
Linux: ignore missing MAP_NORESERVE on FreeBSD
...
Common/MemArenaPosix.cpp:111:71: error: use of undeclared identifier 'MAP_NORESERVE'
void *base = mmap(0, EIGHT_GIGS, PROT_NONE, MAP_ANON | MAP_PRIVATE | MAP_NORESERVE, -1, 0);
^
2020-12-27 05:25:05 +00:00
Unknown W. Brackets
c7becb2c75
http: Treat buffer full flush correctly.
...
Unix platforms may fail send with EAGAIN instead of 0 bytes.
2020-12-25 22:30:43 -08:00
Henrik Rydgård
e4cecabbf3
UWP: Work around another race condition in StorageFileLoader.
...
It really needs a rewrite and better error handling but that's for
later.
2020-12-20 12:36:32 +01:00
Henrik Rydgård
ddb5462bce
Folder browsing on main screen: Prevent navigating "up" when you can't.
2020-12-20 01:47:52 +01:00
Henrik Rydgård
2c4a42a695
UWP: Make the home button say "Home" instead of "Browse...".
2020-12-20 01:47:49 +01:00
Henrik Rydgård
aa2f102a0a
PathBrowser: Show simplified version of paths under the memstick dir.
2020-12-20 01:00:07 +01:00