mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-27 00:36:00 +03:00
[PR #837] [MERGED] video_core: Add fallback path for pipelines with more than 32 bindings #1800
Labels
No labels
Bloodborne
bug
contributor wanted
documentation
enhancement
frontend
good first issue
help wanted
linux
pull-request
question
release
verification progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shadPS4#1800
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/shadps4-emu/shadPS4/pull/837
Author: @raphaelthegreat
Created: 9/7/2024
Status: ✅ Merged
Merged: 9/10/2024
Merged by: @raphaelthegreat
Base:
main← Head:bindings📝 Commits (4)
fe5c38fvideo_core: Small fixes449c998renderer_vulkan: Add fallback path for pipelines with more than 32 bindings8907e4fvk_resource_pool: Rewrite desc heapdc2c9b4work📊 Changes
27 files changed (+220 additions, -145 deletions)
View changed files
📝
src/core/libraries/gnmdriver/gnmdriver.cpp(+1 -0)📝
src/emulator.cpp(+0 -1)📝
src/shader_recompiler/backend/spirv/emit_spirv.cpp(+3 -0)📝
src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp(+1 -1)📝
src/shader_recompiler/backend/spirv/emit_spirv_warp.cpp(+2 -1)📝
src/shader_recompiler/backend/spirv/spirv_emit_context.cpp(+3 -1)📝
src/shader_recompiler/frontend/translate/translate.cpp(+1 -1)📝
src/shader_recompiler/frontend/translate/vector_memory.cpp(+5 -0)📝
src/shader_recompiler/info.h(+3 -2)📝
src/shader_recompiler/ir/passes/lower_shared_mem_to_registers.cpp(+1 -2)📝
src/shader_recompiler/ir/passes/resource_tracking_pass.cpp(+3 -22)📝
src/shader_recompiler/ir/passes/shader_info_collection_pass.cpp(+5 -0)📝
src/shader_recompiler/specialization.h(+2 -2)📝
src/video_core/amdgpu/pm4_cmds.h(+19 -0)📝
src/video_core/buffer_cache/buffer_cache.cpp(+7 -8)📝
src/video_core/renderer_vulkan/vk_compute_pipeline.cpp(+25 -7)📝
src/video_core/renderer_vulkan/vk_compute_pipeline.h(+5 -2)📝
src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp(+21 -8)📝
src/video_core/renderer_vulkan/vk_graphics_pipeline.h(+6 -1)📝
src/video_core/renderer_vulkan/vk_instance.cpp(+3 -1)...and 7 more files
📄 Description
Fixes crashes in games that bind many resources. This is done by maintaining a classic descriptor pool and allocating sets in batches to update them. It is expected that only a small subset of draws will hit this path, thus the update call should be fine perf wise. If there are games that consistently bind that many resources, we can explore options to batch updates.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.