Commit Graph

26356 Commits

Author SHA1 Message Date
Henrik Rydgård
796539ad7f DarkStalkers: Fix display in the D3D backends. Still broken in OpenGL. 2019-10-27 20:54:36 +01:00
Henrik Rydgård
9099441973 Darkstalkers: Gross hack to avoid the game's own stretch, and present the raw buffer instead for a sharper image. 2019-10-27 20:54:36 +01:00
Henrik Rydgård
2dd7a9aa12 More darkstalkers work 2019-10-27 20:54:36 +01:00
Henrik Rydgård
c7f6724f7e Detect sprite drawing (1:1 texture mapping), run a simpler function without the triangle state tracking.
This will allow further simplification and specialization.
2019-10-27 20:54:36 +01:00
Henrik Rydgård
510229b68b SoftGPU: Detect through-mode rectangles from triangle strips 2019-10-27 20:54:36 +01:00
Henrik Rydgård
58568632e8 Software renderer: Use hardware color conversion on Vulkan in 5551 16-bit mode 2019-10-27 20:54:36 +01:00
Henrik Rydgård
3a0804a7dd Start slowly migrating from macros 2019-10-27 20:54:36 +01:00
Henrik Rydgård
19a1fa8430 Add a compat.ini flag for software rendering, use it to force on in Darkstalkers 2019-10-27 20:54:36 +01:00
Henrik Rydgård
86de0a49f2
Merge pull request #12449 from hrydgard/reintroduce-cardboard
Reintroduce Cardboard VR
2019-10-25 16:03:33 +02:00
Henrik Rydgård
0d76906b39 Buildfix 2019-10-25 16:03:00 +02:00
Henrik Rydgård
3924e457be Also rename the config setting to make sure it starts out off. 2019-10-25 16:03:00 +02:00
Henrik Rydgård
5dc9acf839 Cardboard VR: Add an on-screen VR OFF button. Enable Cardboard on iOS. 2019-10-25 16:03:00 +02:00
Henrik Rydgård
9b8533c936 Revert "Remove Google Cardboard support. Fixes #11668"
This reverts commit e284d9f00d.
2019-10-25 16:03:00 +02:00
Henrik Rydgård
3be09e619d Update lang submodule, adding Croatian, thanks to HilmBrala 2019-10-25 13:35:32 +02:00
Henrik Rydgård
71adef9d75
Merge pull request #12448 from hrydgard/gl-dataformat-cleanup
Code cleanup: OpenGL texture format cleanup
2019-10-24 23:24:26 +02:00
Henrik Rydgård
4d6a4beae1 Text drawing fixes 2019-10-24 23:07:57 +02:00
Henrik Rydgård
46447c9e90 Correct the wrong GL DataFormat enums 2019-10-24 23:01:45 +02:00
Henrik Rydgård
9e607fdeb1 GL: remove another unused format 2019-10-24 22:49:36 +02:00
Henrik Rydgård
fcfeda653d Reduce GL texture format support to the ES minimum. We have to handle these anyway so let's only have one path. 2019-10-24 22:47:22 +02:00
Henrik Rydgård
8c2e318416 OpenGL dataformat cleanup - pass Draw::DataFormat to the GLRenderManager.
Avoids triple GLenum all over the place, and also clearly shows that the
mapping is wrong.
2019-10-24 22:41:41 +02:00
Henrik Rydgård
aa04c57633
Merge pull request #12441 from hrydgard/lin-buildfix
Fix the build - there's a Vec3 name collision, fixed it using a namespace.
2019-10-22 23:16:25 +02:00
Henrik Rydgård
767b1e45b2 Fix the build - there's a Vec3 name collision, fixed it using a namespace. 2019-10-22 22:58:10 +02:00
Henrik Rydgård
ae286aef86 Vulkan+SoftwareRenderer: Fix screen rotation on Android.
(Missed this because software rendering is normally disabled on Android)
2019-10-22 22:08:21 +02:00
Henrik Rydgård
e09296b9b1
Merge pull request #12433 from unknownbrackets/io-minor
Io: Return error code for write attempt to UMD
2019-10-20 22:38:36 +02:00
Unknown W. Brackets
913121cf2b Io: Consistently use error codes with OpenFile().
This gets rid of OpenWithError(), and just always returns a negative value
on error for OpenFile().  Also fixed the sequence rollover, which could've
returned 0.

