mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-26 00:05:58 +03:00
[PR #3588] [MERGED] video_core: Check DB_SHADER_CONTROL register before performing depth exports #3594
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#3594
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/3588
Author: @StevenMiller123
Created: 9/13/2025
Status: ✅ Merged
Merged: 9/13/2025
Merged by: @squidbus
Base:
main← Head:fix-knack📝 Commits (3)
5a7814bvideo_core: Check DB_SHADER_CONTROL register before performing depth exports57e3b70Update liverpool.h (1)df42937Update vk_pipeline_cache.cpp (2)📊 Changes
4 files changed (+12 additions, -4 deletions)
View changed files
📝
src/shader_recompiler/frontend/translate/export.cpp(+2 -1)📝
src/shader_recompiler/runtime_info.h(+2 -1)📝
src/video_core/amdgpu/liverpool.h(+2 -2)📝
src/video_core/renderer_vulkan/vk_pipeline_cache.cpp(+6 -0)📄 Description
The DB_SHADER_CONTROL register has several enable flags which must be set before certain depth exports are allowed. This commit adds logic to respect the values in this register when performing depth exports. I've also renamed DepthBufferControl to ShaderControl, since that's closer to the official name for the register.
This fixes the regression seen in the base version of KNACK™ after #3559
Credits to @raphaelthegreat for guiding me through this fix.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.