mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-26 00:05:58 +03:00
[PR #2857] [MERGED] lower_buffer_format_to_raw: Fix handling of format remapping. #3033
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#3033
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/2857
Author: @squidbus
Created: 4/27/2025
Status: ✅ Merged
Merged: 4/27/2025
Merged by: @squidbus
Base:
main← Head:fix-tbuf-mapping📝 Commits (1)
ed4bec6lower_buffer_format_to_raw: Fix handling of format remapping.📊 Changes
1 file changed (+10 additions, -5 deletions)
View changed files
📝
src/shader_recompiler/ir/passes/lower_buffer_format_to_raw.cpp(+10 -5)📄 Description
Format and swizzle remaps and number type conversions were not being properly applied when lowering texel buffers to raw buffer accesses:
AmdGpu::MapNumberConversionon the number format to get the conversion type, it should only be used for instruction-provided formats. For buffer-provided formats, we should usebuffer.GetNumberConversion()as the number format we see will already have been remapped.Fixes one issue seen in https://github.com/shadps4-emu/shadPS4/pull/2841 because the remaps weren't actually being emitted for texel buffers.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.