Commit Graph

3779 Commits

Author SHA1 Message Date
Marcin Mikołajczyk
e64f038ad6
Give MS priority over LOD in Image opcodes (#4207) 2026-04-07 19:01:37 +03:00
Stephen Miller
d3c25281e9
Add proper function names (#4231)
Found these with the help of @red-prig
2026-04-06 21:15:19 -07:00
Kravickas
13da5a82cc
protect (#4212)
Protection change may override page fault tracking set by the GPU buffer cache. Invalidate so the cache re-uploads and re-tracks.
2026-04-05 19:44:09 +03:00
rainmakerv2
eb429be1cc
FS: easy mods folder for games (#4216)
* Implement mods folder

* Add logging when modified files exist

* get mod folder entries in MntPoints::IterateDirectory

* support eboot from mods folder
2026-04-05 15:56:18 +03:00
Niram7777
304a2c7c78
Vulkan presenter reset CommandBuffer on *_scheduler (#4221)
[Render.Vulkan] <error> (shadPS4:Main) vk_platform.cpp:58 DebugUtilsCallback: VUID-vkDestroyImage-image-01000: vkDestroyImage(): can't be called on VkImage 0x850000000085[Frame image #2] that is currently in use by VkCommandBuffer 0x560ea08752c0[CommandPool: Command Buffer 2].
The Vulkan spec states: All submitted commands that refer to image, either directly or via a VkImageView, must have completed execution (https://docs.vulkan.org/spec/latest/chapters/resources.html#VUID-vkDestroyImage-image-01000)

Finish needed because of:

[Render.Vulkan] <error> (shadPS4:Main) vk_platform.cpp:58 DebugUtilsCallback: VUID-vkEndCommandBuffer-commandBuffer-00059: vkEndCommandBuffer(): Cannot be called for VkCommandBuffer 0x55c62bfbb580[CommandPool: Command Buffer 3] when it is not in a recording state, vkBeginCommandBuffer() must first be called.
The Vulkan spec states: commandBuffer must be in the recording state (https://docs.vulkan.org/spec/latest/chapters/cmdbuffers.html#VUID-vkEndCommandBuffer-commandBuffer-00059)
2026-04-05 07:44:50 +03:00
Niram7777
162cb18d9d
Vulkan destroy presenter members before device (#4222) 2026-04-05 00:47:26 +03:00
Stephen Miller
e24f42b03c
Lib.Sysmodule: Allow libSceSystemGesture LLE (#4223)
* Run libSceSystemGesture LLE

It's fully safe.

* Update sysmodule table appropriately.
2026-04-05 00:35:53 +03:00
kalaposfos13
93733a9ae8
Fix edge case for touch states (#4219) 2026-04-04 15:26:41 -05:00
Niram7777
fb067bc43f
Vulkan device destroy images_view on Swapchain::Destroy (#4218) 2026-04-04 22:30:28 +03:00
Niram7777
b365d5fe78
Vulkan device destroy DescriptorPool on Shutdown (#4217)
Validation Error: [ VUID-vkDestroyDevice-device-05137 ] | MessageID = 0x4872eaa0
vkDestroyDevice(): Object Tracking - For VkDevice 0x55ac6bd22670, VkDescriptorPool 0x300000000030 has not been destroyed.
The Vulkan spec states: All child objects created on device that can be destroyed or freed must have been destroyed or freed prior to destroying device (https://docs.vulkan.org/spec/latest/chapters/devsandqueues.html#VUID-vkDestroyDevice-device-05137)
Objects: 1
    [0] VkDescriptorPool 0x300000000030
2026-04-04 21:57:22 +03:00
Marcin Mikołajczyk
73520ae094
GS fixes (#4213)
* Handle S_BFM_I32 in a copy shader

* GS: set dwords_per_vertex based on the number of buffer loads if different from VERT_ITEMSIZE
2026-04-04 13:02:44 +03:00
rainmakerv2
450472b51f
Update serdes.h (#4214) 2026-04-04 08:38:51 +03:00
Marcin Mikołajczyk
26e2689b06
VOP3P instructions definitions (#4202) 2026-04-02 09:37:18 +03:00
Stephen Miller
deb8c66ffb
Cleaner fix (#4167) 2026-04-01 23:12:04 +03:00
Kravickas
5945c8719b
Implement BUFFER_ATOMIC_FCMPSWAP (#4200)
Implement BUFFER_ATOMIC_FCMPSWAP via descriptor aliasing + bitcast
2026-04-01 12:55:06 +03:00
Ploo
5d489ff03d
posix: implement sysconf() and sigalstack() (#4201)
* posix: implement sysconf() and sigalstack()

Signed-off-by: lizzie <lizzie@eden-emu.dev>

* mark as stubbed

* oh clang format

---------

Signed-off-by: lizzie <lizzie@eden-emu.dev>
Co-authored-by: lizzie <lizzie@eden-emu.dev>
2026-04-01 08:58:54 +03:00
Connor Garey
969955b8a0
Addition of Nix flake development shell (#4184)
* Initial devshell creation.

* cmake has a check for clang and therefore override the stdenv.

* Packages from old shell were renamed.

* fixed xcb-util, added libglvnd

* Added sdl3 dependencies provided by the website given on cmake configuration.

* Lock file.

* Nix format.

* Added instructions for entering nix development shell.

.

* Added libuuid

* Added copyright text to flake.nix

* Added flake.lock to REUSE.toml as is a JSON file without comment support.

* Updated instructions to refer to new build name.

* Compiling however not yet correctly linking with debug derivation.

* Hitting installPhase

* Added nix result symlink.

* correctly installs in place

* Added a wrapper to load vulkan and ligl into environment.

* Ensure that the name is applicable to the current project.

.

* Added mesa to LD_LIBRARY_PATH

* game now launching with added X11 libraries.

* Cleanup

Formatting.

Pulled cmakeFlags to top and added releaseWithDebugInfo

Removed LD_LIBRARY_PATH from devshell.

.

* Added options for the different Nix build modes.

* Debug / release mode flag cannot be bundled into one.
2026-03-30 23:35:57 +03:00
Ploo
a87abee8e3
WIP: port: Add x64 FreeBSD (#3927)
* port: Add x64 FreeBSD

* clang formaa

* fix epoll stuffs

* date-tz for fbsd, force submodule zydis

* fix filesystem hang + date-tz

* fix

* fix freebsd SIGBUS

* madvise() ifdef

* signal fix + camera fix

* proper %gs tls for once

* better tls? + clang format

---------

Co-authored-by: lizzie <lizzie@eden-emu.dev>
2026-03-30 13:44:29 +03:00
rainmakerv2
2334981be8
respect emulator settings home directory for trophies (#4188) 2026-03-29 10:21:21 +03:00
rainmakerv2
1012f84bf9
use cpp file for function (#4187) 2026-03-29 09:58:48 +03:00
kalaposfos13
1018660ad7
Make sure user trophy folder exists before creating files in it (#4186)
* Make sure user trophy folder exists before creating files in it

* ???
2026-03-28 18:34:30 +01:00
rainmakerv2
96411a17cb
Imgui: translations (#4124)
* WIP: imgui translations

* fallback to original strings if tables are incomplete

* reorder things a bit

* construct tables as consts

* Update imgui_translations.h
2026-03-28 18:08:02 +02:00
kalaposfos13
df32a2076b
readd missing line (#4180)
Co-authored-by: dsprogrammingprojects <theneworb5@yahoo.com>
2026-03-27 18:20:26 +02:00
georgemoralis
5b60b73e9a
added new trophies and saves dirs (#4177) 2026-03-27 17:58:54 +02:00
kalaposfos13
8a1500d7ad
Local multiplayer support (#4169)
* multiple controllers v2

* the c language formatter tool

* review comments (the easy ones)

* c++ copy semantics

* correct error return for remotes without the system user id

* update pad handle handling logic

* controller override colour
2026-03-27 06:37:25 -05:00
georgemoralis
e0a86dc8f9
added transfer of sysmodules path and fonts path (#4175) 2026-03-26 22:33:31 +02:00
georgemoralis
31b2d9ccd7
Introducing testing suite using google test (#4170)
* initial tests for testing Setting<T>

* argg

* keep switch off

* added ci

* fix ci

* merging tests to build.yml

* fixing linux ttests/?

* one more try for ci

* more linux fix for ci

* more ci fixes

* try to fix ctests now

* should fix now

* trying fixing linux tests

* some more tests

* more tests (68 tests) and clang format
2026-03-26 00:31:53 +02:00
rainmakerv2
650652db42
Vblank frequency setting fix + utf 8 encoding for paths (#4174)
* vblank frequency setting fix

* force utf-8 encoding upon json serialization/deserialization for path strings
2026-03-26 00:13:43 +02:00
Stephen Miller
3cc56bf84c
More verbose errors for file opening failures (#4173)
* Verbose errors for file opening failures

These can be pretty helpful, and games don't usually spam them outside loading screens.

* oops
2026-03-25 23:43:30 +02:00
Stephen Miller
bb9c223d42
Core: Minor code cleanup (#4166)
* Log filters cleanup

* Clearer dialog options for config update

* Smaller button labels

These don't auto-resize, and I don't want to read SDL's docs for something so small.
2026-03-24 08:40:18 +02:00
georgemoralis
f450405f35
General Misses (0.15.1 WIP part 6) (#4165)
* fixes

* fixed a few more config misses

* missed include
2026-03-23 22:38:05 +02:00
georgemoralis
d0a4718fb9
General Misses (0.15.1 WIP part 5) (#4164)
* more from 0.15.1 WIP branch

* fixup
2026-03-23 13:52:33 +02:00
georgemoralis
edd50ab2d0
more files for syncing with 0.15.1 branch (#4161) 2026-03-22 10:26:23 +02:00
georgemoralis
880445c2ce
Initial camera (Part 3 of 0.15.1 branch) (#4156)
* using new emulator_settings

* the default user is now just player one

* transfer install, addon dirs

* fix load custom config issue

* initial openal backend

* linux fix?

* camera module updated

---------

Co-authored-by: kalaposfos13 <153381648+kalaposfos13@users.noreply.github.com>
2026-03-22 09:08:44 +02:00
georgemoralis
060703f627
Initial Openal (Part 2 of 0.15.1 branch) (#4155)
* using new emulator_settings

* the default user is now just player one

* transfer install, addon dirs

* fix load custom config issue

* initial openal backend

* linux fix?

---------

Co-authored-by: kalaposfos13 <153381648+kalaposfos13@users.noreply.github.com>
2026-03-22 00:27:55 +02:00
georgemoralis
08168dc386
New config mode (part1 of 0.15.1 branch series) (#4145)
* using new emulator_settings

* the default user is now just player one

* transfer install, addon dirs

* fix load custom config issue

---------

Co-authored-by: kalaposfos13 <153381648+kalaposfos13@users.noreply.github.com>
2026-03-21 22:26:36 +02:00
Stephen Miller
0a722d69e6
Only iterate to next VMA if we're past the current VMA. (#4158)
It's possible we're merging with a later memory area. If that occurred here, we would end up iterating past where we need to be, which then messes up logic.
2026-03-21 12:02:17 +02:00
Kravickas
2bb20e4650
waw fix (#4154) 2026-03-20 13:43:41 +02:00
AlpinDale
a858f9c96c
chore: add an RFC issue template (#4150) 2026-03-20 08:47:46 +02:00
Kravickas
980919b07b
Fix FSR crash on content area resize (#4153)
* fsr

* fsr

* fsr
2026-03-20 08:46:22 +02:00
Salman Chishti
0c3fac6ce0
Upgrade GitHub Actions for Node 24 compatibility (#4147)
Signed-off-by: Salman Muin Kayser Chishti <13schishti@gmail.com>
2026-03-19 11:51:45 +02:00
Salman Chishti
16066f4834
Upgrade GitHub Actions to latest versions (#4148)
Signed-off-by: Salman Muin Kayser Chishti <13schishti@gmail.com>
2026-03-19 11:51:32 +02:00
Semahegn
64e10e6f98
sdl_window: Call SDL_SyncWindow after setting fullscreen mode (#4131)
SDL_SetWindowFullscreen is asynchronous on Windows. Without
SDL_SyncWindow, the window may not have finished transitioning
to borderless fullscreen before the Vulkan surface and swapchain
are created, causing borderless mode to silently fail at startup.

This is most visible with Immediate (No VSync) present mode where
the swapchain is created quickly, but the fix is correct for all
present modes.

SDL3 docs state: "On asynchronous windowing systems, this acts as a
synchronization barrier for pending window state." and SDL_SyncWindow
is listed as the recommended follow-up to SDL_SetWindowFullscreen.
https://wiki.libsdl.org/SDL3/SDL_SyncWindow

Fixes #3945
2026-03-19 10:02:03 +02:00
Kravickas
f245cf76a7
waw hotfix (#4146) 2026-03-18 23:52:15 +02:00
Kravickas
78411c4b8a
Write after write sync hazard (#4142)
* WAW barrier

* clang
2026-03-18 23:09:19 +02:00
kalaposfos13
ec1719e4d3
update current firmware version (#4144) 2026-03-18 19:58:00 +02:00
Kravickas
2ca342970a
MIP fixes (#4141)
* int32-modifiers

GCN VOP3 abs/neg modifier bits always operate on the sign bit (bit 31)
regardless of instruction type. For integer operands this means:
	
abs = clear bit 31   (x & 0x7FFFFFFF)
neg = toggle bit 31  (x ^ 0x80000000)

* int64-modifiers

Previously GetSrc64<IR::U64> completely ignored input modifiers
for integer operands. Now unpacks to two U32s, modifies the high
dword's bit 31 (= bit 63 of the 64-bit value), and repacks.

* V_MUL_LEGACY_F32

GCN V_MUL_LEGACY_F32: if either source is zero, result is +0.0
regardless of the other operand (even NaN or Inf). Standard IEEE
multiply produces NaN for 0*Inf. The fix adds a zero-check select
before the multiply.
2026-03-18 10:05:20 +02:00
rosenkolev1
9a3e7b097c
Make thread TidCounter atomic (#4133) 2026-03-18 09:40:37 +02:00
georgemoralis
6e843d0c4b feeling dangerous , let's re-enable lod where supported 2026-03-17 22:18:26 +02:00
baggins183
1bb152d976
IMAGE_STORE_MIP fallback (#4075)
* fallback for IMAGE_STORE_MIP when not natively supported

* Lod should be treated as absolute, independent of sharp's base_level (judging by other implemented instructions)

* fix descriptor set layouts

* dumb error

* force fallback for testing

* treat Lod as relative to base_level

* optimization when lod index is constant
2026-03-17 21:47:19 +02:00