33689 Commits

Author SHA1 Message Date
Unknown W. Brackets
dc90a5a851 softgpu: Avoid projecting textures in common case.
Several games appear to intentionally set the matrix flat.
2022-09-29 22:31:49 -07:00
Unknown W. Brackets
7cf05d0a46 GPU: Fix missed dirtying when fast loading tgen. 2022-09-29 22:31:07 -07:00
Unknown W. Brackets
904fb38003 GPU: Restore matrices with dirtying.
Without this, it's possible we might not notice or apply a change
whether in uniforms or etc.
2022-09-29 22:31:02 -07:00
Henrik Rydgård
a72a425df6 Use compat.ini to avoid readbacks in Silent Hill: Shattered Memories as well.
NOTE: I'm not 100% convinced this is ok, there might be CPU graphics manipulations here.
But in practice, in the current state where shadows don't work, it'll do.

Thanks mrfixit2001.
2022-09-30 00:03:00 +02:00
Henrik Rydgård
8afbf513be
Merge pull request #16130 from hrydgard/show-menu-bar-setting
Add hidden ini file setting that you can use to hide the menu bar on Windows
2022-09-29 21:37:26 +02:00
Henrik Rydgård
f8f52565b9 Remove redundant call to SetMenu 2022-09-29 21:36:20 +02:00
Henrik Rydgård
d31f129407 Add hidden ini file setting that you can use to hide the menu bar.
Windows-only. Useful together with some video recording software.

Might make some actual UI later.
2022-09-29 18:51:21 +02:00
Henrik Rydgård
7a4830ed4c
Merge pull request #16127 from hrydgard/silent-hill-fixes
Fixes for Silent Hill: Origins (depth buffer reassignment, eliminate readback)
2022-09-28 17:00:56 +02:00
Henrik Rydgård
8534b8d7ca Typo fix 2022-09-28 16:44:40 +02:00
Henrik Rydgård
ef7900fc7a
Merge pull request #16128 from lvonasek/docs-openxr-readme
OpenXR - SDK readme
2022-09-28 16:43:32 +02:00
Luboš Vonásek
088272c0c4
Update README.md 2022-09-28 16:24:26 +02:00
Lubos
d2de89e778 OpenXR - Add README.md about the SDK 2022-09-28 16:22:59 +02:00
Henrik Rydgård
6c7703b67f
Merge pull request #16125 from stuken/vk_compute_alpha_fix
Remove alpha ignore in xbrz texture shaders.
2022-09-28 14:16:28 +02:00
Henrik Rydgård
bd759790b0 Update the Vulkan debug names when reassigning depth buffers. 2022-09-28 14:09:40 +02:00
Henrik Rydgård
3adad176cc Add Silent Hill: Origins to compatibility setting BlockTransferAllowCreateFB.
Eliminates a readback with (so far) no perceptible bad effects.
2022-09-28 13:56:03 +02:00
Henrik Rydgård
de51d067f2 If a framebuffer starts using a different depth buffer than before, re-point.
Fixes depth artifacts in Silent Hill: Origins. See issue #16126
2022-09-28 13:41:41 +02:00
Henrik Rydgård
34d1661c48 Quiet the Vulkan miniprofiler (for texture uploads etc) a bit 2022-09-28 13:40:57 +02:00
Henrik Rydgård
f52c9650e1
Merge pull request #16097 from lvonasek/platform_openxr_pico
OpenXR - Support for Pico headsets
2022-09-28 10:56:18 +02:00
Henrik Rydgård
30c7b45ac8
Merge pull request #16123 from unknownbrackets/gpu-matrix
softgpu: Correct matrix value update wrapping
2022-09-28 09:39:27 +02:00
Henrik Rydgård
181179a6d8
Merge pull request #16121 from unknownbrackets/debugger
Debugger: Add API to scan memory for funcs
2022-09-28 09:35:33 +02:00
Henrik Rydgård
46e7f5ab17
Merge pull request #16122 from unknownbrackets/gles-colortest
GLES: Fix colortest/logicop uint/int conversion
2022-09-28 09:31:46 +02:00
Unknown W. Brackets
6b20c0318d softgpu: Correct matrix value update wrapping.
The values read back when saving a context or getting matrix data are set
differently than the actual values used for rendering.

