mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-26 00:05:58 +03:00
[PR #1532] [CLOSED] shader_recompiler: shaer patch to manualy normalize on unsupported Vulkan UNORM/SNORM formats #2156
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#2156
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/1532
Author: @LNDF
Created: 11/14/2024
Status: ❌ Closed
Base:
main← Head:normalization📝 Commits (8)
ed5da02Copy IR instructione498875Initial prepa4010b3Add surface formats78ad50bPatch read and write008d2acSurface format fixupfe3b41cShader specialization0fd4c3bHandle atomic instructionsa4dba67Specialize normalization component number📊 Changes
6 files changed (+136 additions, -6 deletions)
View changed files
📝
src/shader_recompiler/ir/ir_emitter.cpp(+5 -0)📝
src/shader_recompiler/ir/ir_emitter.h(+2 -0)📝
src/shader_recompiler/ir/passes/resource_tracking_pass.cpp(+65 -0)📝
src/shader_recompiler/specialization.h(+21 -6)📝
src/video_core/amdgpu/resource.h(+16 -0)📝
src/video_core/renderer_vulkan/liverpool_to_vk.cpp(+27 -0)📄 Description
Vulkan doesn't have support for SNORM/UNORM number formats for 32, 32_32, 32_32_32 and 32_32_32_32 data formats. Insteed use SINT/UINT and normalize/unormalize on shader when reading/writing.
Maybe we don't need to specialize by number of components, I can revert that.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.