psucien
10181aff41
shader_recompiler: fix for pattern detection in TryDisableAnisoLod0
...
Also fix for forgotten log message params.
2024-08-26 23:49:36 +02:00
psucien
0e360b06f4
libraries: kernel: skip for protection op; processing logic fixes ( #602 )
2024-08-26 23:14:22 +02:00
Exhigh
e5c4c5a628
savedata: Handle another missed case in saveDataMount
...
This should potentially fix (CUSA01019) - The Walking Dead: The Complete First Season.
2024-08-26 19:34:35 +04:00
Plínio Larrubia
34bd2492a1
fix typo in LOG_INFO ( #559 )
...
fix: file name typo constant_propogation_pass.cpp
fix typo from 'symbol_vitrual_addr' variable
fix typo in emit_spirv_context_get_set.cpp
fix typo from constant_propagation_pass.cpp in CMakeLists
fix typo in these some config.cpp functions
- setSliderPosition
- setSliderPositionGrid
- getSliderPosition
- getSliderPositionGrid
fix typo inside src\core\aerolib\stubs.cpp
fix typo in a comment from src\core\file_format\pkg.cpp
fix typo inside src\core\file_sys\fs.cpp + fs.h
- NeedsCaseInsensiveSearch -> NeedsCaseInsensitiveSearch
fix 2 function typos: sceAppContentAddcontEnqueueDownloadByEntitlemetId and sceAppContentAddcontMountByEntitlemetId
fix typo on comment inside src\core\libraries\kernel\file_system.cpp
fix typo on src\core\libraries\videoout\driver.cpp
fix typo in src\core\memory.cpp
fix typo from comment in src\qt_gui\game_list_utils.h
fix typo in src\video_core\amdgpu\liverpool.h
- window_offset_disble to window_offset_disable
fix typo from comments in src\video_core\host_shaders\detile_m32x1.comp + detile_m32x2.comp
- subotimal -> suboptimal
fix typo from comment in src\video_core\renderer_vulkan\renderer_vulkan.cpp
- dimentions -> dimensions
fix typo from enum in src\common\debug.h and other files
- MarkersPallete -> MarkersPalette
fix last typo in src\video_core\amdgpu\pm4_opcodes.h
- PremableCntl -> PreambleCntl
2024-08-26 15:22:11 +03:00
georgemoralis
4f374d7200
Merge pull request #593 from shadps4-emu/fix/better_timings
...
libraries: kernel: fix for inaccurate `sceKernelGetProcessTime`
2024-08-26 10:56:54 +03:00
psucien
8f50127a7e
libraries: kernel: fix for inaccurate sceKernelGetProcessTime
2024-08-26 08:54:38 +02:00
Daniel R.
3057d7bd77
core/kernel: Miscellaneous memory fixes ( #557 )
...
* core/libraries/kernel: Fix inaccurate direct memory size
* core/memory: Fix available dmem query on non-free dmem areas
* core/kernel: return ENOMEM if memory area size is zero
* core/kernel: Fix returns on `sceKernelAvailableDirectMemorySize`
* core/memory: Remove unneeded size alignment
2024-08-26 04:14:21 +03:00
psucien
69b305bb40
GnmDriver: Clear context support ( #567 )
...
* gnmdriver: added support for gpu context reset
* shader_recompiler: minor validation fixes
* shader_recompiler: added `V_CMPX_GT_I32`
* shader_recompiler: fix for crash on inline sampler access
* compilation warnings and dead code elimination
* amdgpu: fix for registers addressing
* libraries: videoout: reduce logging pressure
* shader_recompiler: fix for devergence scope detection
2024-08-25 23:01:05 +03:00
TheTurtle
b52741b714
video_core: Bloodborne stabilization pt1 ( #543 )
...
* shader_recompiler: Writelane elimination pass + null image fix
* spirv: Implement image derivatives
* texture_cache: Reduce page bit size
* clang format
* slot_vector: Back to debug assert
* vk_graphics_pipeline: Handle null tsharp
* spirv: Revert some change
* vk_instance: Support primitive restart on list topology
* page_manager: Adjust windows exception handler
* clang format
* Remove subres tracking
* Will be done separately
2024-08-24 22:51:47 +03:00
georgemoralis
49ae6df871
Merge pull request #560 from vladmikhalin/avplayer-and-texture-cache-fixes
...
Fixed video dimensions alignment and image cache
2024-08-24 17:24:36 +03:00
georgemoralis
3188a2dc11
Merge pull request #558 from Exhigh/savedata-fix-2
...
savedata: Add another missing case to saveDataMount
2024-08-24 17:14:10 +03:00
Vladislav Mikhalin
f4d2f703e8
Fixed video dimensions alignment and image cache
2024-08-24 16:59:30 +03:00
Exhigh
2ddda99801
savedata: Add another missing case to saveDataMount
...
This helps Five Nights at Freddy's: Sister Location (CUSA17983) boot and is playable.
Fixes issue #554
2024-08-24 17:48:39 +04:00
Herman Semenov
5b8e1f1681
core,shader_recompiler: align structures for 64-bit platforms ( #447 )
...
Decreased sizes:
* TextureDefinition 32 bytes -> 24 bytes
* PortOut 72 bytes -> 64 bytes
* Request 48 bytes -> 40 bytes
* WindowSystemInfo 32 bytes -> 24 bytes
2024-08-24 16:18:12 +03:00
Exhigh
17e70d91e4
savedata: Handle missed case in saveDataMount
...
This should help P5D get past the intro.
P.S: The game requires Fiber and USBD modules to boot.
2024-08-23 16:27:03 +04:00
georgemoralis
901581d792
Merge pull request #502 from Borchev/ROMappedFileWorkaround
...
Workaround for readonly memory mapping of files issue
2024-08-22 13:49:19 +03:00
georgemoralis
9f3aaee098
LLE libc removal
2024-08-22 11:24:31 +03:00
Herman Semenov
c0e207424a
Added const reference params if possible, removed less 16 size
2024-08-22 02:56:01 +03:00
Vladislav Mikhalin
3a46ff5a70
Misc fixes ( #517 )
...
* Misc fixes
* Removed the skip for draw calls without RTs
* Remove Srgb image stores to rework later
2024-08-21 23:54:23 +03:00
georgemoralis
ce4737859e
Merge pull request #511 from dima-xd/sample
...
avplayer: Fix data returned by sceAvPlayerGetAudioData
2024-08-21 16:53:01 +03:00
Dzmitry Dubrova
72c9b0468b
avplayer: Fix sceAvPlayerGetAudioData
2024-08-21 14:37:34 +03:00
Borchev
69f5bd84b6
Fix unmapping bug
2024-08-20 20:07:32 -07:00
Borchev
54ac677e1d
Workaround for readonly memory mapping of files issue
2024-08-20 16:10:38 -07:00
TheTurtle
e088f0141b
vk_pipeline_cache: Avoid recompiling new shaders on each new PL ( #480 )
...
* cfg: Add one more divergence case
* Seen in RDR shaders
* renderer_vulkan: Reduce number of compiled shaders
* vk_pipeline_cache: Remove some unnecessary checks
2024-08-21 02:00:24 +03:00
Lizardy
ace814f4f2
rtc errors ( #485 )
...
* rtc errors
* add system libs to cmakelists
* this.[func]
* fix errors
* declaration
* log handle addr
* missed
---------
Co-authored-by: microsoftv <6063922+microsoftv@users.noreply.github.com>
2024-08-21 00:47:17 +03:00
georgemoralis
7fe7465adb
Merge pull request #475 from bax-cz/main
...
PlayGo: basic implementation, credits to red-prig
2024-08-20 11:43:37 +03:00
bax-cz
8b14fcc7c1
linux build fix
2024-08-20 09:28:07 +02:00
bax-cz
0cf7f5096b
clang: fixed formatting
2024-08-19 20:40:23 +02:00
Dzmitry Dubrova
f634753f7b
Add messages to asserts ( #476 )
2024-08-19 15:29:13 +03:00
bax-cz
32996556a5
PlayGo: basic implementation, credits to red-prig
2024-08-19 13:14:14 +02:00
Lizardy
f197e05379
[WIP] libSceNgs2 ( #439 )
...
* init ngs2
* clang
* ngs2 HLE for missing LLE
* clang
* clang
* orbis ngs2 error codes
* resolve, error codes, ngs2_impl
* clang
* clang
* mac atomic
* clang
* mac
* clang
---------
Co-authored-by: microsoftv <6063922+microsoftv@users.noreply.github.com>
2024-08-19 10:03:05 +03:00
georgemoralis
c77f6413c1
Merge pull request #456 from StevenMiller123/sem_fix
...
Improve posix_sem functions
2024-08-17 10:57:19 +03:00
Stephen Miller
2cfc6f48e5
clang-format fix
2024-08-16 17:22:06 -05:00
Stephen Miller
07e9273a70
Add SetPosixErrno function
...
I used a switch statement for future proofing, as some codes differ between Windows, Mac, Linux, or Orbis. Right now I've only added the codes that should be possible to encounter.
2024-08-16 17:20:21 -05:00
Stephen Miller
6945be1081
Might fix clang-format?
2024-08-16 15:10:20 -05:00
Stephen Miller
97138cc2ea
another clang-format fix
2024-08-16 15:07:19 -05:00
Stephen Miller
7c1cb036d4
clang-format fix
2024-08-16 14:55:55 -05:00
Stephen Miller
26ef12d1c7
Improve posix_sem functions
...
Use ErrSceToPosix to update g_posix_errno appropriately after sem function calls.
2024-08-16 14:33:48 -05:00
Dzmitry Dubrova
3813207000
misc changes, part ?/? ( #441 )
...
* gui: add option to boot a game by choosing elf file
* core: some small implementations
* fs: implement open func
* add some validations
* spirv: add image format
* video_core: add eR16Uint to formats
2024-08-16 20:16:15 +03:00
Dzmitry Dubrova
f718c50db7
core: Some small pad stubs ( #424 )
...
* core: Some small pad stubs
* core: handle scePadSetLightBar wrong lightbar setting
2024-08-16 20:11:55 +03:00
TheTurtle
3b1e3b0a72
control_flow_graph: Initial divergence handling ( #434 )
...
* control_flow_graph: Initial divergence handling
* cfg: Handle additional case
* spirv: Handle tgid enable bits
* clang format
* spirv: Use proper format
* translator: Add more instructions
2024-08-16 20:05:37 +03:00
Herman Semenov
17f249eec9
core,shader_recompiler: added const ref filesystem::path and removed if type size less 16 ( #446 )
2024-08-16 11:36:05 +03:00
Vladislav Mikhalin
099e735a97
last minute fixes
2024-08-16 10:30:48 +03:00
Vladislav Mikhalin
5184161b79
Fixed threading, migrated to CVs, added looping
2024-08-15 22:02:04 +03:00
Vladislav Mikhalin
8b23ec3885
fixing build on linux and mac
2024-08-15 22:00:51 +03:00
Vladislav Mikhalin
56cb7727f5
Fixed some sound and threading issues.
...
Details:
* Switched SDL audio mutex to RW lock. This fixes games that continiously call SetVolume in a different thread (like Ghostbusters)
* Added contition to buffer audio packets independent of video packets. This fixes choppy audio across many games.
* Increased the number of audio frame buffers from 2 to 4. Just in case.
* Migrated to std::jthread and std::mutex from pthreads.
* Fixed a race condition with joins on avplayer close that caused a crash.
2024-08-15 22:00:51 +03:00
Vladislav Mikhalin
3325169927
Added some logs, fixed some crashes, fixed align.
2024-08-15 22:00:51 +03:00
Vladislav Mikhalin
b2146acda5
avplayer WIP
2024-08-15 22:00:51 +03:00
psucien
d9d67c85ec
libraries: vide_out: redundant assert removed
2024-08-15 17:41:53 +02:00
¥IGA
ec805713a4
Ability to change username ( #432 )
2024-08-15 12:33:10 +03:00
Dzmitry Dubrova
b87f269282
core: misc changes ( #430 )
...
* core: misc changes
* video_core: add some formats for detiling
* clang format
2024-08-14 20:37:05 +02:00
Stephen Miller
a2d0819c02
scePthreadAttrSetstack implementation ( #391 )
...
* scePthreadAttrSetstack implementation
Used by Final Fantasy XV
* Address Comments
Verify parameters before calling the pthread_attr_setstack function.
Swap uses of SCE prefix with ORBIS prefix.
* Quick fix
Addresses the newest review and appears to fix issues caused in games by my previous commit.
2024-08-14 18:43:00 +02:00
Daniel R.
13403a32e5
core/memory: Fix error on virtual queries of reserved regions
2024-08-14 15:34:17 +02:00
psucien
718200faad
video_core: CPU flip relay ( #415 )
...
* video_core: cpu flip is propagated via gpu thread now
* tentative fix for cpu flips racing
* libraries: videoout: better flip status handling
2024-08-14 11:36:11 +02:00
TheTurtle
705d1e29cf
video_core: Various fixes ( #423 )
...
* video_core: Various fixes
* clang format
2024-08-13 20:05:10 +03:00
counter185
462da01350
Basic gamepad support through SDL ( #407 )
...
* Add basic gamepad support through SDL
* lightbar, vibration, code style changes
* okay fine
* one day clang format will finally pass
2024-08-13 12:54:08 +03:00
TheTurtle
c243ef0c58
video_core: Crucial buffer cache fixes + proper GPU clears ( #414 )
...
* translator: Use templates for stronger type guarantees
* spirv: Define buffer offsets upfront
* Saves a lot of shader instructions
* buffer_cache: Use dynamic vertex input when available
* Fixes issues when games like dark souls rebind vertex buffers with different stride
* externals: Update boost
* spirv: Use runtime array for ssbos
* ssbos can be large and typically their size will vary, especially in generic copy/clear cs shaders
* fs: Lock when doing case insensitive search
* Dark Souls does fs lookups from different threads
* texture_cache: More precise invalidation from compute
* Fixes unrelated render targets being cleared
* texture_cache: Use hashes for protect gpu modified images from reupload
* translator: Treat V_CNDMASK as float
* Sometimes it can have input modifiers. Worst this will cause is some extra calls to uintBitsToFloat and opposite. But most often this is used as float anyway
* translator: Small optimization for V_SAD_U32
* Fix review
* clang format
2024-08-13 09:21:48 +03:00
Lizardy
68d6cf387f
thread_management.cpp: Various Mandatory Threading Fixes | Resolve #398 ( #394 )
...
* Handle empty mutex attribute
- scePthreadMutexInit did not return default when the mutex attributes were empty, now it does
* fix conditional unsafety
* Update thread_management.cpp
fix deref
* accurate heap api
- modified HeapAPI to a struct with preset function fields
- utilized the full array parameter passed to _sceKernelRtldSetApplicationHeapAPI
* fallback to std malloc
* clang format
* Declare all HeapAPI replacement functions
- calloc, realloc, memalign, reallocalign, malloc_stats, malloc_stats_fast, malloc_usable_size
- posix_memalign corrected parameters
* resolve suggestions
- `using` definition replacement for AppHeapAPI
- linux uses heap_malloc, windows uses std::malloc
---------
Co-authored-by: microsoftv <6063922+microsoftv@users.noreply.github.com>
2024-08-13 09:08:03 +03:00
Borchev
aa29582046
Add partial unmap support ( #322 )
...
* Add partial unmap support
* undo accidental whitespace removal
* Fix assertions
* Adjust Reserve and Free functions for partial unmapping
2024-08-13 09:05:30 +03:00
psucien
29b76d8a2b
Build stabilization ( #413 )
...
* shader_recompiler: fix for float convert and debug asserts
* libraries: kernel: correct return code on invalid semaphore
* amdgpu: additional case for cb extents retrieval heuristic
* removed redundant check in assert
* amdgpu: fix for linear tiling mode detection fin color buffers
* texture_cache: fix for unexpected scheduler flushes by detiler
* renderer_vulkan: missing depth barrier
* texture_cache: missed slices in rt view; + detiler format
2024-08-12 17:23:01 +03:00
psucien
7da029808f
Gnmdriver: More functions ( #410 )
...
* libraries: gnmdriver: added `sceGnmGetGpuCoreClockFrequency`
* libraries: gnmdriver: `sceGnmSetVgtControl` added
* amdgpu: gpuclock64 in write eop packet
2024-08-12 13:29:57 +02:00
georgemoralis
49197d5de1
added a fix for audio (seems that some games calls sceAudioOutInit twice) Thanks Roamic for tracing this!
2024-08-11 13:16:50 +03:00
georgemoralis
372a69a09b
added setting for change language
...
(reference to https://github.com/shadps4-emu/shadPS4/wiki/PS4-Modules#supported-languages for values)
2024-08-09 11:58:42 +03:00
georgemoralis
14f7b98938
small playgo adjustments
2024-08-09 00:02:26 +03:00
georgemoralis
489ac6b124
some pad fixes (fixing metal slug 3 and risk of rain)
2024-08-09 00:02:25 +03:00
georgemoralis
ce2bb99faa
added missing NIDs in thread management
2024-08-09 00:02:25 +03:00
georgemoralis
b207d78258
fixed to scePadGetControllerInformation , (fixes CUSA04892 - power rangers multi user issue)
2024-08-09 00:02:25 +03:00
Stephen Miller
b31e7515b3
Kernel-Related Fixes ( #386 )
...
* Fix OrbisKernelBatchMapEntry struct
UE4 games and GTA V cause the BatchMap offset to overflow on Windows. Changing the type fixes this, and doesn't seem to cause any regressions on Windows or Linux.
* Implement posix_sem_trywait
Grand Theft Auto V needs this.
* Add missing scePthreadAttrGetdetachstate NID
Noticed this missing NID while testing games.
2024-08-08 23:42:51 +03:00
TheTurtle
8809e1c226
video_core: Implement guest buffer manager ( #373 )
...
* video_core: Introduce buffer cache
* video_core: Use multi level page table for caches
* renderer_vulkan: Remove unused stream buffer
* fix build
* oops forgot optimize off
2024-08-08 15:02:10 +03:00
TheTurtle
e91da052c3
video_core: Minor fixes ( #366 )
...
* data_share: Fix DS instruction
* vk_graphics_pipeline: Fix unnecessary invalidate
* spirv: Remove subgroup id
* vector_alu: Simplify mbcnt pattern
* shader_recompiler: More instructions
* clang format
* kernel: Fix cond memory leak and reduce spam
* liverpool: Print error on exception
* build fix
2024-08-05 13:45:28 +03:00
georgemoralis
283e7c16f5
Merge pull request #346 from shadps4-emu/savedata_1
...
SaveData Fixes
2024-07-31 17:34:44 +03:00
Dzmitry Dubrova
479e6a20dd
core: Implement sceRandomGetRandomNumber ( #350 )
2024-07-31 14:01:22 +03:00
raziel1000
fb2b7e7bec
Kernel: added sceKernelConvertLocaltimeToUtc
2024-07-31 00:21:23 -06:00
raziel1000
bd36897084
- Implemented sceSaveDataSetParam and sceSaveDataGetParam
...
- Fixed sceSaveDataDirNameSearch
2024-07-30 22:55:58 -06:00
TheTurtle
bfc845324c
shader_recompiler: Small instruction parsing refactor/bugfixes ( #340 )
...
* translator: Implemtn f32 to f16 convert
* shader_recompiler: Add bit instructions
* shader_recompiler: More data share instructions
* shader_recompiler: Remove exec contexts, fix S_MOV_B64
* shader_recompiler: Split instruction parsing into categories
* shader_recompiler: Better BFS search
* shader_recompiler: Constant propagation pass for cmp_class_f32
* shader_recompiler: Partial readfirstlane implementation
* shader_recompiler: Stub readlane/writelane only for non-compute
* hack: Fix swizzle on RDR
* Will properly fix this when merging this
* clang format
* address_space: Bump user area size to full
* shader_recompiler: V_INTERP_MOV_F32
* Should work the same as spirv will emit flat decoration on demand
* kernel: Add MAP_OP_MAP_FLEXIBLE
* image_view: Attempt to apply storage swizzle on format
* vk_scheduler: Barrier attachments on renderpass end
* clang format
* liverpool: cs state backup
* shader_recompiler: More instructions and formats
* vector_alu: Proper V_MBCNT_U32_B32
* shader_recompiler: Port some dark souls things
* file_system: Implement sceKernelRename
* more formats
* clang format
* resource_tracking_pass: Back to assert
* translate: Tracedata
* kernel: Remove tracy lock
* Solves random crashes in Dark Souls
* code: Review comments
2024-07-30 23:32:40 +02:00
georgemoralis
156e500d21
Merge pull request #343 from Borchev/AddPthreadGetStackSizeThunk
...
Add pthread_attr_getstacksize thunk
2024-07-30 23:36:39 +03:00
Borchev
03560c019e
Fix SearchFree function bug ( #339 )
2024-07-30 22:40:42 +03:00
Borchev
35cb8810cb
Add pthread_attr_getstacksize thunk
2024-07-30 12:37:05 -07:00
georgemoralis
7b8d0d59af
kernel: Implement sceKernelSetVirtualRangeName ( #338 )
...
* Fix in searchFree should fix #337
* clang format fix
* sceKernelSetVirtualRangeName implementation
* improved vaddr conversion
* updated VirtualQuery to include name too
* unmap also removed name thanks @red_prig
* fixed copy...
2024-07-29 19:08:06 +03:00
squidbus
e2bdbeaf80
Add sem_timedwait polyfill for macOS.
2024-07-28 16:42:33 -07:00
Dzmitry Dubrova
c3a2b3531d
Implement some pthread calls ( #332 )
2024-07-28 18:43:44 +03:00
TheTurtle
5363a226e1
Move presentation to separate thread/improve sync ( #303 )
...
* video_out: Move presentation to separate thread
* liverpool: Better sync for CPU flips
* driver: Make flip blocking
* videoout: Proper flip rate and vblank management
* config: Add vblank divider option
* clang format
* videoout: added `sceVideoOutWaitVblank`
* clang format
* vk_scheduler: Silly merge conflict
* externals: Add renderdoc API
* clang format
* reuse
* rdoc: manual capture trigger
* clang fmt
---------
Co-authored-by: psucien <168137814+psucien@users.noreply.github.com>
2024-07-28 15:54:09 +02:00
Vinicius Rangel
40f21d4a79
fix tls patch on windows ( #328 )
...
* fix tls patch on windows
based on TlsGetValue in kernel32.dll
* fix tls patch on windows for expansion slots
2024-07-27 20:16:21 +03:00
TheTurtle
6eefcb2780
semaphore: Yet another race condition fix ( #327 )
2024-07-27 17:18:18 +03:00
raziel1000
abf7cea257
fs: added /download0 mount
...
fs: get rid of double slashes
2024-07-26 08:07:22 -06:00
georgemoralis
0d9273e2fb
added /dev/urandom
2024-07-26 08:50:39 +03:00
georgemoralis
fb0e1ab435
commented sem_timedwait for linux untill @squidbus fix it
2024-07-26 08:16:32 +03:00
georgemoralis
adfb08d660
cleanup memory_management
2024-07-26 08:08:47 +03:00
raziel1000
3d73174659
Applied feedback from @raphaelthegreat
2024-07-26 07:59:35 +03:00
georgemoralis
7fe993f593
some fixup to playgo , makes Worms go further
2024-07-26 07:53:45 +03:00
raziel1000
ee65797c86
- fixed sceAppContentTemporaryDataMount2
2024-07-26 07:53:19 +03:00
raziel1000
a5cea0cb4b
thread_management: some pthread functions
2024-07-26 07:53:18 +03:00
raziel1000
3c05ce04c2
save_data: fix/accuracy for saveDataMem functions
2024-07-26 07:53:18 +03:00
TheTurtle
0c96f2a030
memory: Cleanups and refactors ( #324 )
...
* memory: Various fixes
* Added (Partial) sceKernelBatchMap/sceKernelBatchMap2
* memory: Rename and implement batch unmap
* memory: Remove uneeded assert
* memory: Commonize free search routine
* memory: Contains check is inclusive
* memory: Address some alignment issues
* clang format
---------
Co-authored-by: raziel1000 <ckraziel@gmail.com>
2024-07-25 23:01:12 +03:00
georgemoralis
be0a88fdfa
clang fix
2024-07-25 11:59:39 +03:00
IndecisiveTurtle
237033bc57
address_space: Fix windows placeholder mapping
2024-07-24 22:59:56 +03:00
georgemoralis
d8590ac812
one more memory fix
2024-07-21 23:16:46 +03:00
georgemoralis
18084c0212
memory fix
2024-07-21 23:14:40 +03:00
georgemoralis
8db440573d
Merge pull request #312 from Borchev/main
...
Add sceKernelGetDirectMemoryType, update sceKernelReserveVirtualRange
2024-07-21 22:52:50 +03:00
squidbus
ec9146b7b2
Allocate more system reserved space on macOS and document restrictions.
2024-07-21 22:36:12 +03:00
squidbus
bb7215977f
Support RIP relative memory operands in patched instructions.
2024-07-21 22:36:12 +03:00
squidbus
6783776990
Only use date library on macOS.
2024-07-21 22:36:12 +03:00
squidbus
bfb0eb7711
Make sure only system managed region can be moved on Windows.
2024-07-21 22:36:12 +03:00
squidbus
e820ecc5ba
Only patch BMI1 instructions under Rosetta 2.
2024-07-21 22:36:12 +03:00
squidbus
09727ce9d6
Define tessellation_factors_ring_addr relative to end of system reserved area.
2024-07-21 22:36:12 +03:00
squidbus
d5e45d001e
Reduce system reserved space to 0x700000000 and map fixed on macOS.
2024-07-21 22:36:12 +03:00
squidbus
d07a52df13
Address review comments around memory and patches.
2024-07-21 22:36:12 +03:00
squidbus
bdca446c5e
Make sure system managed memory is in correct location on macOS.
2024-07-21 22:36:12 +03:00
squidbus
6648589ef9
Set minimum macOS target to 11 and fix compile errors.
2024-07-21 22:36:12 +03:00
squidbus
b5d0347c15
Migrate TLS patches to new patching system.
2024-07-21 22:36:12 +03:00
squidbus
d42a32bbd8
Add initial macOS support.
2024-07-21 22:36:12 +03:00
Borchev
b3350ceabb
Fix formatting
2024-07-21 12:35:01 -07:00
Borchev
632cb2ef93
Add sceKernelGetDirectMemoryType and update sceKernelReserveVirtualRange to search for free region when virtual_addr==0
2024-07-21 11:29:24 -07:00
psucien
2b31ab1e71
Surface management rework (1/3) ( #307 )
...
* amdgpu: proper CB and DB sizes calculation; minor refactoring
* texture_cache: separate file for image_info
* texture_cache: image guest address moved into image info
* texture_cache: surface size calculation
* shader_recompiler: fixed sin/cos
Thanks to red_pring and gandalfthewhite0173
* initial preparations for subresources upload
* review comments
2024-07-20 12:51:21 +03:00
georgemoralis
879b8dcfe8
Merge branch 'main' into miscFixes6
2024-07-18 18:18:10 +03:00
Dzmitry Dubrova
788bdf6d2a
kernel: Implement posix_pthread_once ( #297 )
...
* kernel: Implement posix_pthread_once
* Fix clang format
2024-07-17 23:34:22 +03:00
georgemoralis
baf9ee9125
force imedialog to input "shadps4" as name . That way we can pass games that want username . temp solution till imgui dialog prepared
2024-07-17 20:32:14 +03:00
IndecisiveTurtle
1c99ccf6dc
Add comments
2024-07-17 15:52:40 +03:00
IndecisiveTurtle
5ce901d78b
event_queue: Add clear flag to events and don't return error
2024-07-17 14:50:26 +03:00
IndecisiveTurtle
33615d1d32
gnmdriver: Fix incorrect trailing nop insertion in indirect draws
2024-07-17 14:48:30 +03:00
IndecisiveTurtle
b977dc4d8e
fs: Defeat games with double slashes
2024-07-17 14:46:37 +03:00
georgemoralis
d919baa160
Merge pull request #252 from qurious-pixel/patch-1
...
Move "game_data" to RW directory inside user folder for linux
2024-07-16 23:05:29 +03:00
squidbus
378e136ba0
Return EBUSY from sceKernelPollEventFlag instead of ETIMEDOUT.
2024-07-16 04:53:37 -07:00
TheTurtle
83b12859a5
fs: Fix nullptr check in GetFile
2024-07-15 16:52:24 +03:00
TheTurtle
c4c1dfaa62
fs: Use proper append operator
2024-07-15 15:42:35 +03:00
georgemoralis
6202c21106
Merge pull request #293 from shadps4-emu/misc-fixes3
...
Various linux fixes
2024-07-15 15:25:20 +03:00
IndecisiveTurtle
3e8540bb6a
fs: Remove some unnecessary string conversions
2024-07-15 15:14:04 +03:00
IndecisiveTurtle
c2c6aededa
Merge branch 'misc-fixes3' of https://github.com/shadps4-emu/shadPS4 into misc-fixes3
2024-07-15 15:05:29 +03:00
IndecisiveTurtle
f315f74f2d
kernel: Remove linux hack
...
* Breaks many games, only benefits BB. Tbd
2024-07-15 14:51:45 +03:00
IndecisiveTurtle
16a778745d
fs: Fix case of getting the mount itself
2024-07-15 14:50:28 +03:00
georgemoralis
9b3ea720a8
windows std::filesystem fixes
2024-07-15 14:50:23 +03:00
georgemoralis
909fcb5b75
clang format fix
2024-07-15 14:18:28 +03:00
georgemoralis
9a7a508b80
Merge pull request #287 from polybiusproxy/dev
...
gnmdriver: Implement shader functions
2024-07-15 07:47:33 +03:00
jas0n098
defd6cd6c0
Replace deprecated pthread functions ( #290 )
...
pthread_attr_(set,get)stackaddr are deprecated and don't exist anymore on musl libc
2024-07-15 03:55:58 +03:00
IndecisiveTurtle
d4e95f7bd3
clang format
2024-07-15 03:47:10 +03:00
IndecisiveTurtle
a3619919e1
fs: Actually functional linux case insensitive search
2024-07-15 03:37:30 +03:00
IndecisiveTurtle
ff9a42621c
tls: Use gs segment for linux
2024-07-15 01:48:57 +03:00
IndecisiveTurtle
91ca33fe49
event_queues: Use std placeholders
2024-07-15 01:28:08 +03:00
psucien
77d0535f9f
review comments applied
2024-07-14 23:25:41 +02:00
raziel1000
5d79c8d74c
Some functions called by Stardew Valley
2024-07-14 23:23:11 +03:00
georgemoralis
055c84ca49
initial ime dialog handling
2024-07-14 23:23:10 +03:00
georgemoralis
1ca189bdda
replace unreachable with default return in sceKernelClockGettime
2024-07-14 23:23:10 +03:00
raziel1000
3c2dc4deac
- sceSaveDataDirNameSearch wip, needs testing and more work.
2024-07-14 23:23:10 +03:00
psucien
ada0513de0
libraries: gnmdriver: added missing ASC PM4 dump
2024-07-14 18:27:28 +02:00
psucien
1c2a562131
libraries: kernel: added sceKernelGetEventId
2024-07-14 18:20:31 +02:00
Live session user
958b894706
Move game_data to RW directory inside user folder for linux
2024-07-13 16:44:13 -07:00
Daniel R.
90a0180203
clang-format
2024-07-12 11:03:55 +02:00
Daniel R.
28ace24b3f
gnmdriver: Implement shader functions
2024-07-12 11:00:11 +02:00
Daniel R.
3a7d2ef6eb
Fix Linux builds
2024-07-11 15:16:50 +02:00
Daniel R
8a8c1f274b
Misc implementations and fixes. ( #250 )
...
* Implement `sceKernelFtruncate` and `sceKernelUnlink`.
* Remove unused variable.
* Implement `sceKernelReserveVirtualRange`, misc fixes
* Fix `sceKernelReserveVirtualRange`.
* Add TODO on reserve
* Replace comment with assert.
* Add missing copyright header
* Add `UNREACHABLE` for `IOFile::Unlink`.
* Move NT API initialization out of the header
* Fix bug where files were always mapped as read only.
* `clang-format`
2024-07-11 15:35:58 +03:00
Vladislav Mikhalin
6add8bfb96
Filesystem errors and Base Array Layers ( #280 )
...
* Filesystem errors and Base Array Layers
* Fixed build for POSIX
* forgot 1 file
2024-07-11 14:37:21 +03:00
psucien
2ca3b97c7d
fix for large delays precision + Linux build
2024-07-11 13:14:42 +03:00
psucien
9ffe0ea70d
kernel: added HR timers and asio service thread
2024-07-11 13:14:42 +03:00
psucien
6132e03a2c
kernel: equeue: minor refactoring
2024-07-11 13:14:42 +03:00
georgemoralis
13d2d4aefb
forgot to register avplayer module
2024-07-10 19:15:58 +03:00
georgemoralis
a186223d8e
More HLE stuff and fixes ( #273 )
...
* sceKernelOpen truncate is not neccesary
* fixup scePthreadCondSignal
* dummy error , ime dialogs stubbed
* sceErrorDialog implemenation (no ui)
* small fix in sceSaveDataGetEventResult and sceAppContentTemporaryDataMount2.
* ime dialog structs and functions definations
* added stubbed avplayer
* Open folder should be first on context menu
---------
Co-authored-by: raziel1000 <ckraziel@gmail.com>
2024-07-10 19:20:19 +03:00
Vinicius Rangel
1bf8b1e36e
Fix sceAudioOutOpen not handling audio param attributes
...
and returning error incorrectly when some mask is applied
2024-07-08 01:29:58 -03:00
georgemoralis
a67c24a761
Merge pull request #253 from shadps4-emu/graphics/features_and_fixes
...
Graphics: missing features and fixes
2024-07-07 20:42:13 +03:00
psucien
51557590be
gnmdriver: added sceGnmFindResourcesPublic
stub
2024-07-07 13:47:01 +02:00
TheTurtle
020e69dfb4
memory: Set virtual query offset
2024-07-07 01:26:17 +03:00
psucien
2da61fa0b3
gnmdriver, amdgpu: added gpu idle IRQ; submission lock logic improved
2024-07-06 18:03:34 +02:00
georgemoralis
c231695ee8
Merge pull request #239 from shadps4-emu/miscFixes3
...
Misc fixes 3
2024-07-06 11:16:53 +03:00
TheTurtle
60c63da3fd
shader_recompiler: Check usage before enabling capabilities ( #245 )
...
* vk_instance: Better feature check
* shader_recompiler: Make most features optional
* vk_instance: Bump extension vector size
* resource_tracking_pass: Perform BFS for sharp tracking
* The Witness triggered this
2024-07-06 02:42:16 +03:00
georgemoralis
34a6b19636
scePthreadMutexTimedlock added
2024-07-05 15:23:35 +03:00
raziel1000
0b9718c5b3
forgot duplicate.
2024-07-04 21:02:59 -06:00
Younes
dbeaaa4f43
Merge branch 'main' into miscFixes2
2024-07-04 20:51:04 -06:00
TheTurtle
effc52c931
thread_management: Fix windows build
2024-07-05 00:20:55 +03:00
TheTurtle
d9873e30bc
shader_recompiler: Implement most integer image atomics, workgroup barriers and shared memory load/store ( #231 )
...
* shader_recompiler: Add LDEXP
* shader_recompiler: Add most image integer atomic ops
* shader_recompiler: Implement shared memory load/store
* shader_recompiler: More image atomics
* externals: Update sirit
* clang format
* cmake: Add missing files
* shader_recompiler: Fix some atomic bugs
* shader_recompiler: Vs outputs
* shader_recompiler: Shared mem has side-effects, fix format component order
* shader_recompiler: Inline constant buffer impl
* video_core: Fix regressions
* Work
* Fixup a few things
2024-07-05 00:15:44 +03:00
georgemoralis
f6b73f9e68
improved sceAppContentAppParamGetInt
2024-07-04 13:49:11 +03:00
georgemoralis
3727a8f00e
improved file not found return in sceKernelOpen
2024-07-04 11:38:23 +03:00
raziel1000
ec750fa156
scePthreadSetprio, scePthreadGetprio
2024-07-04 02:22:43 -06:00
raziel1000
eee0a0cb52
....
2024-07-04 01:57:03 -06:00
raziel1000
9ab33ee759
...
2024-07-04 01:54:50 -06:00
raziel1000
409327ebe6
mr clang format
2024-07-04 01:53:06 -06:00
raziel1000
8abe23712f
- Several SaveData functions. Dysmantle and we are doomed should save and load now.
2024-07-04 01:51:46 -06:00
georgemoralis
606a4e9ff0
fixed linux compile?
2024-07-04 09:38:25 +03:00
georgemoralis
bec2a4be8b
added scePthreadGetthreadid
2024-07-03 20:05:21 +03:00
georgemoralis
8505857628
dummy sceAppContentGetAddcontInfoList and fixed structs
2024-07-03 20:04:56 +03:00
georgemoralis
827260e2fb
Merge pull request #230 from shadps4-emu/stabilization12
...
reduced logging
2024-07-01 23:53:59 +03:00
georgemoralis
8ccd53d7f1
moved elf logging to DebugDump fuction , which can be enabled in config . This reduces main log file a lot
2024-07-01 23:07:57 +03:00
IndecisiveTurtle
b72115bed4
shader_recompiler: More instructions
2024-07-01 22:42:45 +03:00
IndecisiveTurtle
0a900115e8
video_core: Fix some regressions
2024-07-01 18:26:22 +03:00
IndecisiveTurtle
20e9012490
code: Add additional logging during init
2024-07-01 13:56:14 +03:00
IndecisiveTurtle
3a3cb0c0a5
tls: Switch to trace logs
2024-07-01 13:56:14 +03:00
IndecisiveTurtle
69797f4d5d
video_core: Track renderpass scopes properly
2024-07-01 13:56:14 +03:00
IndecisiveTurtle
73c2697ed1
video_core: Fix a few problems
2024-07-01 13:56:14 +03:00
IndecisiveTurtle
383900bdbf
tls: Fix linux crash
2024-07-01 13:56:14 +03:00
georgemoralis
91d553c800
Merge pull request #225 from shadps4-emu/stabilization/10
...
Various fixes and improvements
2024-07-01 13:09:11 +03:00
georgemoralis
21cc9c49fe
Merge pull request #220 from shadps4-emu/stabilization9
...
HLE stuff
2024-07-01 01:18:41 +03:00
georgemoralis
30fe941ae2
eventflag : changed an assert to log as error
2024-07-01 00:51:38 +03:00
georgemoralis
28a48d894f
fixed name style
2024-07-01 00:50:07 +03:00
psucien
5fb6daf583
libraries: gnmdriver: added initialization preamble to every first submit in a frame
2024-06-30 18:22:39 +02:00
georgemoralis
14b39ecab3
added posix error write to errno
2024-06-30 10:40:06 +03:00
georgemoralis
dfed4e8501
added case for savedata (needed by flow)
2024-06-30 10:12:07 +03:00
georgemoralis
029f029c61
added sceKernelDeleteEventFlag
2024-06-30 10:11:44 +03:00
psucien
d7e058ce96
libraries: gnmdriver: sceGnmDrawInitToDefaultContextState
and sceGnmDrawInitToDefaultContextState400
implementation
2024-06-30 01:21:39 +03:00
psucien
dba04e213d
libraries: gnmdriver: fix for incorrect offset in sceGnmDrawInitDefaultHardwareState175
2024-06-30 01:21:39 +03:00
georgemoralis
e557702698
fixed posix_open return code
2024-06-28 23:19:33 +03:00
georgemoralis
98809911c2
sceKernelOpen handle directory doesn't exist case
2024-06-28 23:06:15 +03:00
georgemoralis
163ebd3291
few more sceNet work
2024-06-28 23:00:01 +03:00