This implements the wrapping and bleeding between matrices within softgpu,
but leaves hardware rendering to only use the rendering registers for
speed.
2022-09-27 22:29:55 -07:00
Unknown W. Brackets
95d2083f04 Ge: Move matrix reading into GPU.
Let's keep managing its state / registers internal.
2022-09-27 22:23:02 -07:00
Unknown W. Brackets
38818f9f6e GLES: Fix colortest/logicop uint/int conversion.
Shown well in #16119.
2022-09-27 19:24:54 -07:00
Unknown W. Brackets
3b0c0f2916 Debugger: Add API to scan memory for funcs.
For example, when you know a range is being used or when you've deleted
the functions.
2022-09-27 19:14:32 -07:00
Unknown W. Brackets
b60217d962 Debugger: Fix doc typo for disasm/assemble names. 2022-09-27 19:02:33 -07:00
Unknown W. Brackets
ebbd17540c
Merge pull request #16120 from hrydgard/better-pass-naming
Vulkan: Better debug names for RENDER passes.
2022-09-27 18:22:06 -07:00
Lubos
0c2120d596 Merge branch 'master' into platform_openxr_pico 2022-09-28 00:11:02 +02:00
Lubos
464fc446e3 OpenXR - Fix FBO colors on Pico 2022-09-28 00:10:30 +02:00
Lubos
409b9234d7 OpenXR - Fix the build on Quest 2022-09-28 00:01:18 +02:00
Lubos
05de5c7f3d OpenXR - Support for Pico controllers 2022-09-27 23:54:46 +02:00
Henrik Rydgård
ca5c69d3dd Vulkan: Better debug names for RENDER passes. 2022-09-27 23:41:09 +02:00
Stuart Kenny
1d5fc2feaa Remove alpha ignore in xbrz texture shaders. 2022-09-27 20:22:58 +01:00
Lubos
de1d829d47 Merge branch 'master' into platform_openxr_pico 2022-09-27 18:44:40 +02:00
Lubos
a7542e0320 OpenXR - Initialization on Pico fixed 2022-09-27 18:44:15 +02:00
Lubos
a9b6001daa OpenXR - Code formatting 2022-09-27 18:04:21 +02:00
Henrik Rydgård
afe3ba01fc
Merge pull request #16118 from hrydgard/vertex-cache-hash-improvement
Better bit scrambling when computing draw call IDs for vertex cache.
2022-09-27 10:28:16 +02:00
Henrik Rydgård
e538f5a441 Better bit scrambling when computing draw call IDs for vertex cache.
Fixes #13324
2022-09-27 10:09:52 +02:00
Henrik Rydgård
29d8f40c28
Merge pull request #16117 from unknownbrackets/softgpu-texgen
Correct texture projection issues, mainly in softgpu
2022-09-27 09:02:27 +02:00
Unknown W. Brackets
23af9be9f4 softgpu: Handle rectangle texture projection. 2022-09-26 18:44:39 -07:00
Unknown W. Brackets
faa6c2d461 softgpu: Implement triangle texture projection. 2022-09-26 18:12:20 -07:00
Unknown W. Brackets
6282f8b05f softgpu: Expand texture coords to include q.
We'll need this to correctly project.
2022-09-26 17:13:14 -07:00
Unknown W. Brackets
8376176b2f softgpu: Split clippos out of rasterization vert.
We don't use it, except w, at all in rasterization, so no need to keep it
in the bin queue.
2022-09-26 16:50:40 -07:00
Unknown W. Brackets
97ae4ae712 GPU: Correct flat normal projection mapping. 2022-09-26 15:11:11 -07:00
Unknown W. Brackets
34a8056017 GPU: Correct normalized zero normal proj map.
Unlike lighting, this does not use 0, 0, 1.
2022-09-26 15:11:11 -07:00
Unknown W. Brackets
b3c0f177e2 softgpu: Save last tc/normal in vertex reading.
Matches PSP behavior, reusing last set values.
2022-09-26 15:11:11 -07:00
Unknown W. Brackets
59f11df98b
Merge pull request #16116 from hrydgard/color-test-fix
Fix color test.
2022-09-26 14:18:12 -07:00
Henrik Rydgård
9b46adb985 Fix color test.
Fixes the new color test bug reported in #13324, though doesn't fix that
issue (didn't confirm it still is one).
2022-09-26 22:51:46 +02:00
Henrik Rydgård
87e49d8775
Merge pull request #16115 from hrydgard/fb-create-nearest-filter
Add compatibility flag for loading pixels on framebuffer create using nearest filtering
2022-09-26 21:49:41 +02:00
Henrik Rydgård
1c0d66aef7 Add compatibility flag for loading pixels on framebuffer create using nearest filtering
Solves the last problem with the speedometers - so we can finally say: Fixes #8509

Render-to-CLUT for speedometers renders on top of an image that just comes from the
underlying memory, so it's been drawn to the framebuffer with DrawPixels. That adds
filtering so at higher resolutions, there's some blurring of the CLUT, causing
artifacts.  We can solve this two ways: either we force on lower-resolution-for-effects
for Ridge Racer games, or we use nearest filtering when doing DrawPixels of the
memory under a framebuffer. For best result, we do the latter.

(The speedometers look even better with nearest filtering, but that's a more
general issue of UI looking better that way).
2022-09-26 20:47:55 +02:00