mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-26 00:05:58 +03:00
[PR #3420] [MERGED] ir: Perform degamma in shader when sampler sets force_degamma #3454
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#3454
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/3420
Author: @raphaelthegreat
Created: 8/15/2025
Status: ✅ Merged
Merged: 8/19/2025
Merged by: @squidbus
Base:
main← Head:force_degamma📝 Commits (2)
ce048e9ir: Perform degamma in shader when sampler sets force_degamma3636193specialization: Add srgb if image is sampled📊 Changes
12 files changed (+82 additions, -43 deletions)
View changed files
📝
src/shader_recompiler/backend/spirv/emit_spirv_floating_point.cpp(+4 -0)📝
src/shader_recompiler/backend/spirv/emit_spirv_instructions.h(+1 -0)📝
src/shader_recompiler/info.h(+0 -11)📝
src/shader_recompiler/ir/ir_emitter.cpp(+4 -0)📝
src/shader_recompiler/ir/ir_emitter.h(+1 -0)📝
src/shader_recompiler/ir/opcodes.inc(+1 -0)📝
src/shader_recompiler/ir/passes/resource_tracking_pass.cpp(+7 -4)📝
src/shader_recompiler/ir/reinterpret.h(+31 -1)📝
src/shader_recompiler/specialization.h(+6 -1)📝
src/video_core/amdgpu/pixel_format.h(+9 -0)📝
src/video_core/amdgpu/resource.h(+0 -5)📝
src/video_core/texture_cache/sampler.cpp(+18 -21)📄 Description
This is simpler than trying to adjust image format to be SRGB when binding. It could also be possible for an image binding to be used with different samplers (in which case it would be wrong to change image format).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.