Commit graph

32923 commits

Author SHA1 Message Date
Unknown W. Brackets
08d82ec15b riscv: Emit compressed instructions.
Includes automatically using compressed, optionally.
2022-08-27 15:44:19 -07:00
Unknown W. Brackets
946080206d riscv: Improve sign reduce/immediate readability. 2022-08-27 15:44:18 -07:00
Unknown W. Brackets
c807d459f6 riscv: Emit ADD/SUB/etc. for ADDW/SUBW/etc. on R32.
No need to complicate code, we can just write ADDW() and expect it to work
on R32 (if ever motivated to support it.)
2022-08-27 15:44:18 -07:00
Unknown W. Brackets
c81d887a86 riscv: Include an LI helper in the emitter.
Can be used for integers and floats.
2022-08-27 15:44:18 -07:00
Henrik Rydgård
9f4a849453
Merge pull request #15908 from hrydgard/finish-depal-refactor
Finish the depal refactoring.
2022-08-26 19:03:39 +02:00
Henrik Rydgård
7cba231e58 Finish the depal refactoring.
Needed for an upcoming change (since this lets us use the Draw2D
uniform mechanism in depal shaders).
2022-08-26 15:47:29 +02:00
Henrik Rydgård
4390a05fe0 Fix shader compilation error in depth->565 2022-08-26 15:13:32 +02:00
Henrik Rydgård
31bd16a042
Merge pull request #15905 from unknownbrackets/riscv-emitter
Add a RISC-V emitter
2022-08-26 09:41:20 +02:00
Unknown W. Brackets
4a93647acb riscv: Emit CSR manipulation instructions. 2022-08-25 21:20:49 -07:00
Unknown W. Brackets
b5755b6cf7 riscv: Validate FixupBranch usage better.
Also avoid FixupBranch alignment issues.
2022-08-25 21:20:49 -07:00
Unknown W. Brackets
591de6be1d riscv: Emit float instructions. 2022-08-25 21:19:28 -07:00
Unknown W. Brackets
53693072d2 riscv: Emit atomic operations. 2022-08-25 21:19:28 -07:00
Unknown W. Brackets
c66d02d4db riscv: Emit mul/div instructions. 2022-08-25 21:19:28 -07:00
Unknown W. Brackets
00280ab2ad riscv: Emit fence and 64-bit instructions. 2022-08-25 21:19:28 -07:00
Unknown W. Brackets
49ec8a207d riscv: Emit 32-bit 3-op instructions, validate GPR. 2022-08-25 21:19:27 -07:00
Unknown W. Brackets
1c35cfb325 riscv: Emit 32-bit load/store and imm ops. 2022-08-25 21:19:27 -07:00
Unknown W. Brackets
1dab9d1875 riscv: Emit standard B/U/J type ops. 2022-08-25 21:19:27 -07:00
Unknown W. Brackets
9fcad83940 riscv: Add initial emitter shell. 2022-08-25 21:17:11 -07:00
Henrik Rydgård
829baa7c34
Merge pull request #15903 from hrydgard/remove-stride-change
Remove support for framebuffers changing stride (already unreachable).
2022-08-25 19:30:05 +02:00
Henrik Rydgård
e6bb512a39 Remove support for framebuffers changing stride (already unreachable).
Also fixes a compiler warning
2022-08-25 19:07:07 +02:00
Henrik Rydgård
656932397b Revert minimum stride 2022-08-25 18:56:04 +02:00
Henrik Rydgård
60d66c20cd
Merge pull request #15902 from hrydgard/block-refactor
Block transfer code refactor
2022-08-25 17:03:26 +02:00
Henrik Rydgård
90c58ae9bb Add missing terminator to VR settings array. Better logging. 2022-08-25 01:11:36 +02:00
Henrik Rydgård
753062b2a1 More comment fixes, cleanups 2022-08-25 00:52:45 +02:00
Henrik Rydgård
272019f23a Comments 2022-08-25 00:47:19 +02:00
Henrik Rydgård
f79acd651d Comment updates 2022-08-25 00:29:44 +02:00
Henrik Rydgård
bbd92e6345 Merge the two find FindTransferFramebuffer* methods 2022-08-25 00:22:33 +02:00
Henrik Rydgård
9feb61e7fa Additional renaming 2022-08-25 00:19:08 +02:00
Henrik Rydgård
d0713d7fff Rename variables to make the two functions match 2022-08-25 00:17:01 +02:00
Henrik Rydgård
62a834d15e Split up FindTransferFramebuffers 2022-08-25 00:12:31 +02:00
Henrik Rydgård
3ce59ced54
Merge pull request #15900 from hrydgard/stride-gap
Detect framebuffers that live in the "stride gap" of others, fix size
2022-08-24 20:03:35 +02:00
Henrik Rydgård
416d8b403b
Merge pull request #15768 from lvonasek/feature_openxr_6dof
OpenXR - 6DoF support
2022-08-24 18:49:41 +02:00
Henrik Rydgård
04740d069c Tighten the check a bit more 2022-08-24 18:35:42 +02:00
Henrik Rydgård
1feae894d3 Reorder some parameters. Detect buffers in stride gaps. 2022-08-24 18:31:10 +02:00
Henrik Rydgård
d0a3b9886f Remove unused function decl 2022-08-24 18:25:45 +02:00
Henrik Rydgård
853a2df064
Merge pull request #15892 from hrydgard/rework-reinterpret
Reimplement framebuffer reinterpret on the new color copy framework
2022-08-24 18:20:27 +02:00
Henrik Rydgård
67c911d13f Fix smoothed CLUT lookups. Shouldn't go beyond the mask's reach.
Should help #15896
2022-08-24 17:13:36 +02:00
Henrik Rydgård
048a556ada Add floating point version of reinterpret shaders 2022-08-24 14:40:37 +02:00
Henrik Rydgård
99404f0a15 Fix BlueToAlpha together with reinterpret. Add back fake reinterpret for now. 2022-08-24 14:40:37 +02:00
Henrik Rydgård
c6f20bda18 Reimplement texture format reinterpretation 2022-08-24 14:40:37 +02:00
Henrik Rydgård
20bd1c26d5
Merge pull request #15899 from hrydgard/depal-fixes
Fix smoothed depal on GLES. Don't enable filtering if not using.
2022-08-24 14:19:34 +02:00
Henrik Rydgård
b529d26f3a Fix smoothed depal on GLES. Don't enable filtering if not using. 2022-08-24 13:43:41 +02:00
Henrik Rydgård
586da08820
Merge pull request #15895 from unknownbrackets/gpu-minor
GPU: Correct Draw2D::DeviceRestore()
2022-08-24 11:50:42 +02:00
Henrik Rydgård
fd8419e28a
Merge pull request #15897 from hrydgard/many-gl-fixes
Many GL/GLES fixes
2022-08-24 11:47:48 +02:00
Henrik Rydgård
d459eac891 Fix checks for depth texture support, GLES syntax errors 2022-08-24 11:26:07 +02:00
Henrik Rydgård
bd674c47b6 OpenGL: Fix regular depal (shader depal still worked) that broke recently 2022-08-24 11:01:57 +02:00
Henrik Rydgård
ff92d7d4b0 Remove duplicate uniform queries 2022-08-24 10:51:45 +02:00
Henrik Rydgård
8b3ef19450 Fix wrong width/height values being stored in thin3d textures 2022-08-24 10:23:37 +02:00
Henrik Rydgård
eb2f12e64a Drive-by texture slot management cleanup 2022-08-24 10:22:58 +02:00
Henrik Rydgård
58de891f57 OSD: Scale large multiline messages to fit better on screen (like shader logging) 2022-08-24 10:20:33 +02:00