mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-25 15:56:00 +03:00
[PR #3076] [MERGED] shader_recompiler: Cleanup fragment attribute handling #3201
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#3201
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/3076
Author: @raphaelthegreat
Created: 6/10/2025
Status: ✅ Merged
Merged: 6/10/2025
Merged by: @georgemoralis
Base:
main← Head:misc-fix📝 Commits (3)
0fe0047image: Take minimum of mip levelse2963a1texture_cache: Update depth target imagecb3459ashader_recompiler: Cleanup fragment attribute handling📊 Changes
4 files changed (+25 additions, -20 deletions)
View changed files
📝
src/shader_recompiler/backend/spirv/spirv_emit_context.cpp(+15 -13)📝
src/shader_recompiler/frontend/translate/vector_interpolation.cpp(+7 -5)📝
src/video_core/texture_cache/image.cpp(+2 -1)📝
src/video_core/texture_cache/texture_cache.cpp(+1 -1)📄 Description
Main purpose is to fix regression reported in https://github.com/shadps4-emu/shadPS4/pull/3055#issuecomment-2955788516 but I also placed some minor fixes I found in the process as well
The attribute indexing code was using the attribute semantic (i.e which vertex shader paramN output it uses) for indexing into arrays while the added interpolation code was using the fragment attribute index. This was confusing so I changed the code to always just index using the attribute number and only use the semantic for the location specifier in SPIRV
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.