Commit Graph

2087 Commits

Author SHA1 Message Date
Gleb Mazovetskiy
78ad98e6c4 jpge.cpp: Remove malloc.h include
`malloc.h` is deprecated and doesn't exist on macOS.
`stdlib.h` provides malloc.

Fix sent upstream in https://github.com/richgel999/jpeg-compressor/pull/18
2021-01-30 12:13:13 +00:00
Gleb Mazovetskiy
5a09bc3d30 Update ext/jpge
From aeb7d3b463

Fixes #14012

Also now comes with SSE2 SIMD
2021-01-30 12:13:08 +00:00
Unknown W. Brackets
01676bc795 Windows: Fix miniupnpc build on ARM64. 2021-01-02 17:42:43 -08:00
Henrik Rydgård
7391abcfd6 Unrelated warning fixes 2020-11-08 14:57:43 +01:00
aliaspider
8bff088bb3 libkirk: fix buffer overflow. 2020-10-13 03:08:03 +01:00
Henrik Rydgård
3788537ddc Fix additional snappy warnings. 2020-10-10 19:21:12 +02:00
shenweip
a66cb1237d Warning fixes. 2020-10-10 19:18:46 +02:00
Henrik Rydgård
4310e35714 Windows: Remove the native project. 2020-10-05 06:56:10 +02:00
Henrik Rydgård
8761bf2bc9 Move text rendering to Common. 2020-10-05 00:05:28 +02:00
Henrik Rydgård
0e3a84b4a8 Move most GPU things to Common.
It works after the move, on Windows and Android at least.

