Commit graph

35718 commits

Author SHA1 Message Date
Henrik Rydgård
ea0eaa31e6 Remove the Android display resolution selector
I think its benefit is absolutely tiny if any, and causes a lot more
problems than it's worth. Bye.

Note that this isn't the rendering resolution selector, that will of
course still be there, but it's the "hardware scaler" resolution.
2023-01-11 22:53:42 +01:00
Henrik Rydgård
30586be75f
Merge pull request #16791 from hrydgard/lighting-code-cleanup
Lighting code cleanup and optimization
2023-01-11 22:07:27 +01:00
Henrik Rydgård
ca63bb1e5b Even more optimization/cleanup. Don't need to check ldot that we already know is >= 0.0. 2023-01-11 19:34:58 +01:00
Henrik Rydgård
965007d65b Tighten up the lighting shader code a bit, hopefully eliminating a branch or two. 2023-01-11 19:29:02 +01:00
Henrik Rydgård
1c8e456c97 Also apply this to OpenGL and D3D9 2023-01-11 19:29:02 +01:00
Henrik Rydgård
4c2a41cc83 Break out the attenuation term, too 2023-01-11 19:29:02 +01:00
Henrik Rydgård
a508f7e345 Shave a few instructions from lighting shaders by prenormalizing the light dir used for spotlights 2023-01-11 19:29:02 +01:00
Henrik Rydgård
8d3a3285da
Merge pull request #16787 from hrydgard/lighting-loop
Vertex shaders: On platforms with uniform buffers, use indexing and loop over the lights.
2023-01-11 19:28:53 +01:00
Henrik Rydgård
7b62b4626f Comment fixes 2023-01-11 15:29:52 +01:00
Henrik Rydgård
3b46409350 Vertex shaders: On platforms with uniform buffers, use indexing and loop for real over the lights.
Strangely, greatly speeds up pipeline creation on PowerVR.
2023-01-11 15:24:56 +01:00
Henrik Rydgård
350cb55c63
Merge pull request #16778 from hrydgard/remove-tex-flag
Remove the rather redundant DoTexture flag from vshaders.
2023-01-11 15:01:24 +01:00
Henrik Rydgård
d894906a7e Fix formatting of lights uniform buffer (tabs->spaces) 2023-01-11 14:18:14 +01:00
Henrik Rydgård
c4d8ebcad5 D3D11 fix 2023-01-11 14:16:46 +01:00
Henrik Rydgård
3d376b0ab7 Remove the rather redundant DoTexture flag from vshaders.
Slightly reduces the number of unique vertex shaders but doesn't do much
for the pipeline count, as the fragment shader has a tex flag. Still
worth doing for the simplification.
2023-01-11 14:16:46 +01:00
Henrik Rydgård
1b4018d19a Fix shader cache clearing in D3D11 - need to clear the input layout maps too 2023-01-11 14:16:12 +01:00
Henrik Rydgård
eeca797aac
Merge pull request #16785 from hrydgard/scrollview-dragbar
UI: Make vertical scrollbars directly draggable
2023-01-11 12:49:07 +01:00
Henrik Rydgård
69ff11fb40 UI: Make vertical scrollbars directly draggable. 2023-01-11 11:58:51 +01:00
Henrik Rydgård
725f9ad78f
Merge pull request #16784 from hrydgard/ui-refactoring
Break out ScrollView from ViewGroup.h, and PopupScreens from UIScreen.h
2023-01-11 11:13:50 +01:00
Henrik Rydgård
c27689910e Break out ScrollView from ViewGroup.h, and PopupScreens from UIScreen.h 2023-01-11 10:56:31 +01:00
Henrik Rydgård
5c79b930e9
Merge pull request #16783 from unknownbrackets/gl-cleanup
GLES: Remove some unused depth related code
2023-01-11 09:50:39 +01:00
Unknown W. Brackets
4e67194147 GLES: Remove some unused depth related code. 2023-01-11 00:20:11 -08:00
Henrik Rydgård
289206fee0
Merge pull request #16782 from unknownbrackets/gl-shader-del
GLES: Delete LinkedShaders after the program
2023-01-11 09:07:30 +01:00
Unknown W. Brackets
6a23d5b991
Merge pull request #16769 from hrydgard/more-uniform-bits
Uniform dirty-bits: Make room for four more uniforms.
2023-01-10 22:33:59 -08:00
Unknown W. Brackets
5102ef8a31 GLES: Delete LinkedShaders after the program.
The program references the shader, so we have to delete in this order.
Caused problems on useFlag change as well as probably DeviceLost.
2023-01-10 22:13:40 -08:00
Henrik Rydgård
56261af697 Uniform dirty-bits: Make room for four more uniforms. Then we're out and need to merge. 2023-01-11 00:16:17 +01:00
Lubos
6dc264e7e5 OpenXR - Workaround for disfunctional depth buffer allocation 2023-01-10 19:28:02 +01:00
Henrik Rydgård
f57cb5e0d5
Merge pull request #16779 from hrydgard/ui-improvements
UI theme improvements
2023-01-10 16:31:50 +01:00
Henrik Rydgård
a01ac7bad4
Merge pull request #16780 from GABO1423/libretro-goes-brrr
(Libretro) Makefile Tweak
2023-01-10 16:30:34 +01:00
Gabriel Morazán
6c2f830d3b
(Libretro) Makefile Tweak 2023-01-10 11:25:19 -04:00
Henrik Rydgård
9547deb0c6 Simplify away some theme parameters. Make popups look better 2023-01-10 16:00:17 +01:00
Henrik Rydgård
e6380ecf77 Add new "Dark" theme 2023-01-10 15:37:36 +01:00
Henrik Rydgård
ffb8a9be47 Fix another subtle NEON type mismatch.
Fixes #16777
2023-01-10 14:56:30 +01:00
Henrik Rydgård
edaa5246d1
Merge pull request #16771 from hrydgard/more-getpointer-cleanup
Core: A bit more GetPointer cleanup.
2023-01-10 14:36:08 +01:00
Henrik Rydgård
384cd91400
Merge pull request #16309 from sum2012/InterruptManagerForKernel-minror
Add InterruptManagerForKernel
2023-01-10 14:00:09 +01:00
Henrik Rydgård
555a5d45f7
Merge pull request #16773 from hrydgard/texoffs-flag
Remove the FS_TEXTURE_AT_OFFSET fragment shader flag
2023-01-10 13:51:04 +01:00
Henrik Rydgård
559d6706af
Merge pull request #16775 from bslenul/lr-make-clean-fix
[Libretro] Prevent the removal of "huf_decompress_amd64.S" when doing "make clean" on Linux
2023-01-10 13:50:41 +01:00
Henrik Rydgård
088d0c39dc Remove the FS_TEXTURE_AT_OFFSET fragment shader flag 2023-01-10 12:37:21 +01:00
Henrik Rydgård
2f6579ea98
Merge pull request #16770 from hrydgard/color-double-flag
Shader generator: Switch the 2x flag to a uniform
2023-01-10 12:36:46 +01:00
Henrik Rydgård
c7c48abb37 Switch the 2x flag to a uniform 2023-01-10 12:36:28 +01:00
Henrik Rydgård
ee3618290b Typo fix in NEON code.
Fixes #16772
2023-01-10 12:32:33 +01:00
Bobby Smith
7b47eb0fbd [Libretro] Prevent the removal of "huf_decompress_amd64.S" when doing "make clean" on Linux 2023-01-10 12:30:27 +01:00
Henrik Rydgård
e1a48d74c4 A bit more GetPointer cleanup.
Probably not worth it for performance reasons, but some semantic cleanup
is good, especially the accidental GetPointer -> writable casts without
using GetPointerWrite.

