Commit Graph
30888 Commits
Author SHA1 Message Date
Unknown W. Brackets 33598f2e75 GPU: Support clip and cull distances separately.
Older GL devices, and it seems Apple devices, may not support cull.
2021-10-12 20:34:44 -07:00
Unknown W. Brackets 7b00c4a572 GPU: Move Z/W equal hack to bugs from supports.
It's really a bug (might even ideally cap the version?), and we already
have other bugs handled the same way.
2021-10-12 20:34:44 -07:00
Unknown W. Brackets 5e6f54033e GPU: Split clip and cull caps.
GL_ARB_cull_distance is needed, sometimes available on older GL.
2021-10-12 20:34:43 -07:00
Unknown W. Brackets 1c7cd67f6d iOS: Buildfix bad GLES headers. 2021-10-12 20:34:43 -07:00
Unknown W. Brackets c6a52909f9 D3D11: Support vertex clip/cull planes. 2021-10-12 20:34:43 -07:00
Unknown W. Brackets 1e66a66ed7 D3D11: Correct clearing samplers. 2021-10-12 20:34:43 -07:00
Unknown W. Brackets 1a603fedf5 Vulkan: Cull verts fully outside depth.
Following PSP rules of -1 to 1 pre-viewport Z.  This also enables it for
GLES/OpenGL.
2021-10-12 20:34:43 -07:00
Unknown W. Brackets d2ff66a660 UI: Clear textures on Begin.
On GLES, saw a texture bound to slot 1 when UI started to draw after an
emu frame, which caused a crash because there was no sampler.  Let's just
explicitly flush.
2021-10-12 20:34:43 -07:00
Unknown W. Brackets 7d00b6ca90 GLES: Enable/disable clip distance 0. 2021-10-12 20:34:42 -07:00
Unknown W. Brackets 046a5c548b GLES: Check clip/cull distance support.
Pretty limited on GLES3+.  Also D3D11.
Seems like doing it on D3D9 might be a bit tricky.
2021-10-12 20:34:42 -07:00
Unknown W. Brackets 2271b41d07 Vulkan: Use clip distance only if supported. 2021-10-12 20:34:42 -07:00
Unknown W. Brackets 273b9a3dc1 Vulkan: Add negative Z clipping. 2021-10-12 20:34:42 -07:00
Unknown W. Brackets 24011c3754 GPU: Correct depth handling for guardband.
This culls based on pre-viewport Z and avoids culling based on the clip
range at negative Z.
2021-10-12 20:34:41 -07:00
Unknown W. Brackets 6252241c0f GPU: Verify throughmode for clears/rects. 2021-10-12 20:34:41 -07:00
Unknown W. Brackets 4ac36cb810 GPU: Cull rectangles more when depth clamp off.
If any vert is outside Z, it's culled when not clamping/clipping.
2021-10-12 20:34:41 -07:00
Unknown W. Brackets 5315c404c5 GPU: Cull rectangles outside valid Z.
Both TL and BR must be outside in the same direction to be culled when
depth clamp is enabled.
2021-10-12 20:34:41 -07:00
Henrik Rydgård bb64c176fc Merge pull request #15009 from unknownbrackets/audio-cleanup
Audio: Correct protection against time skew
2021-10-11 06:38:58 +02:00
Unknown W. Brackets b1e31d89e1 Audio: Correct protection against time skew. 2021-10-10 15:05:51 -07:00
Henrik Rydgård e91b8af27a Update version to 1.12.2 v1.12.2 2021-10-10 13:03:48 +02:00
Henrik Rydgård 1e504aff3b Update README.md for 1.12.2 2021-10-10 13:03:09 +02:00
Henrik Rydgård 80d7b36119 Merge pull request #15007 from hrydgard/joystick-debug
Add input device debug info to touchscreen test screen
2021-10-10 12:06:18 +02:00
Henrik Rydgård e6857388c7 Add input device debug info to touchscreen test screen
(yeah maybe there's a better place but it's fine).

Also make a slight tweak to the detection order which I don't think
matters much.
2021-10-10 11:50:20 +02:00
Henrik Rydgård bccb854f9c compat.ini: Add DBZ Tenkaichi Tag Team to [ClearToRam], see issue #14283 2021-10-10 11:20:38 +02:00
Henrik Rydgård 5995fe8e7d Merge pull request #15003 from unknownbrackets/android-device-id
Android: Prioritize PAD devices
2021-10-10 08:44:27 +02:00
Unknown W. Brackets 460ceadcc3 Android: Prioritize PAD devices. 2021-10-09 16:12:54 -07:00
Henrik Rydgård fbf9b7f549 Merge pull request #14998 from unknownbrackets/audio-cleanup
Protect against time skew in background audio
2021-10-09 18:35:50 +02:00
Unknown W. Brackets b77695c760 Audio: Protect against time skew.
It might be possible a clock is adjusting backwards slightly after a time
update, and this could've caused sz to become negative.

