shadPS4/src/shader_recompiler
Stephen Miller 683e5f3b04
Some checks are pending
Build and Release / reuse (push) Waiting to run
Build and Release / clang-format (push) Waiting to run
Build and Release / get-info (push) Waiting to run
Build and Release / windows-sdl (push) Blocked by required conditions
Build and Release / macos-sdl (push) Blocked by required conditions
Build and Release / linux-sdl (push) Blocked by required conditions
Build and Release / linux-sdl-gcc (push) Blocked by required conditions
Build and Release / pre-release (push) Blocked by required conditions
Core: Simulate write-only file access with read-write access (#3360)
* Swap write access mode for read write

Opening with access mode w will erase the opened file. We do not want this.

* Create mode

Opening with write access was previously the only way to create a file through open, so add a separate FileAccessMode that uses the write access mode to create files.

* Update file_system.cpp

Remove a hack added to posix_rename to bypass the file clearing behaviors of FileAccessMode::Write

* Check access mode in read functions

Write-only files cause the EBADF return on the various read functions. Now that we're opening files differently, properly handling this is necessary.

* Separate appends into proper modes

Fixes a potential regression from one of my prior PRs, and ensures the Write | Append flag combo also behaves properly in read-related functions.

* Move IsWriteOnly check after device/socket reads

file->f is only valid for files, so checking this before checking for sockets/devices will cause access violations.

* Fix issues

Now that Write is identical to ReadWrite, internal uses of Write need to be swapped to my new Create mode

* Fix remaining uses of FileAccessMode write to create files

Missed these before.

* Fix rebase

* Add stubbed get_authinfo (#3722)

* mostly stubbed get_authinfo

* Return value observed on console if get_authinfo was called for the current thread, esrch otherwise

---------

Co-authored-by: kalaposfos13 <153381648+kalaposfos13@users.noreply.github.com>
Co-authored-by: georgemoralis <giorgosmrls@gmail.com>
2025-11-04 10:57:26 +02:00
..
backend amdgpu: Split liverpool registers and cleanup (#3707) 2025-10-05 13:42:40 -07:00
frontend Core: Simulate write-only file access with read-write access (#3360) 2025-11-04 10:57:26 +02:00
ir Core: Simulate write-only file access with read-write access (#3360) 2025-11-04 10:57:26 +02:00
info.h amdgpu: Split liverpool registers and cleanup (#3707) 2025-10-05 13:42:40 -07:00
params.h shader_recompiler: Implement render target swizzles when no format is available (#739) 2024-09-03 14:04:30 +03:00
profile.h shader_recompiler: Implement fallback path for missing shaderFloat16 support. (#3604) 2025-09-18 00:43:47 -07:00
recompiler.cpp amdgpu: Split liverpool registers and cleanup (#3707) 2025-10-05 13:42:40 -07:00
recompiler.h Tessellation (#1528) 2024-12-14 12:56:17 +02:00
resource.h amdgpu: Split liverpool registers and cleanup (#3707) 2025-10-05 13:42:40 -07:00
runtime_info.h amdgpu: Split liverpool registers and cleanup (#3707) 2025-10-05 13:42:40 -07:00
specialization.h amdgpu: Split liverpool registers and cleanup (#3707) 2025-10-05 13:42:40 -07:00