0 should be considered a valid handle ideally, but left it never returning
0 to simplify cleanup in some areas.
2019-10-20 11:03:37 -07:00
Henrik Rydgård
1856dabb24
Merge pull request #12432 from unknownbrackets/io-async
Fix change async priority when thread already running
2019-10-20 19:56:46 +02:00
Unknown W. Brackets
45516783f6 Io: Return error code for write attempt to UMD.
Previously, we were returning file not found (because 0), which was not
correct.  We were also allowing write handles to sce_lbn.
2019-10-20 10:36:13 -07:00
Unknown W. Brackets
f63daf8185 Io: Change async thread priority if running.
Really thought I'd already done this, must've made a mistake...
Fixes #12400.
2019-10-20 10:26:37 -07:00
Unknown W. Brackets
4065fae262 Io: Destroy async threads on reset.
Oops, this left us in a different state on exit.
2019-10-20 10:25:57 -07:00
Henrik Rydgård
c7b3a08cf3 Vulkan: Add checks so we don't try to write NULL objects to a descriptor set.
(Shouldn't happen, but bad rendering is better than a crash in descriptor writing)
2019-10-20 17:05:42 +02:00
Henrik Rydgård
d3b74d1554
Merge pull request #12431 from LunaMoo/GOWBloomHack
Change Bloom Hack aggressive detection to include GOW games bloom.
2019-10-20 16:07:25 +02:00
LunaMoo
c23f11cf0a Change Bloom Hack aggressive detection to include GOW games bloom. 2019-10-19 19:10:39 +02:00
Henrik Rydgård
90e91e24b3
Merge pull request #12424 from sbingner/jitfix
Use old jit enablement method if clean method fails
2019-10-17 00:27:59 +02:00
Sam Bingner
967c6f86b5 Use old jit enablement method if clean method fails 2019-10-16 12:19:47 -10:00
Henrik Rydgård
73bf6098e0
Merge pull request #12421 from sbingner/jitfix
Update iOS JIT hack
2019-10-15 09:35:00 +02:00
Sam Bingner
e3971dccbd
Fix fork logic 2019-10-14 17:33:04 -10:00
Sam Bingner
169473b7d0 Replace horrible hack with less horrible hack 2019-10-14 15:24:06 -10:00
Henrik Rydgård
aca18a188f
Merge pull request #12419 from hrydgard/vk-scissor-rotation-clamp
Vulkan: Move viewport/scissor rotation to the QueueRunner instead of RenderManager.
2019-10-13 22:29:26 +02:00
Henrik Rydgård
70c0a12b2b Fix name collision on iOS build 2019-10-13 21:25:16 +02:00
Henrik Rydgård
5adb61a5f2 Move the viewport clamping back to rendermanager to avoid a struct copy in the common case. 2019-10-13 21:25:16 +02:00
Henrik Rydgård
7c0470e061 Fix misplaced break 2019-10-13 21:25:16 +02:00
Henrik Rydgård
87c1ce6fa2 Vulkan: Move viewport/scissor rotation to the QueueRunner instead of RenderManager. Add some checks. 2019-10-13 21:25:16 +02:00
Henrik Rydgård
1e3711ee66 Vulkan blend factor: Bugfix and minor optimization 2019-10-13 21:17:29 +02:00
Henrik Rydgård
29950c0ad5 Update last commit to use IsValidRange instead of IsValidAddress. 2019-10-13 16:21:52 +02:00
Unknown W. Brackets
8a6a494599
Merge pull request #12418 from hrydgard/skip-invalid-code-sections
ScanForFunctions: Skip invalid code sections. May help #12414.
2019-10-13 06:59:42 -07:00
Henrik Rydgård
d64f9c44f3 Code analysis: Skip invalid code sections. May help #12414. 2019-10-13 13:25:18 +02:00
Henrik Rydgård
94339b2280
Merge pull request #12410 from hrydgard/wasapi-crashfix
WASAPI: Discovered by chance that pwstrDeviceId can be null in OnDefaultDeviceChanged.
2019-10-11 20:23:40 +02:00
Henrik Rydgård
420e26b69d
Merge pull request #12412 from hrydgard/gameicon-crash-fix
UI: Better way of showing game/savedata images.
2019-10-11 20:20:23 +02:00
Henrik Rydgård
1f742fd07a UI: Better way of showing game/savedata images. Fixes #12408 2019-10-11 17:34:38 +02:00
Henrik Rydgård
cb463b569a WASAPI: Discovered by chance that pwstrDeviceId can be null. Treating it as a new device. 2019-10-11 14:29:02 +02:00