Based on crash reports.
2021-10-09 08:24:54 -07:00
Unknown W. Brackets 01b99eff98 Audio: Cleanup buffer wrap code.
This is a bit more straight-forward.
2021-10-09 08:17:55 -07:00
Henrik Rydgård bbe06ace22 Update version for 1.12.1 v1.12.1 2021-10-09 10:19:44 +02:00
Henrik Rydgård dab36b4e91 Update README.md for 1.12.1 2021-10-09 10:13:49 +02:00
Henrik Rydgård 14bf5de83c Merge pull request #14994 from hrydgard/more-crash-fixes
More crash fixes
2021-10-08 22:56:08 +02:00
Henrik Rydgård a79527bff0 Merge pull request #14995 from hrydgard/vulkan-sync-fixes
Vulkan sync fixes
2021-10-08 22:42:04 +02:00
Henrik Rydgård 59b2604c14 Consistent sampler modes in UI to make Mali happy 2021-10-08 22:20:57 +02:00
Henrik Rydgård d7ac6aa63d Fix an assortment of minor VK barrier bugs in mostly texture upload 2021-10-08 21:58:03 +02:00
Henrik Rydgård 90335bd520 Mip generation: Transition the correct mipmap after blit. 2021-10-08 21:53:55 +02:00
Henrik Rydgård 322a8a8b3c More checks in ParamSFO reader. Only problem left is that the strings are null terminated and can walk off the buffer. 2021-10-08 19:09:46 +02:00
Henrik Rydgård ddc0f0829b Replaced textures: Don't leak handles on failure, check allocation success 2021-10-08 19:09:43 +02:00
Henrik Rydgård 89a452c168 Merge pull request #14993 from unknownbrackets/ui-chat-key
UI: Disable focus movement on game start
2021-10-08 18:39:29 +02:00
Unknown W. Brackets 5884a2201d UI: Disable focus movement on game start.
Otherwise, dev tools or chat remain usable while trying to play the game.
This was an unintentional bug from chat UI refactoring.
2021-10-08 09:23:22 -07:00
Henrik Rydgård a251bf07cc compat.ini: Add Street Riders to [DisableRangeCulling].
See issue #14746
2021-10-08 17:31:27 +02:00
Henrik Rydgård b1eb35c423 Merge pull request #14989 from unknownbrackets/debugger-windows
Debugger: Centralize context menu handling
2021-10-08 08:40:50 +02:00
Henrik Rydgård 1b2109ab10 Merge pull request #14987 from unknownbrackets/ui-crash
Draw: Atomically release objects
2021-10-08 08:39:41 +02:00
Henrik Rydgård fe303dec6f compat.ini: Add NOVA to [DisableRangeCulling].
See issue #13989
2021-10-08 08:36:45 +02:00
Henrik Rydgård a968728ada Merge pull request #14988 from unknownbrackets/ui-ctrl-delay
UI: Delay between successive mapping in controls
2021-10-08 06:39:56 +02:00
Unknown W. Brackets 09f4e82aa7 Debugger: Keep pop up menus to ContextMenu only. 2021-10-07 19:53:40 -07:00
Unknown W. Brackets 39d3b4d933 Debugger: Centralize context menu handling.
This deduplicates a bit, but more importantly keeps all the IDs together.
2021-10-07 19:48:13 -07:00
Unknown W. Brackets 9c92af2b77 UI: Delay between successive mapping in controls. 2021-10-07 18:45:15 -07:00
Unknown W. Brackets abc9ce671a Draw: Atomically release objects.
There may be scenarios where we release objects from separate threads,
just make them safe.
2021-10-07 18:22:23 -07:00
Unknown W. Brackets 309dcb2952 Merge pull request #14985 from hrydgard/crash-fixes
Try to fix some crashes from Android crash reporting
2021-10-07 17:43:29 -07:00
Henrik Rydgård 944d2c3aa1 Set texture clamp mode for UI drawing. Fixes #14977, hopefully without breaking anything else.. 2021-10-08 00:22:50 +02:00