Commit Graph

939 Commits

Author SHA1 Message Date
Samuliak
c6e8b5c933
fix: depth stencil state issues 2024-12-16 14:13:11 +01:00
Exzap
b53b223ba9 Vulkan: Use cache for sampler objects
Some checks failed
Build check / build (push) Has been cancelled
Generate translation template / generate-pot (push) Has been cancelled
2024-12-16 13:05:22 +01:00
Exzap
6aaad1eb83 Debugger: Added right click context menu to disasm view + small fixes 2024-12-16 13:05:22 +01:00
Exzap
adab729f43 UI: Correctly handle unicode paths during save export 2024-12-16 13:05:22 +01:00
Samuliak
d64e0c9b6f
rework gpu selection 2024-12-15 13:18:24 +01:00
Samuliak
ba9a9370fe
make clear message more descriptive 2024-12-14 11:21:35 +01:00
Samuliak
137becb894
do safety checks before clearing 2024-12-14 11:00:42 +01:00
Samuliak
74a1162a17
only set array length for texture view arrays 2024-12-10 16:44:31 +01:00
Samuliak
434ffc9828
clamp texture mip count 2024-12-10 08:11:10 +01:00
Samuliak
ac96a1dd53
output all fragment inputs in the vertex shader 2024-12-08 15:00:48 +01:00
capitalistspz
dd0af0a56f
Linux: Allow connecting Wiimotes via L2CAP (#1353)
Some checks failed
Build check / build (push) Has been cancelled
Generate translation template / generate-pot (push) Has been cancelled
2024-12-07 12:02:40 +01:00
Exzap
934cb54605 Properly check if MLC is writeable 2024-12-07 10:26:17 +01:00
Exzap
356cf0e5e0 Multiple smaller HLE improvements 2024-12-07 10:26:17 +01:00
Exzap
e2d0871ca3 Camera: Set error code in CAMInit
Fixes Hunter's Trophy 2 crashing on boot
2024-12-07 10:26:17 +01:00
neebyA
eca7374567
Set version for macOS bundle (#1431)
Some checks failed
Build check / build (push) Has been cancelled
Generate translation template / generate-pot (push) Has been cancelled
2024-12-02 05:19:15 +01:00
Jeremy Kescher
80a6057512
build: Fix linker failure with glslang 15.0.0 (#1436)
Some checks are pending
Build check / build (push) Waiting to run
Generate translation template / generate-pot (push) Waiting to run
2024-12-02 01:01:22 +01:00
Samuliak
1752126f5c
flush file streamer after each write 2024-12-01 18:57:57 +01:00
capitalistspz
0735237686
Input: Move pairing dialog button and source (#1424)
Some checks are pending
Build check / build (push) Waiting to run
Generate translation template / generate-pot (push) Waiting to run
2024-11-30 23:05:50 +01:00
Samo Z
18bd24b9c7 only set concurrent compilation if Metal 3 is available 2024-11-30 20:00:06 +01:00
Samuliak
05b603d652
fix: incorrect texture read coord type 2024-11-23 18:06:13 +01:00
Samuliak
009dab8a28
remove useless includes 2024-11-23 08:41:00 +01:00
Samuliak
06f43b4e7a
Merge branch 'metal' into metal-state5 2024-11-23 08:40:06 +01:00
Samuliak
14258cdb28
Revert "only set array length for texture view arrays"
This reverts commit d9f857bcc4.
2024-11-23 08:39:50 +01:00
Samuliak
00857b233b
support arbitrary pixel formats for state 5 2024-11-22 20:03:41 +01:00
Samuliak
66ad59db92
implement state 5 through a draw call 2024-11-22 19:44:49 +01:00
capitalistspz
90eb2e01f4
nsyshid/dimensions: add missing return (#1425)
Some checks failed
Build check / build (push) Has been cancelled
Generate translation template / generate-pot (push) Has been cancelled
2024-11-22 13:43:12 +01:00
Exzap
409f12b13a coreinit: Fix calculation of thread total awake time
Some checks are pending
Build check / build (push) Waiting to run
Generate translation template / generate-pot (push) Waiting to run
2024-11-21 20:34:24 +01:00
Exzap
7b513f1744 Latte: Add workaround for infinite loop in Fatal Frame shaders 2024-11-21 20:34:24 +01:00
Exzap
c3e29fb619 Latte: Add support for shader instructions MIN_UINT and MAX_UINT
Seen in the eShop version of Fatal Frame
Also made some warnings less spammy since this game seems to trigger it a lot
2024-11-21 20:34:24 +01:00
Exzap
2065ac5f63 GfxPack: Better logging messages for diagnosing problems in rules.txt 2024-11-21 20:34:24 +01:00
Samuliak
732e3be63d
explicitly make integer constants int 2024-11-20 19:44:04 +01:00
Samuliak
d9f857bcc4
only set array length for texture view arrays 2024-11-20 19:38:53 +01:00
Samuliak
9095035532
only set array length for texture arrays 2024-11-20 19:30:30 +01:00
Samuliak
fda2f40640
fix: output shader issues 2024-11-19 19:55:54 +01:00
SamoZ256
cabf56851e
Merge branch 'main' into metal 2024-11-19 19:23:35 +01:00
Samuliak
7f5040a6e0
don't release autoreleased objects 2024-11-19 19:13:15 +01:00
Samuliak
c5bef60dbb
save pipeline even if compilation failed 2024-11-19 18:27:02 +01:00
Samuliak
b140984264
fix: texture sample gradient errors 2024-11-19 17:48:28 +01:00
Samuliak
b48656850e
limit height to 1 for 1D textures 2024-11-19 16:46:46 +01:00
Samuliak
8a8037377f
rework the command buffer system 2024-11-16 15:28:23 +01:00
goeiecool9999
269d5b9aab
Vulkan: Make scaling shaders compatible + fixes (#1392)
Some checks failed
Build check / build (push) Has been cancelled
Generate translation template / generate-pot (push) Has been cancelled
2024-11-16 10:02:43 +01:00
Samuliak
2890819118
fix: triangle fan index count 2024-11-16 08:57:00 +01:00
Samuliak
a81ee7934e
maximize concurrent shader compilation when loading shader cache 2024-11-15 19:52:22 +01:00
Samuliak
a72136419c
log instead of printf 2024-11-15 17:32:29 +01:00
Samuliak
38cbd3e03a
handle halfZ in the shader decompiler 2024-11-15 17:01:21 +01:00
Samuliak
d732416569
invalidate index buffers when a command buffer finishes 2024-11-14 19:10:36 +01:00
Samuliak
c9b18efc03
don't transform depth to 0...1 2024-11-14 18:48:27 +01:00
Samuliak
5b7a0fa3f6
warn about invalid primitive mode 2024-11-14 17:10:42 +01:00
Exzap
719c631f13 config: Fix receive_untested_updates using the wrong default 2024-11-13 06:29:24 +01:00
Exzap
66658351c1 erreula: Rework implementation and fix bugs
- ErrEula doesn't disappear on its own anymore. The expected behavior is for the game to call Disappear once a button has been selected. This fixes issues where the dialog would softlock in some games
- Modernized code a bit
- Added a subtle fade in/out effect
2024-11-13 06:29:24 +01:00
Exzap
a5717e1b11 FST: Refactoring to fix a read bug + verify all reads
- Fixes a bug where corrupted data would be returned when reading files from unhashed sections with non-block aligned offset or size
- Added hash checks for all reads where possible. This means that FST now can automatically catch corruptions when they are encountered while reading from the volume
2024-11-13 06:29:23 +01:00
Samuliak
6ea6ad37d6
use verticesPerInstance for rect vertex shaders 2024-11-11 17:40:58 +01:00
Samuliak
a1b9164831
don't mask ps inputs with 0x7F 2024-11-11 17:33:12 +01:00
Samuliak
4b58ac1a1e
check if verticesPerInstance uniform is used 2024-11-11 17:21:16 +01:00
Samuliak
326d3442cd
cleanup the buffer allocator 2024-11-11 15:45:13 +01:00
Joshua de Reeper
ca2e0a7c31
nsyshid: Add support for emulated Dimensions Toypad (#1371)
Some checks failed
Build check / build (push) Has been cancelled
Generate translation template / generate-pot (push) Has been cancelled
2024-11-11 08:58:01 +01:00
Samuliak
a52095b40a
sync between command buffers 2024-11-10 20:09:24 +01:00
Samuliak
ed32feb3d9
rint texture slice & explicitly specify texture lod 2024-11-10 15:18:45 +01:00
Samuliak
97be576cd6
cast texture slice to uint 2024-11-10 07:57:22 +01:00
Samuliak
02c36d9125
add: blit todo notice 2024-11-09 08:04:17 +01:00
Samuliak
f1db7d5ab9
don't log texture allocation warnings 2024-11-09 07:25:20 +01:00
capitalistspz
2e829479d9
nsyshid/libusb: correct error message formatting and print error string on open fail (#1407)
Some checks failed
Build check / build (push) Has been cancelled
Generate translation template / generate-pot (push) Has been cancelled
2024-11-09 06:22:13 +01:00
capitalistspz
4ac1ab162a
procui: swap tickDelay and priority args in callbacks (#1408) 2024-11-09 06:21:06 +01:00
Samuliak
6897abd59b
fix: a typo in the attribute decoder 2024-11-08 17:27:50 +01:00
Samuliak
f26495707e
implement screenshots 2024-11-08 16:58:29 +01:00
Samuliak
2c9f627f72
remove MetalLogging log type 2024-11-08 08:33:39 +01:00
Samuliak
763e50c7b8
Merge branch 'main' into metal 2024-11-07 20:26:59 +01:00
SamoZ256
813f9148b1
macOS: Fix absolute path to libusb dylib (#1405)
Some checks failed
Build check / build (push) Has been cancelled
Generate translation template / generate-pot (push) Has been cancelled
2024-11-07 07:09:35 +01:00
Samuliak
798da38c26
Merge branch 'main' into metal 2024-11-06 15:43:08 +01:00
SamoZ256
9941e00b54
macOS: Fix libusb path for bundle (#1403)
Some checks failed
Build check / build (push) Has been cancelled
Generate translation template / generate-pot (push) Has been cancelled
2024-11-05 22:22:00 +01:00
Samuliak
fc1580f31f
remove outdated todo notices 2024-11-05 18:07:03 +01:00
Samuliak
c46c8214f5
refactor command buffers 2024-11-05 17:57:20 +01:00
Samuliak
552c4901b9
implement occlusion query flush 2024-11-05 17:42:02 +01:00
Samuliak
ea0a30b564
handle special state 8 and 5 2024-11-05 17:13:34 +01:00
Samuliak
07c62d5f95
release texture upload buffer 2024-11-05 17:06:08 +01:00
Samuliak
27902009c6
separate metal shader cache 2024-11-04 19:03:59 +01:00
Samuliak
2e93b08b39
rename buffer cache type to buffer cache mode 2024-11-04 16:10:37 +01:00
Samuliak
a00d409ab7
improve host and device shared buffer cache modes 2024-11-04 16:03:34 +01:00
Samuliak
fbea328b9b
correctly report memory usage for host buffer cache 2024-11-03 16:58:32 +01:00
Samuliak
e00d244e0d
remove unused code 2024-11-03 16:45:13 +01:00
Samuliak
31c10bd288
move fast math option to game profile 2024-11-03 16:35:47 +01:00
Samuliak
b38ca6a58a
add an option to choose buffer cache type 2024-11-03 12:43:35 +01:00
Samuliak
03d4e86b61
add an option to use the host memory instead of buffer cache 2024-11-03 12:09:47 +01:00
Samuliak
ab41de4f9f
use host memory instead of buffer cache when possible 2024-11-03 11:53:16 +01:00
Exzap
1c49a8a1ba nn_nfp: Implement GetNfpReadOnlyInfo and fix deactivate event
Some checks failed
Build check / build (push) Has been cancelled
Generate translation template / generate-pot (push) Has been cancelled
Fixes Amiibos not being detected in MK8
2024-11-01 22:47:19 +01:00
SamoZ256
ed48fbfd55
Merge branch 'main' into metal 2024-11-01 15:56:10 +01:00
Samuliak
61de5a3d3a
only log todo for vulkan output shader 2024-11-01 15:51:44 +01:00
Samuliak
6eb46ed6eb
remove 'Vulkan' from cache loading message 2024-11-01 15:46:49 +01:00
Samuliak
927c52e268
implement calculate texture lod 2024-11-01 15:30:15 +01:00
Samuliak
7eb8508db4
fix: CI when metal is disabled 2024-10-31 17:13:22 +01:00
capitalistspz
47001ad233
Make MEMPTR<T> a little more T*-like (#1385)
Some checks failed
Build check / build (push) Has been cancelled
Generate translation template / generate-pot (push) Has been cancelled
2024-10-30 23:10:32 +01:00
Samuliak
e7ac19979d
make occlusion queries accumulate with draws 2024-10-30 09:20:50 +01:00
Samuliak
00256e5589
only set blend color when changed 2024-10-29 17:43:29 +01:00
Samuliak
85db0dc468
cache all pipelines 2024-10-29 07:44:47 +01:00
Samuliak
7906733bfa
don't compile certain pipelines async 2024-10-28 19:02:44 +01:00
Samuliak
4e3f94e870
compile pipelines async 2024-10-28 17:32:43 +01:00
Samuliak
bca32c43d0
refactor the way pipelines are stored 2024-10-28 16:38:17 +01:00
Samuliak
665eb23e4a
fix: incorrect pipeline compilation time report 2024-10-28 16:11:47 +01:00
goeiecool9999
459fd5d9bb
input: Fix crash when closing add controller dialog before search completes (#1386)
Some checks failed
Build check / build (push) Has been cancelled
Generate translation template / generate-pot (push) Has been cancelled
2024-10-28 09:37:30 +01:00
capitalistspz
63e1289bb5
Windows: Save icons to Cemu user data directory (#1390)
Some checks failed
Build check / build (push) Has been cancelled
Generate translation template / generate-pot (push) Has been cancelled
2024-10-25 18:48:21 +02:00
Samuliak
b8021b642d
fix: incorrect texture usages 2024-10-24 18:15:19 +02:00
Samuliak
1750715791
retrieve ps input table without using global variable 2024-10-19 15:32:45 +02:00
Samuliak
295a6ed9fd
only add pipeline to cache if compilation was attempted 2024-10-19 09:39:55 +02:00
Samuliak
15eb6bb37f
fix: pipeline cache with mesh shaders 2024-10-19 09:29:14 +02:00
goeiecool9999
f9a4b2dbb1
input: Add option to make show screen button a toggle (#1383)
Some checks failed
Build check / build (push) Has been cancelled
Generate translation template / generate-pot (push) Has been cancelled
2024-10-19 01:56:56 +02:00
goeiecool9999
d6575455ee Linux: Fix crash on invalid command-line arguments
Some checks are pending
Build check / build (push) Waiting to run
Generate translation template / generate-pot (push) Waiting to run
use std::cout instead of wxMessageBox which does not work when wxWidgets has not been initialised yet
2024-10-17 22:24:20 +02:00
Samuliak
8f2385a690
use lcr instead of contextNew 2024-10-16 19:20:25 +02:00
Samuliak
7d9194a738
don't overshadow error 2024-10-15 20:24:04 +02:00
Samuliak
4dcb858ab8
check if pipeline is eligible for serializing 2024-10-15 20:03:26 +02:00
Samuliak
cbde7f983c
force compile shaders if needed 2024-10-15 19:48:32 +02:00
Samuliak
d1c69e9945
set shader just before compiling 2024-10-15 19:19:16 +02:00
Samuliak
79f5586c6c
report pipeline compilation count 2024-10-15 18:32:12 +02:00
Samuliak
944cc8be7d
store loaded pipelines 2024-10-15 17:47:47 +02:00
Samuliak
cd21d957b3
refactor fbos 2024-10-15 17:15:46 +02:00
Samuliak
6b47d4f61e
implement pipeline cache serializing 2024-10-15 07:48:59 +02:00
Samuliak
e9e510d2cd
add: base for pipeline caching 2024-10-14 20:00:37 +02:00
goeiecool9999
3acd0c4f2c
Vulkan: Protect against uniform var ringbuffer overflow (#1378)
Some checks failed
Build check / build (push) Has been cancelled
Generate translation template / generate-pot (push) Has been cancelled
2024-10-14 14:03:36 +02:00
Samuliak
8b783e63dc
refactor pipeline cache 2024-10-13 09:20:45 +02:00
Samuliak
641ef71cab
count compiled shaders properly 2024-10-10 19:38:14 +02:00
Samuliak
03bc647e1c
prepone compilation for rect geometry shaders 2024-10-10 18:53:22 +02:00
Samuliak
bdfac965e0
implement async shader compilation 2024-10-10 18:26:14 +02:00
Samuliak
756470f1a7
remove CMake hacks 2024-10-09 16:47:15 +02:00
Alexandre Bouvier
6dc73f5d79
Add support for fmt 11 (#1366)
Some checks failed
Build check / build (push) Has been cancelled
Generate translation template / generate-pot (push) Has been cancelled
2024-10-03 08:48:25 +02:00
Samuliak
6b784ad949 log relevant settings 2024-10-02 17:28:50 +02:00
Samuliak
ebcb62a785 add: an option to turn fast math off 2024-10-02 17:18:20 +02:00
Samuliak
6ba6157bae properly implement ABGR4 decoder 2024-10-01 19:37:11 +02:00
Samuliak
2fb4d83a5f don't set verticesPerInstance twice 2024-10-01 19:07:19 +02:00
Samuliak
50175fce66 report manual vertex fetch draws per frame 2024-10-01 18:18:39 +02:00
Samuliak
f2096deddd remove vertex restriding code 2024-10-01 18:11:05 +02:00
Samuliak
94e8ed5a46 fetch vertices manually if needed 2024-10-01 17:38:14 +02:00
Samuliak
a3bfde80b0 remove old present pipelines 2024-09-30 19:59:30 +02:00
Samuliak
5d01c77efc rename hybrid pipeline to void vertex pipeline 2024-09-30 19:43:53 +02:00
Samuliak
c65123bbbe use logging instead of printing 2024-09-30 19:36:13 +02:00
Samuliak
778037f335 remove useless print statement 2024-09-30 19:28:09 +02:00
Samuliak
07cb8b800a set output shader uniforms 2024-09-30 16:39:26 +02:00
Samuliak
28e553eb1a cache output shaders 2024-09-30 16:28:07 +02:00
Samuliak
b088ddcfab implement output shaders 2024-09-30 14:18:00 +02:00
Samuliak
6c8cd5c445 use private storage mode when possible 2024-09-30 13:31:28 +02:00
Samo Z
8c30bc805c use RG8Unorm format if ABGR4Unorm is not available 2024-09-28 17:42:27 +02:00
Samo Z
810168be48 use alternative texture decoders for unsupported formats 2024-09-28 15:24:10 +02:00
Samuliak
f9e71e9eb2 implement ABGR4 texture decoders 2024-09-28 12:53:34 +02:00
Samuliak
ed5f72a1ca include texture decoder in pixel format info 2024-09-28 12:06:49 +02:00
Samuliak
3de2b0325b only enable metal on apple platforms by default 2024-09-28 11:51:50 +02:00
Samuliak
3cf831d46a do vertex restride on the GPU & don't over-sync 2024-09-23 16:47:22 +02:00
Samuliak
8b68df0c59 use correct texture decoders 2024-09-22 08:58:24 +02:00
Samuliak
4b548f9482 never disable accurate barriers for certain shaders 2024-09-21 14:58:31 +02:00
Samuliak
7ad57f5cc8 add the option to disable accurate barriers 2024-09-21 14:02:30 +02:00
Samuliak
a460a5d28a do vertex restride on the CPU 2024-09-21 09:28:46 +02:00
Samuliak
f03c0a2769 only set buffer offset if needed 2024-09-19 10:05:48 +02:00
capitalistspz
8508c62540
Various smaller code improvements (#1343) 2024-09-17 02:00:26 +02:00