mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-26 00:05:58 +03:00
[PR #3055] [MERGED] shader_recompiler: Implement linear interpolation support #3182
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#3182
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/3055
Author: @raphaelthegreat
Created: 6/8/2025
Status: ✅ Merged
Merged: 6/8/2025
Merged by: @georgemoralis
Base:
main← Head:linear-interp📝 Commits (1)
c947811shader_recompiler: Implement linear interpolation support📊 Changes
14 files changed (+421 additions, -371 deletions)
View changed files
📝
src/shader_recompiler/backend/spirv/spirv_emit_context.cpp(+17 -6)📝
src/shader_recompiler/backend/spirv/spirv_emit_context.h(+2 -2)📝
src/shader_recompiler/frontend/structured_control_flow.cpp(+7 -5)📝
src/shader_recompiler/frontend/translate/translate.cpp(+72 -61)📝
src/shader_recompiler/frontend/translate/translate.h(+10 -6)📝
src/shader_recompiler/frontend/translate/vector_interpolation.cpp(+3 -2)📝
src/shader_recompiler/info.h(+4 -0)📝
src/shader_recompiler/ir/attribute.h(+19 -0)📝
src/shader_recompiler/ir/ir_emitter.cpp(+0 -1)📝
src/shader_recompiler/ir/ir_emitter.h(+1 -1)📝
src/shader_recompiler/ir/reg.h(+1 -1)📝
src/video_core/amdgpu/pixel_format.h(+285 -9)📝
src/video_core/amdgpu/resource.h(+0 -1)📝
src/video_core/amdgpu/types.h(+0 -276)📄 Description
This is used by Driveclub (CUSA00093) for some light passes. Fixes the warp effect in the edges of the screen during nighttime races and a "haze" effect inside the car
Note: Technically this isn't fully accurate as it doesn't handle Sample and Centroid. This can be remedied by using VK_AMD_shader_explicit_vertex_parameter but that would add complexity that isnt needed here so it wasn't done
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.