Deletes the D3DX9 shader compiler loader, which was not used.
2020-10-04 23:39:02 +02:00
Henrik Rydgård
4f43cff5ca
Move fileutil, net, image loaders, ui to Common. (#13506)
* Move and rename file_util/fd_util to Common/File/FileUtil and DirListing

Let's also move net while we're at it.

Move the ZIM/PNG loaders over to Common.

Move the UI framework into Common

iOS buildfix

* Buildfix

* Buildfixes

* Apple buildfix

* This typo again..

* UWP buildfix

* Fix build of PPSSPPQt, such as it is (it's not in good condition...)

* Guess what? Another buildfix.
2020-10-04 20:48:47 +02:00
Henrik Rydgård
f01ba6dc84 Move NativeApp.h to Common/System, split into NativeApp.h and System.h
Buildfix
2020-10-04 11:42:16 +02:00
Henrik Rydgård
b7edf75437 Move Display.cpp/h to Common. 2020-10-04 11:42:16 +02:00
Henrik Rydgård
821817e6d4 Move the profiler to Common 2020-10-04 11:42:16 +02:00
Henrik Rydgård
989e353482 Common.h shouldn't include Log.h.
Buildfixes

More buildfixes. Move JSON code to common.
2020-10-04 11:42:14 +02:00
Henrik Rydgård
9e41fafd0d Move math and some file and data conversion files out from native to Common.
Buildfixing

Move some file util files

Buildfix

Move KeyMap.cpp/h to Core where they belong better.

libretro buildfix attempt

Move ini_file

More buildfixes
2020-10-04 09:12:46 +02:00
Henrik Rydgård
ff8148dd92 Move native/util, native/data and native/i18 to Common/Data.
Also move colorutil.cpp/h

linking build fix experiment

Delete a bunch of unused CMakeLists.txt files

CMakeLists.txt linking fix

Don't include NativeApp.h from any headers.

Android.mk buildfix

Half of the UWP fix

Buildfix

Minor project file cleanup

Buildfixes

Guess what? More buildfixes!
2020-10-04 07:28:29 +02:00
Henrik Rydgård
342ed97291 Move input utilities from native to Common/Input. 2020-10-01 09:42:32 +02:00
Henrik Rydgård
15382d5f94 Move threading utils from native to Common 2020-10-01 09:27:25 +02:00
Unknown W. Brackets
137f03c71d Adnroid: Add back arm32 files for libpng. 2020-09-29 23:04:30 -07:00
Unknown W. Brackets
af307d05e2 Android: Fix include paths. 2020-09-29 22:51:53 -07:00
Unknown W. Brackets
af57eb582c Global: Add back arm files for libpng. 2020-09-29 22:41:43 -07:00
Henrik Rydgård
65617889dd Merge ext/native/ext/... directly into ext. 2020-09-30 00:30:42 +02:00
Henrik Rydgård
4d3ec20082 ByteSwap.h results in a file name collision on some systems with byteswap.h. Fix this by merging it into BitSet.h. 2020-09-30 00:09:13 +02:00
Henrik Rydgård
5e976ff842 Buildfixes 2020-09-29 19:33:18 +02:00
Henrik Rydgård
11ab77b995 Remove some TLS. 2020-09-29 15:51:51 +02:00
Henrik Rydgård
835b819faa Remove some color util functions 2020-09-29 15:51:51 +02:00
Henrik Rydgård
311fe431d0 Move buffer.cpp/h from base to Common 2020-09-29 15:51:51 +02:00
Henrik Rydgård
17a9767585 Buildfixes 2020-09-29 15:51:51 +02:00
Henrik Rydgård
40ec0d8358 Finish getting rid of basictypes.h 2020-09-29 15:51:51 +02:00
Henrik Rydgård
3162f30158 Merge base/basictypes.h into Common/Common.h (mostly). 2020-09-29 15:51:51 +02:00
Henrik Rydgård
ed88761ecc Merge ext/native/stringutil.cpp/h into Common/StringUtils.cpp/h. 2020-09-29 15:51:51 +02:00
Henrik Rydgård
656adf1fcd Remove old define for thread local storage 2020-09-29 15:51:51 +02:00
Henrik Rydgård
ecceeaa810 We no longer use TCHAR. 2020-09-29 15:51:51 +02:00
Henrik Rydgård
51e2e7f8d5 Remove our usage of ssize_t 2020-09-29 15:51:51 +02:00
Henrik Rydgård
ec7458b6a9 Delete more useless math code 2020-09-29 10:13:27 +02:00
Henrik Rydgård
db9cc41a1a Delete unused math code 2020-09-29 10:07:53 +02:00
Henrik Rydgård
1e6c13cb56 Delete more old detritus 2020-09-29 10:07:07 +02:00
Henrik Rydgård
30ecde5bc9 Delete some unused string functions 2020-09-29 00:41:32 +02:00
Henrik Rydgård
204fbe463e Delete unused backtrace.cpp 2020-09-29 00:36:29 +02:00
Henrik Rydgård
054acf768c Don't cache time in a variable.
A little weirdness in the code that has stuck around for a long, long
time. It's really not necessary and mostly just confusing.
2020-09-24 23:52:43 +02:00
Henrik Rydgård
9cdf4941f2 Revert a bad optimization in word wrapper 2020-09-24 00:32:36 +02:00
Henrik Rydgård
cea7c1b6bb Remove an allocation in the word wrapper. 2020-09-22 21:29:01 +02:00
Henrik Rydgård
437818aa45 Minor optimization in wrap_text.cpp 2020-09-22 21:12:45 +02:00
Henrik Rydgård
707e9cf7ac Remove some unnecessary function parameters, improve some comments. 2020-09-20 20:44:18 +02:00
Henrik Rydgård
7c76f4e65c Minor improvement to gl_debug_log.h 2020-09-17 20:53:02 +02:00
Henrik Rydgård
d71ec8d82c The new asserts found something. 2020-09-17 20:53:02 +02:00
Henrik Rydgård
d0f7b1e30f Make the implementations of CopyFramebufferDepth more similar.
Also avoid matching framebuffers with bad z for copies.
2020-09-17 20:52:45 +02:00
Henrik Rydgård
7f1e35e761 Add missing asserts after some VK resource creation functions 2020-09-16 01:03:56 +02:00
Jean-André Santoni
6f2310b8ea
Fix libretro OSX build
Fixes these errors:

```
../ext/zlib/gzlib.c:492:14: error: implicit declaration of function 'lseek' is invalid in C99
      [-Werror,-Wimplicit-function-declaration]
../ext/zlib/gzwrite.c:84:15: error: implicit declaration of function 'write' is invalid in C99
      [-Werror,-Wimplicit-function-declaration]
  1 /* gzguts.h -- zlib internal header definitions for gz* operations
        got = write(state->fd, strm->next_in, strm->avail_in);
```
2020-09-13 15:07:08 +07:00
Unknown W. Brackets
37d7096703 SaveState: Update to latest Snappy v1.1.8. 2020-09-12 18:16:27 -07:00
ANR2ME
2040be06e1 Added another HexData printing with offset and ASCII contents to help dumping some data in the logs 2020-09-07 02:59:12 +07:00
ANR2ME
442d3685dc Fixed an issue where the 1st line showing 17 bytes of data instead of 16 bytes like the rest of the lines 2020-09-07 02:56:59 +07:00
Henrik Rydgård
cdf11dffd1 Shrink the "Cardboard VR Off" button.
Got a complaint through email that it was so large it could be visible with
the cardboard on, despite its location.
2020-08-30 17:50:42 +02:00
Henrik Rydgård
b86d26da42 Remove wrong assert. Should fix #13354 2020-08-30 10:13:16 +02:00
Henrik Rydgård
e33c31e187
Merge pull request #13353 from unknownbrackets/texcache
TexCache: Improve QuickTexHash a little, cleanup ARM64 defines
2020-08-29 18:35:06 +02:00
Unknown W. Brackets
6b8f7294b3 Global: Remove ARM64 define.
Was barely used anymore, and some users are specifying it when it's not
the case, so better to detect consistently.
2020-08-29 08:45:50 -07:00
Henrik Rydgård
cb3ed8f4a1
Merge pull request #13343 from unknownbrackets/xxhash
Switch to XXH3
2020-08-28 12:20:26 +02:00
Unknown W. Brackets
184d4a1fc0 Vulkan: Type comparison warning fix. 2020-08-27 20:01:59 -07:00
Unknown W. Brackets
9b27cbd450 Common: Update to latest xxhash. 2020-08-27 20:01:04 -07:00
Henrik Rydgård
0b8e377872 Address feedback from #13341. 2020-08-27 22:59:27 +02:00
Henrik Rydgård
f64d36664e Fix final subpass dependency for depth 2020-08-27 22:59:18 +02:00
Henrik Rydgård
b58f5e46ae Correctly update image layout to the final one after a render pass. 2020-08-27 22:59:18 +02:00
Henrik Rydgård
95a4cd37fc Improve LogSteps further. Break out PreprocessSteps. 2020-08-27 21:50:05 +02:00
Henrik Rydgård
4e841ca3a6 Naming fix, better names for temp fbos 2020-08-27 21:50:05 +02:00
Henrik Rydgård
6e9d5ffbd7 VulkanRenderManager: Improve logging. LogSteps output is much better.
More logging improvements
2020-08-27 21:50:05 +02:00
Henrik Rydgård
d54e0b3231 Fix longstanding depth/stencil view issue in Vulkan. Cleans up validation.
We didn't specify DEPTH|STENCIL as aspects for views we rendered to,
only DEPTH. Who knows how many of the driver bugs we "found" are this.

DEPTH|STENCIL views can't be sampled though, so we create a separate
DEPTH view for that. This keeps Katamari working.
2020-08-27 21:23:41 +02:00
Henrik Rydgård
b323397c54 Vulkan: Minor fix for depth/stencil pretransitions. Used DEPTH_ATTACHMENT_OPTIMAL by mistake in barrier. 2020-08-27 16:46:14 +02:00
Henrik Rydgård
de4778358e AspectMask fix 2020-08-27 16:39:15 +02:00
Henrik Rydgård
3be729bfc5 Vulkan: Silly typo fix in barrier 2020-08-27 14:46:02 +02:00
Unknown W. Brackets
c98d96c78f http: Avoid logging errors for would block.
It's not an error, this case is expected.
2020-08-23 21:32:06 -07:00
Henrik Rydgård
506a86300d More explicit invalidation of any cached state in Thin3D. Fixes #13307 2020-08-22 00:30:29 +02:00
Henrik Rydgård
0752e7d158
Merge pull request #13302 from unknownbrackets/net-local
Net: Simplify local IP lookup and cleanup instance counter a bit
2020-08-18 21:29:29 +02:00
Unknown W. Brackets
31830dd4df native: Minor header cleanup. 2020-08-18 06:59:49 -07:00
Henrik Rydgård
06a528927e GL: Re-enable mipmaps for thin3d textures. 2020-08-18 12:57:43 +02:00
Henrik Rydgård
5313fc5b36 More work on GL state leaks. Some things really need a redesign. 2020-08-18 09:18:24 +02:00
Henrik Rydgård
61bf512244
Merge pull request #13291 from hrydgard/assert-cleanup
Assert function cleanup
2020-08-16 13:57:22 +02:00
Henrik Rydgård
5d64fc5ff1 Switch to PPSSPP's assert functions (don't use the system's) 2020-08-16 10:01:10 +02:00
Henrik Rydgård
7aacf3df37 Remove time_now() - time_now_d() is the replacement. Absolute time values can't be stored reliably in floats. 2020-08-16 09:37:18 +02:00
Henrik Rydgård
ccc0331279 Move timeutil to Common. (Experiment to see how much work it is to move these). 2020-08-15 20:53:08 +02:00
Henrik Rydgård
004119fd32 UWP buildfix 2020-08-15 19:47:04 +02:00
Henrik Rydgård
f0d2f24658 Finally delete base/logging.cpp/h. Carefully preserve behaviour on Android.
There's more cleanup to do ...
2020-08-15 19:09:09 +02:00
Henrik Rydgård
3c412ea21e Fix build of ZimTool/AtlasTool. Had to break the ugly backwards dependency from LogManager to g_Config. 2020-08-15 19:09:09 +02:00
Henrik Rydgård
80e0f85332 Getting really close to getting rid of base/logging.h now.
Qt buildfix
2020-08-15 19:09:01 +02:00
Henrik Rydgård
b22083e7a6 Even more base/logging.h removal and fixes 2020-08-15 19:09:01 +02:00
Henrik Rydgård
cca7511e6a More base/logging.h cleanup 2020-08-15 19:09:01 +02:00
Henrik Rydgård
c41f875df4 Remove base/logging.h in a whole lot more places. 2020-08-15 19:09:00 +02:00
Henrik Rydgård
5eb13378c6 Remove base/logging from a lot more files in native 2020-08-15 19:09:00 +02:00
Henrik Rydgård
bf72f746ea Remove base/logging.h from a whole bunch of files in native 2020-08-15 19:09:00 +02:00
Henrik Rydgård
8835728f87 Replace base/logging.h in VulkanContext and parts of native 2020-08-15 19:08:44 +02:00
Henrik Rydgård
5117ded378 Remove ELOG/ILOG/WLOG from the Android C++ code (mostly) 2020-08-15 19:08:39 +02:00
Henrik Rydgård
0fcc0994b4 Recategorize some logging, in preparation for what's to come. 2020-08-15 11:51:22 +02:00
mrfixit2001
27329dc485
Fix menu navigation from axis in linux
Up is down and down is up - mimic the change in android for linux to compensate and correct. Tested and working.
2020-08-13 16:12:27 -04:00
Unknown W. Brackets
cf4a5b1b9c Global: Buildfix for parsers. 2020-08-10 14:43:13 +00:00
Unknown W. Brackets
850df75c45 Merge remote branch remove-sstream-from-stringutil. 2020-08-10 07:18:49 -07:00
Unknown W. Brackets
a0f8e788f3 Global: Move string number parse to text/parsers.
It's not used as much as the other string utils.
2020-08-10 07:05:23 -07:00
Unknown W. Brackets
3d9c4733ab Global: Reduce ini_file header complexity.
We're not using the old std::map support anymore.  Avoid pulling in
headers if possible.
2020-08-10 07:05:22 -07:00
Unknown W. Brackets
e59951382a Global: Make stringutil includes more explicit. 2020-08-10 07:05:22 -07:00
Henrik Rydgård
5ec2da0f2d Move Section out of IniFile so it can be forward declared. Unlocked further improvements to build speed. 2020-08-10 15:53:52 +02:00
Henrik Rydgård
72d5b29434 Can't avoid sstream in ini_file.h, it seems. 2020-08-10 15:46:21 +02:00
Henrik Rydgård
d70dcaf53a Buildfix 2020-08-10 15:29:10 +02:00
Henrik Rydgård
62a8329c33 Remove sstream from stringutil.h. See #13267 2020-08-10 14:33:00 +02:00
Henrik Rydgård
6b6ecf4427
Merge pull request #13267 from unknownbrackets/headers
Reorganize DoState headers and cut back on common header includes
2020-08-10 13:45:57 +02:00
Unknown W. Brackets
1bcafafdbb UI: Fix an override warning. 2020-08-10 08:03:44 +00:00
Unknown W. Brackets
667a8522cc Global: Cut down on file/string includes. 2020-08-10 08:03:44 +00:00
Unknown W. Brackets
d90630c263
Merge pull request #13262 from hrydgard/depth-texturing
Implement texturing from depth buffers (Vulkan only so far)
2020-08-10 03:42:17 -04:00
Henrik Rydgård
0aa2ceb372 Address feedback 2020-08-10 09:16:28 +02:00
Henrik Rydgård
dd79d33f14 Minor: Initialize a struct. Decrease logging in sceMt19937. 2020-08-09 21:45:42 +02:00
Henrik Rydgård
86355779d7 Remove partial comment 2020-08-09 20:49:08 +02:00
Henrik Rydgård
ba0d04a142 Vulkan: Implement depth texturing through depal. 2020-08-09 20:31:04 +02:00
Henrik Rydgård
375da0a2fe Some fixes 2020-08-09 19:47:22 +02:00
Henrik Rydgård
cf122e9333 Vulkan/generic: Initial prep for depth texturing 2020-08-09 19:47:15 +02:00
Henrik Rydgård
fd41c9cd57 These convenience overloads don't work in 32-bit builds, remove them. 2020-08-09 10:28:37 +02:00
Henrik Rydgård
fbf6008a03 Set debug names for more framebuffers and textures 2020-08-09 09:36:54 +02:00
Henrik Rydgård
2f5de1987e Allow passing in an object name tag when creating framebuffers 2020-08-09 09:36:45 +02:00
Henrik Rydgård
11f9df33ba Vulkan: Start adding object names for easier validation debugging 2020-08-08 21:29:29 +02:00
Henrik Rydgård
3fd8f3d86d Add a setting. Various tweaks to sound triggering. 2020-08-03 12:08:11 +02:00
Henrik Rydgård
434b717ba0 Add a couple of more sounds. Rename some vars. 2020-08-03 12:08:11 +02:00
Henrik Rydgård
55eb2844fd Hook up a couple more sounds. Unfortunately clickable back buttons now play both back and confirm sounds... 2020-08-03 12:08:11 +02:00
Henrik Rydgård
5423f76e25 Hook up the first UI sound, make it play. 2020-08-03 12:08:11 +02:00
Henrik Rydgård
b30be913c0 Read in WAV files for UI sounds 2020-08-03 12:08:11 +02:00
Henrik Rydgård
6aa3681f7c Minor logging improvements 2020-08-02 15:41:00 +02:00
Henrik Rydgård
4766e4fcb9
Merge pull request #13233 from hrydgard/kirk-cleanup
Add some comments and const-correctness, and a pointer type fix, to the "semaphore" crypto stuff.
2020-08-02 01:11:06 +02:00
Henrik Rydgård
ce31d3e375 Update Vulkan headers to the latest, just to keep up. 2020-08-01 23:37:15 +02:00
Henrik Rydgård
0586338d5e Add some comments and const-correctness, and a pointer type fix, to the "semaphore" crypto stuff. 2020-08-01 23:11:48 +02:00
Unknown W. Brackets
5c1bb52ce6
Merge pull request #13221 from hrydgard/android-minor-cleanup
Android: Various minor cleanup
2020-07-29 02:51:50 -04:00
Henrik Rydgård
73166def93 Android: Reduce asserts during startup. 2020-07-28 19:06:29 +02:00
Henrik Rydgård
06d57b1656 GL: Add some paranoid checks. Remove a useless option. 2020-07-28 14:24:36 +02:00
Henrik Rydgård
51f080dfd0 Remove unnecessary vector from thin3d_gl texture handling. 2020-07-27 18:22:23 +02:00
ANR2ME
596fad3f42 Provides quick IP fill on Adhoc Server IP address setting to makes player's life easier :) 2020-07-23 12:41:13 +02:00
Henrik Rydgård
31e861132b Implement ANR2ME's solution for miniupnpcstring.h 2020-07-22 10:26:21 +02:00
Henrik Rydgård
e1069da10a Oops 2020-07-22 01:40:54 +02:00
Henrik Rydgård
597647a2eb Create an Android.mk for miniupnp 2020-07-22 01:19:40 +02:00
Henrik Rydgård
5f2156fa27 Windows: Run the upnp string gen script regardless of architecture, and in UWP. 2020-07-22 00:31:34 +02:00
Henrik Rydgård
eb7b6b38f6 Switch to my miniupnpc fork with a UWP fix 2020-07-21 23:43:32 +02:00
Henrik Rydgård
e2035bf241 MiniUPNPC: Windows: Try to fix build on VS 2017, add more platforms. 2020-07-21 23:07:36 +02:00
ANR2ME
33d3ac28de Added UPnP Support
Fix i18n type
2020-07-21 23:02:58 +02:00
Henrik Rydgård
0829543987 Third part of getting rid of PanicAlert 2020-07-19 20:34:02 +02:00
Henrik Rydgård
c5e0b799d9 Remove category from _assert_msg_ functions. We don't filter these by category anyway.
Fixes the inconsistency where we _assert_ didn't take a category but
_assert_msg_ did.
2020-07-19 20:33:25 +02:00
Henrik Rydgård
6560192d8e Support full VSync control in SDL OpenGL.
(Not yet Qt).

Forgot about iOS

SDL headless buildfix

Additional iOS buildfix
2020-07-19 12:07:16 +02:00
Henrik Rydgård
f5afb2dbbd Improve some logging, and print the line number from PanicAlerts. 2020-07-19 11:10:51 +02:00
Henrik Rydgård
82bc6f6cc5 Windows ARM fix, cleanup 2020-07-14 13:47:25 +02:00
Henrik Rydgård
fe91f62f92
Merge pull request #11795 from hrydgard/exception-handler
Exception handler - catch bad memory accesses by the JIT
2020-07-14 13:35:16 +02:00
Henrik Rydgård
6f97c3d422 Various platform buildfixes 2020-07-14 09:25:59 +02:00
Henrik Rydgard
c988d42b04 ARM/ARM64 instruction analysis, hook up to handler 2020-07-14 09:25:45 +02:00
Henrik Rydgård
b5e7220ed1 Switch to a fence instead for readbacks. Some sources suggest this is better than idling a queue or device.
Like https://stackoverflow.com/questions/39537176/in-what-situations-is-vkfence-better-than-vkqueuewaitidle-for-vkqueuesubmit .

Additionally, this is easier to refactor and loosen up if we can in the
future.
2020-07-14 09:06:07 +02:00
Henrik Rydgård
e66f034fb3 Readback: Downgrade from vkWaitDeviceIdle to vkWaitQueueIdle. Probably effectively pretty much the same. 2020-07-14 09:06:07 +02:00
Unknown W. Brackets
9ebb402e4f Vulkan: Buildfix. 2020-07-13 18:19:36 -07:00
Henrik Rydgård
131a1eedfb Vulkan: Make sure textures/samplers are unbound at the end of PresentationCommon::CopyToOutput.
Validation caught an issue where old stuff lingered in sampler 1 and texture 1.

Bug probably introduced in #12921, but could also be others.
2020-07-13 23:32:37 +02:00
Henrik Rydgård
bb6219e402
Merge pull request #12921 from unknownbrackets/postshader
Use less FBOs for chained post-processing shaders
2020-07-13 18:52:53 +02:00
Henrik Rydgård
e8370b94c0 Remove irrelevant comment 2020-07-13 18:14:12 +02:00
Henrik Rydgård
dc6e7a7938 Move the Vulkan swapchain out-of-date checking to the vkQueuePresentKHR call. 2020-07-13 18:14:12 +02:00
Unknown W. Brackets
dbbcaa9eca GLES: Invalidate framebuffers bound DONT_CARE.
Let's try to invalidate when it's possible.  We move the invalidate to the
end of the render when detected.
2020-07-13 08:00:24 -07:00
Henrik Rydgård
b58ca8af12
Merge pull request #12945 from unknownbrackets/io-timing
Make file open timing a bit more accurate
2020-07-13 13:37:53 +02:00
twinaphex
f958ed5817 Add custom GLEW - interfaces with libretro get_proc_address -
we need this for compatibility with DRM/KMS and Wayland contexts -
otherwise we're limited to GLX context
2020-07-12 23:51:57 +02:00
Henrik Rydgård
406c06ccaf
Merge pull request #12972 from unknownbrackets/gl-step-debug
Label steps using GL debug groups
2020-07-12 23:27:09 +02:00
Henrik Rydgård
7e5527285d Screen: Unlock the inputLock_ mutex slightly earlier in processFinishDialog
It's really just there to protect the stack.
2020-07-05 11:56:04 +02:00
Unknown W. Brackets
4d47715e41 http: Check cancel flag more often.
Would be better to use non-blocking sockets, but this code is working,
so not planning to rewrite it right now.
2020-07-04 21:18:41 -07:00
Henrik Rydgård
bd8083fb26 Downloader: Join threads in CancelAll 2020-06-28 18:34:00 +02:00
Henrik Rydgård
1a8084cdbc Different handling of Download lifetimes. Might help an issue from #13057 (1.10 crash mysteries) 2020-06-28 13:26:12 +02:00
Jan Beich
2c7290e98b cmake: don't install bundled glslang
lib/libglslang.a
lib/cmake/glslangTargets.cmake
lib/cmake/glslangTargets-release.cmake
include/glslang/Public/ShaderLang.h
include/glslang/Include/arrays.h
[...]
2020-06-27 21:14:58 +00:00
Henrik Rydgård
4bcd8df079 Logging improvements and warning fixes.
(Had a super odd crash that I can't repro anymore in PPGe init...)
2020-06-22 22:46:03 +02:00
Henrik Rydgård
cd1d73436d Vulkan: Recreate the swapchain if we get too many "out of date" frames.
Should help an issue on my Linux laptop with Intel GPU.
2020-06-22 00:45:05 +02:00
iota97
804b673d8e Vulkan: Correct secondary texture binding in Draw. 2020-06-12 12:40:53 -07:00
Unknown W. Brackets
201d2782b4 Draw: Allow 2 textures bound in Vulkan.
Not working properly though...
2020-06-12 12:35:37 -07:00
Unknown W. Brackets
21ac3ca7a4 Draw: Fix textures and samplers at an offset. 2020-06-12 12:35:37 -07:00
Unknown W. Brackets
64435e56b1 Draw: Use uniform locs for GLES, add samplers.
So that we can initialize and bind samplers.
2020-06-12 12:35:36 -07:00
Henrik Rydgård
737688a22a Annotate calls to RebindFramebuffer with their cause. 2020-06-02 09:51:38 +02:00
Henrik Rydgård
d141e0cf84
Merge pull request #12989 from hrydgard/display-layout-inset-fixes
Display layout editor inset fix/workaround
2020-06-02 00:27:45 +02:00
Henrik Rydgård
34a2713c3f Have DisplayLayoutScreen implemented insets manually. Gave up refactoring it. 2020-05-31 23:23:13 +02:00
Henrik Rydgård
8e7d2109fe VulkanQueueRunner: Fix some uninitialized struct members (not sure if it has any effect) 2020-05-31 19:35:19 +02:00
Henrik Rydgård
774bea4f33
Merge pull request #12977 from unknownbrackets/travis
Make UWP build again and build on Travis
2020-05-26 23:05:03 +02:00
Unknown W. Brackets
40a0525aea Vulkan: Ensure depth/stencil load match on Mali. 2020-05-25 12:14:03 -07:00
Unknown W. Brackets
c90c29df32 Vulkan: Trivially kill more empty steps.
Just in case we have a DONT_CARE step.
2020-05-25 12:04:18 -07:00
Unknown W. Brackets
f232352457 UWP: Include TextDrawer in main MSVC project. 2020-05-25 09:44:05 -07:00
Unknown W. Brackets
c46015e237 UWP: Fix TextDrawer with latest changes. 2020-05-25 09:44:05 -07:00
Unknown W. Brackets
24c844445e GPU: Don't allow step id to decrease at a sync.
This might've caused us to miss necessary dynamic state dirtying in games,
but only in fairly specific cases.  But it happens a lot when stepping via
the GE debugger.
2020-05-24 22:39:29 -07:00
Unknown W. Brackets
c8f8d55118 Vulkan: Correct viewport flag reset on rebind.
Can't break since we're checking two separate flags.
2020-05-24 21:36:23 -07:00
Unknown W. Brackets
356468fe83 GLES: Use debug groups for render steps. 2020-05-24 20:50:17 -07:00
Unknown W. Brackets
00656a2d8d GLES: Avoid duplicate state resets.
Between render passes, we don't need to re-disable stencil test each time.
Only when it changes.  This makes render logs clearer.
2020-05-24 20:50:17 -07:00
Unknown W. Brackets
8fa84fd717
Merge pull request #12968 from hrydgard/dirty-from-drawengine
Dirty state from each DrawEngine
2020-05-24 15:35:05 -04:00
Henrik Rydgård
370678c498 Do a similar thing for D3D (let the backend handle the dirtying). 2020-05-24 20:57:59 +02:00
Henrik Rydgård
bebf649705 OpenGL/Vulkan: Rework the contract around dynamic state. Removes some ugly dirtying from the GL render manager. 2020-05-24 20:27:58 +02:00
Unknown W. Brackets
544576e6c2 UI: Lock around removal from dispatch queue. 2020-05-24 10:57:32 -07:00
Henrik Rydgård
bef078a3bd GLRenderManager: Removes some redundant dirtying. Preserves blend state (color mask) across clears. 2020-05-24 19:18:04 +02:00
Henrik Rydgård
23bdc40715
Merge pull request #12942 from unknownbrackets/vulkan-debug
When debugging, expose pass tags to RenderDoc
2020-05-22 09:28:09 +02:00
Unknown W. Brackets
49abe9ed6c Io: Open sce_lbn references and whole ISO faster. 2020-05-21 18:58:24 -07:00
Unknown W. Brackets
2dbb7a598d Vulkan: Label render passes in RenderDoc/etc. 2020-05-21 08:55:36 -07:00
Henrik Rydgård
4aec10d04f Correct an issue where reformat didn't work if no renderpass was active due to the use of clear.
Also instantly convert to a clear when binding the framebuffer in cases
when we know it's the optimal thing. The QueueRunner would have later merged
anyway hopefully, but I like the simplicity of this.
2020-05-21 12:01:15 +02:00
Henrik Rydgård
fabe987c8f Add a name tag for all render steps (GL/Vulkan). Helps with debugging and should be cheap enough (a single pointer per "step"). 2020-05-21 11:24:05 +02:00
Unknown W. Brackets
8d900bb432 Vulkan: Check driver version for Adreno 5xx bug.
It's now fixed at least as of this version (possibly earlier.)
2020-05-19 22:13:15 -07:00
Unknown W. Brackets
2e05d22eb7 Vulkan: Move Harvest Moon fix to Draw::Bugs.
Also, make it so you can skip using ini settings.
2020-05-19 22:12:30 -07:00
Henrik Rydgård
e64fdfa0c3 Fix a case of pointer truncation in Vulkan on 32-bit. Fixes #12932 2020-05-19 20:53:51 +02:00
Henrik Rydgård
69c092dce1 Vulkan crashfix (pNext was uninitialized) 2020-05-19 20:52:47 +02:00
Henrik Rydgård
f1b9943947
Merge pull request #12930 from unknownbrackets/gpu-stencil
GPU: Avoid unnecessary clear on stencil upload
2020-05-19 09:05:58 +02:00
Unknown W. Brackets
cb23c0c01d Vulkan: Create FB compatible pipelines in Draw.
The easiest way is just to create both and support both.  Perhaps we could
optimize out the creation of the framebuffer one.

Fixes #12928.
2020-05-18 22:45:20 -07:00
Unknown W. Brackets
396bf1d1c7 Vulkan: Expand logging of render steps a bit. 2020-05-18 21:38:36 -07:00
Henrik Rydgård
612fdb957e Revert "Experimental commit that effectively reverts the Vulkan part of #12882."
This reverts commit 29d1f97dd5.
2020-05-19 00:44:42 +02:00
Henrik Rydgård
29d1f97dd5 Experimental commit that effectively reverts the Vulkan part of #12882.
For the #12927 investigation.
2020-05-19 00:42:34 +02:00
Henrik Rydgård
d37893d1ac Track scissors like we track viewports (bugfix?). 2020-05-18 23:21:03 +02:00