Using Unchecked on already checked pointers, or when we'd crash anyway
if it returned nullptr, is good for clarity.
2023-01-10 12:13:47 +01:00
Henrik Rydgård
70e149e3ca
Merge pull request #16720 from hrydgard/remove-input-return-values
Remove return values from Axis and Touch input functions
2023-01-10 11:09:55 +01:00
Henrik Rydgård
bef50f9fdd
Merge pull request #16763 from hrydgard/texalpha-shaderflag
Shader generator: Move FS_TEX_ALPHA to a uniform bool.
2023-01-10 11:09:25 +01:00
Henrik Rydgård
44bcfd3774
Merge pull request #16768 from hrydgard/kernelheap-minor
Add 2 nids of SysMemForKernel (#16308 by sum2012)
2023-01-10 11:09:03 +01:00
Henrik Rydgård
0a6d226ddc Remove the unused bool utilities 2023-01-10 10:25:41 +01:00
Henrik Rydgård
00c44ea799 Get rid of the bool, not worth it. 2023-01-10 10:23:29 +01:00
sum2012
2d8aaaac5e Change to if (!heap) first in all function
As unknown feedback 2
2023-01-10 10:22:59 +01:00
sum2012
57c474cce7 Add 2 nids of SysMemForKernel
Find in #16297

Address unknown feedback 1
2023-01-10 10:18:36 +01:00
Henrik Rydgård
07114c6aaf Remove return value from axis functions in API 2023-01-10 10:12:37 +01:00