shadPS4/src/video_core
TheTurtle 82cacec8eb
shader_recompiler: Remove special case buffers and add support for aliasing (#2428)
* shader_recompiler: Move shared mem lowering into emitter

* IR can be quite verbose during first stages of translation, before ssa and constant prop passes have run that drastically simplify it. This lowering can also be done during emission so why not do it then to save some compilation time

* runtime_info: Pack PsColorBuffer into 8 bytes

* Drops the size of the total structure by half from 396 to 204 bytes. Also should make comparison of the array a bit faster, since its a hot path done every draw

* emit_spirv_context: Add infrastructure for buffer aliases

* Splits out the buffer creation function so it can be reused when defining multiple type aliases

* shader_recompiler: Merge srt_flatbuf into buffers list

* Its no longer a special case, yay

* shader_recompiler: Complete buffer aliasing support

* Add a bunch more types into buffers, such as F32 for float reads/writes and 8/16 bit integer types for formatted buffers

* shader_recompiler: Remove existing shared memory emulation

* The current impl relies on backend side implementaton and hooking into every shared memory access. It also doesnt handle atomics. Will be replaced by an IR pass that solves these issues

* shader_recompiler: Reintroduce shared memory on ssbo emulation

* Now it is performed with an IR pass, and combined with the previous commit cleanup, is fully transparent from the backend, other than requiring workgroup_index be provided as an attribute (computing this on every shared memory access is gonna be too verbose

* clang format

* buffer_cache: Reduce buffer sizes

* vk_rasterizer: Cleanup resource binding code

* Reduce noise in the functions, also remove some arguments which are class members

* Fix gcc
2025-02-15 14:06:56 +02:00
..
amdgpu shader_recompiler: Remove special case buffers and add support for aliasing (#2428) 2025-02-15 14:06:56 +02:00
buffer_cache shader_recompiler: Remove special case buffers and add support for aliasing (#2428) 2025-02-15 14:06:56 +02:00
host_shaders video_out: HDR support (#2381) 2025-02-09 15:54:54 +01:00
renderer_vulkan shader_recompiler: Remove special case buffers and add support for aliasing (#2428) 2025-02-15 14:06:56 +02:00
texture_cache video_out: HDR support (#2381) 2025-02-09 15:54:54 +01:00
multi_level_page_table.h buffer_cache: Improve buffer cache locking contention (#1973) 2025-01-02 15:39:02 +02:00
page_manager.cpp buffer_cache: Improve buffer cache locking contention (#1973) 2025-01-02 15:39:02 +02:00
page_manager.h video_core: Use adaptive mutex on Linux (#2105) 2025-01-17 23:47:38 -08:00
renderdoc.cpp Fix loading RenderDoc in offline mode for Linux (#1968) 2024-12-29 12:36:29 +02:00
renderdoc.h Use fs::path::native whenever possible, avoid unnecessary fs->string conversions in GUI code (#1064) 2024-09-26 11:41:59 +03:00