feat(vk): Sharpness is AMD's RCAS on the 3D scene, before the HUD, by depth and in HDR #3118
No reviewers
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/mods
area/renderer
area/saves
area/tooling
area/upscaling
beanstalk: approved
beanstalk: failed
beanstalk: needs approval
beanstalk: running
beanstalk: tested
ci: approved
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/macos
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
regression
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!3118
Loading…
Reference in a new issue
No description provided.
Delete branch "llun/Longshot:feat/sharpen-scene-rcas"
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?
Summary
The Sharpness slider now sharpens the 3D scene, and only that. Before, it ran on the finished picture, so it also sharpened the HUD, menus and movies, and a limit in it kept every pixel between its darkest and brightest neighbor, so thin lines and fine texture came out unchanged.
RX_VK_SHARPEN_DEPTH=0turns that off.Same row, same key, same default (0%). Menus and movies are no longer sharpened.
Read first:
gpu/vk/shaders/sharpen.comp,gpu/vk/vk_sharpen.cpp, andfinish_upscale_pictureingpu/vk/vk_draw.cpp.Credit and prior work. ghost_nup found that the old limit blocked the sharpening, in pull request 2940, which is open on the same feature. That one removes the limit but stays after the HUD for most upscalers and uses three methods; this one sharpens before the HUD, by depth, one way for every upscaler. No code is taken from it. The HDR range follows OptiScaler's RCAS (the idea, not its code). RCAS is AMD's. See issue 2569.
Testing
Tested: Windows 11, RTX 5080, driver 621.47, 1920x1080, in the game.
caee78a54, the Market, 0, 40 and 100%): SDR with DLSS at 50%; Vanilla and Expanded with DLAA and the game's own; PsychoV35 with the game's own, DLSS (67% and 50%), FSR 3.1 (67%), Off, XeSS (67%) and XeSS Native AA. All are sharpened by the scene's depth, with no errors in the log. No black pixels are added, and the minimap is as at 0% (at most 7% more fine detail at 100%, where the scene shows through it). In Native HDR the brightest light stays where it was. Expanded's own HDR output was not measured: the test's shots hold the SDR picture before it is expanded.caee78a54): looks good. PsychoV35 with DLAA on an HDR screen at 100% (caee78a54): acceptable.78fc956f0(main7375aa551), sandbox off as main has it: the Market in SDR with DLAA and in PsychoV35 with the game's own upscaler, at 0, 40 and 100%. It sharpens by the scene's depth, with no errors in the log. No black pixels are added in PsychoV35; in SDR, 3 pixels of about 2 million go from almost black to black at 100%. At 40% a turn flickers 28% more than at 0% in SDR, 7% more in PsychoV35. The runs oncaee78a54and before had the sandbox on.mise run teston 1d923a7fb (main7c3c16f0a, Windows, gnullvm): 826 passed, 18 failed, 51 skipped. None of the 18 is this pull request's:7c3c16f0atoo:test_cursor_hidden_linux,test_input_background,test_dlssg_folders,test_state_list_give_back,test_linux_pressure,test_loaded_modules_drop,test_program_cache_one_variant,test_program_cache_cleanup.test_stack_commit,test_direct_buffer_writes,test_display_startup_failure,test_fallback_buffer_cleanup,test_frame_wait_bounds,test_invalidate_vcore,test_mesh_args_cleanup,test_pipeline_cache_save.test_fsr_uniform_ownershipfails to compile (prepared_dynamic), the same on clean main7c3c16f0a.test_lifterstops at clippy, at an unused import inbuild-core, which this does not touch. Its Rust tests were run for the crates this could affect:api558 pass and 1 fails,modtool247 pass and 1 fails. The two that fail (a_walked_reshade_folder_counts_a_change_once_two_walks_agree,the_menu_passes_its_tests) fail on clean main7c3c16f0atoo. The rest of the workspace's clippy and Rust tests were not run.After that came one rebase, onto
7375aa551. Rerun on78fc956f0, what it could affect: 16 checks (Sharpness, the menu's texts and keys, the renderer's wiring) pass,api559 pass with the same one failing, and the two game runs above. The full suite was not rerun.On Linux the changed C++ files in
gpu/vk/compile on78fc956f0(Ubuntu 24.04 in WSL, g++ 13 and clang 18, the renderer's flags, no link). The whole build was not made there, and it has not run there.Still to test:
vk: sharpness:line to say "by the scene's depth", and no errors (@Beanstalk Sharpness at 0, 40 and 100% with FSR 3.1, the game's own and Off)Measurements
Verdict: It leaves the HUD alone and the sky nearly so, and sharpens near detail more than main. At 40%, house walls come out about as on main: the gain there is small. Frame rates overlap at 0%; at 40% the two averages differ by about 1.5%, about the size of the spread between runs. The pass costs about 0.055 ms of GPU a frame at 1920x1080 on an RTX 5080 (not a timing run).
Setup: Windows 11, RTX 5080, driver 621.47, DLAA at 1920x1080, the Market (child). Frame rates:
dev.py ab's timing queue, 2 runs of 45 s a side, interleaved, warmed up, the same game folder with onlylongshot_vk.dlldifferent. The machine is CPU-bound in the Market (about 122 fps). The tool wrote no summary (Windows handle numbers in the switches differ run to run); the numbers are its own lines, below. The "after" frame rates are the build before the rebases; they bring no change to what is measured. The fine detail and flicker rows are from an earlier build with the same shader (2 rounds, standing still and a steady turn). The baseline is main'slongshot_vk.dllat0aeb68589.0aeb68589RX_VK_SHARPEN_DEPTHships on: at 100% the sky's fine detail is ×0.98 of 0% with it and ×2.11 without, and the distant castle ×1.18 against ×2.25, for about 0.01 ms (a rough number).At 100% the new one is stronger and flickers more than the old one, which is why the menu starts lower.
Flicker in a camera turn on
caee78a54(average of two turns; lower is steadier; compare along a row only):Risks
tests/test_sharpen.py.settings.tomland caches: nothing.Checklist
Ready for review
main; the title is a Conventional Commit.mise run testpasses (any failure that also fails onmainis named).main, or Measurements says why there is nothing to measure.third_party/untouched; nothing GPL-incompatible.When it applies
gpu/vk/switches.def.tests/that reads changed source is updated, not weakened.mainand here, for a change that shows on screen.Assisted-by:/Co-Authored-By:trailers.Ready to merge
main, measured again or a comment says why the numbers still hold.🤖 Generated with Claude Code
Tested in game: Windows 11, RTX 5080, driver 621.47, DLAA at 1920x1080. SDR: the Market, Link's house, the Shadow Temple, the Bottom of the Well and Dodongo's Cavern at 0 to 100%: near detail sharper, HUD and sky unchanged, dark areas clean at 40%. Native HDR: Vanilla and PsychoV35: nothing over the 1000 nit peak, highlights unchanged. Run on eeaf24c22, before the rebase to
54ae50510, which brings nothing this touches.Screenshots. Windows 11, RTX 5080, DLAA at 1920x1080, the Market, cropped and enlarged.
main(OLD) and this pull request (NEW), same spot, SDR. At 40% the two look close on walls and roofs. At 100% the new one is stronger up close and much weaker on the far castle.What depth does, at 100%.
HDR (Native), Vanilla and PsychoV35. Shown for a normal screen, with 400 nits as white.
The menu's new help text. Taken in an earlier build.
54ae50510dcaee78a54fUpdated: rebased onto main
6318f4056, and Sharpness now also works with PsychoV35 (Native HDR) and the game's own upscaler. Before, the slider did nothing there.More tests in the game on
caee78a54: every upscaler that runs on an RTX 5080 with PsychoV35, plus Vanilla and Expanded HDR and DLSS at 50%. The description has the numbers. The picture shows PsychoV35, for a normal screen.Correction: the description said that at 40% a turn flickers as it does at 0%. With more tests it is between about the same and 21% more.
@review
Recommendation: Request changes. The pass creates a packed-format shader without checking the Vulkan feature it requires, and its new test bypasses the selected C++ compiler. The feature also needs the outstanding Tier 1 runs and a measurement of its cost on a weaker GPU.
Sharpness moves from the finished window picture to the upscaled 3D scene, adds depth-sensitive RCAS and HDR handling, and leaves the HUD untouched. The new path adds a full-resolution copy, a compute pass and depth reads when enabled.
Blocking (1): must change before merging.
gpu/vk/vk_sharpen.cpp:127: The packed-format pipeline is created unconditionally without checking shaderStorageImageExtendedFormats, and both pipelines must succeed before either format can be sharpened. (more on the line) Do: Check the feature and format capabilities and create each pipeline independently; use a supported fallback for the packed picture or report that format unavailable without disabling RGBA16F.Should fix (1): not blocking, but worth doing before merging.
tests/test_sharpen.py:24: The new check hard-codes g++ instead of using the compiler selected by the test runner. (more on the line) Do: Declare --cxx with the runner's {cxx} placeholder and use the selected compiler as the standalone default.Testing before merging (2) (runs on the systems it can change; it doesn't hold the recommendation)
gpu/vk/vk_sharpen.cpp:243: The new full-resolution copy and depth-sampling pass have not been measured on a weaker GPU. (more on the line) Do: Measure frame time, 1% lows and VRAM on a Steam Deck or comparable integrated GPU at 0% and 40%, using the same scene and settings over repeated runs. (@fixdoes its part first: Reduce or avoid the full-resolution copy and depth reads, or use a cheaper path on bandwidth-limited devices.)gpu/vk/shaders/sharpen.comp:76: The new rendering and depth path has not yet run on the other affected Tier 1 hardware. (more on the line) Do: Run the requested 0%, 40% and 100% checks on AMD and Steam Deck, including the game's own upscaler at reduced resolution, and verify the depth log and picture.@fixcan do L1, L2 and L3.Checks: Still running: 11 checks.
More: does it help, other systems, switches, what was read
Does it help: Yes for the demonstrated visual behavior: the author's Windows RTX 5080 runs show sharper near detail and an unchanged HUD. Performance is not a claimed gain: two 40% runs measured 122.5/123.8 fps on main and 119.9/122.6 here, with overlapping spreads; the cost on weaker GPUs is unmeasured.
Other systems: The pass affects all upscalers, HDR modes, frame generation and mods' world and screen effects. The author tested several combinations on Windows with NVIDIA; AMD, Intel, Linux and Steam Deck remain untested. The RGBA16F-only path deliberately withholds the newly found picture from effects and frame generation.
Switches: RX_VK_SHARPEN_DEPTH is added, default on, with a switches.def row; 0 disables depth weighting. The default's visual effect was measured on NVIDIA, but its behavior and cost on other supported hardware remain to be tested. RX_VK_UPSCALE_LOG's documented output changes because sharpness moved out of the window pass.
Reviewed:
caee78a54fagainst6318f4056e: Read the repository rules and PR template, the new shader, sharpening implementation and test, the principal draw and temporal diffs and their relevant callers, and the frame-generation, settings and test diffs. Skimmed translations, documentation, generated-file claims and remaining changed tests; did not read every changed code file in full. Screenshot attachments were unavailable in the closed network.; nothing run (a code review).Checked and fine:
Testing: No commands that build or run the project or tests were executed. The author's reported game runs and test results are described above; CI is still running.
Overlaps and merge order: PR #2940 remains open on the same Sharpness feature; the description distinguishes its approach. Merge order is not established.
Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.
@ -0,0 +73,4 @@void main() {const ivec2 g = ivec2(gl_GlobalInvocationID.xy);if (any(greaterThanEqual(g, pc.size))) return;const vec3 c = light(g);L4 (should fix): The new rendering and depth path has not yet run on the other affected Tier 1 hardware.
When: AMD on Windows and Linux and Steam Deck can take different shader, image-format and scene-depth paths from the tested Windows NVIDIA system.
Do: Run the requested 0%, 40% and 100% checks on AMD and Steam Deck, including the game's own upscaler at reduced resolution, and verify the depth log and picture.
@ -0,0 +124,4 @@VkSamplerCreateInfo si{VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO};si.addressModeU = si.addressModeV = si.addressModeW = VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE;if (vkCreateSampler(dev.device, &si, nullptr, &s.point) != VK_SUCCESS) return false;if (!make_pipe(s, BUILTIN_SPV(SHARPEN_COMP_SPV), s.pipe[0]) || !make_pipe(s, BUILTIN_SPV(SHARPEN_RGBA_COMP_SPV), s.pipe[1]))L1 (blocking): The packed-format pipeline is created unconditionally without checking shaderStorageImageExtendedFormats, and both pipelines must succeed before either format can be sharpened.
When: On a device without that optional Vulkan feature, the r11f_g11f_b10f storage-image shader requires an unsupported capability. Pipeline creation is invalid or fails, so even an otherwise supported RGBA16F picture cannot use Sharpness.
Do: Check the feature and format capabilities and create each pipeline independently; use a supported fallback for the packed picture or report that format unavailable without disabling RGBA16F.
@ -0,0 +240,4 @@Push pc{};pc.size[0] = (int32_t)w, pc.size[1] = (int32_t)h;pc.amount = (float)row / 100.0f;full_barrier(cmd, "sharpness: the picture as the upscaler wrote it");L3 (should fix): The new full-resolution copy and depth-sampling pass have not been measured on a weaker GPU.
When: A Steam Deck or integrated GPU with Sharpness enabled must copy the scene and run the full-size pass every frame; the RTX 5080's 0.055 ms span does not establish its frame-time or memory cost there.
Do: Measure frame time, 1% lows and VRAM on a Steam Deck or comparable integrated GPU at 0% and 40%, using the same scene and settings over repeated runs.
@ -0,0 +21,4 @@from srccut import block # noqa: E402from test_fg_scale_sharpen import SHIM # noqa: E402RUN_ALL_ARGS = ["--cxx", "g++"]L2 (should fix): The new check hard-codes g++ instead of using the compiler selected by the test runner.
When: On a supported Windows or Linux setup with clang++ selected and no g++ on PATH, run_all marks this check missing and skips it; when both exist, it ignores CXX and tests a different compiler.
Do: Declare --cxx with the runner's {cxx} placeholder and use the selected compiler as the standalone default.
Updated to
78fc956f0, rebased on main7375aa551. Answers to BeanBot's review:g++Tested again in the game on
78fc956f0(RTX 5080, Windows 11, sandbox off as main has it): SDR with DLAA, and PsychoV35 with the game's own upscaler. No errors in the log.Full test run (1d923a7fb, before the last rebase): 826 passed, 18 failed, 51 skipped. None of the 18 comes from this pull request; the description says why for each. After the rebase I reran only what it could affect, and did not rerun the full suite.
New on main: Snapdragon GSR 2. Sharpness works with it, but it has a fine dot pattern of its own that Sharpness strengthens. So the menu gives no number for it.
caee78a54f78fc956f07@Beanstalk On AMD (Windows and Linux) and Steam Deck: Sharpness at 0, 40 and 100% with FSR 3.1, the game's own upscaler and Off, then Sharpness 40% at 50% Render resolution with the game's own. Expected: the 3D scene gets sharper, the HUD does not change, there are no errors, and the log's
vk: sharpness:line says "by the scene's depth".@llun the PR got a new push (
78fc956) after your comment. Review it and approve again.@Beanstalk On AMD (Windows and Linux) and Steam Deck, at
78fc956f0: Sharpness at 0, 40 and 100% with FSR 3.1, the game's own upscaler and Off, then Sharpness 40% at 50% Render resolution with the game's own. A screenshot at each. Expected: no errors or crashes, and the log'svk: sharpness:line says "by the scene's depth".Beanstalk test farm · 🔄 testing (4 of 3 reports so far)
Commit
78fc956· approved by llun (reviewed) · dashboard⚠️ Note: The depth log is checked over the whole start, not independently for each setting; Sharpness at 0% does not run the filter.
⚠️ Note: Screenshots are compared with main but cannot independently prove depth weighting or HUD isolation; HDR and moving-camera flicker are not measured.
⚠️ Note: The 0% and 40% GPU timings and VRAM are reported for both builds, but the plan does not separately enforce their within-PR cost difference.
Done (started 01:50 UTC, last report 01:50 UTC). Comment
@Beanstalkto run it again.windows+amdlinux+amdsteamdeckCouldn't be judged: the tester's PC could not finish the test. The farm tries another PC, or the same one after a fix; it says nothing about the PR on its own.
windows+amd, report 1:main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store'swindows+amd, report 2:main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store'slinux+amd, report 1:main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store'slinux+amd, report 2:main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store'sWhat was tested
What will be tested · AI plan (
gpt-6.1-terra)On AMD Windows, AMD Linux and Steam Deck, the plan tests the requested Sharpness and upscaler combinations in the Market, including the game's own upscaler at 50% render resolution. Three starts per side capture screenshots at each combination and measure 20-second uncapped GPU and frame times at 0% and 40% Sharpness. A crash, a Vulkan error, a missing depth-sharpening log line, an excessive screenshot difference or a frame-time regression beyond the stated limits fails the PR. The Steam Deck target will wait for an online tester. No tester online now matches steamdeck: that target waits for one.
market-entrance(settings dlss=0, vsync=2, sharpness=0, resolution=1, frame_rate_cap=6, quality_preset=0; switchesHOS_OUTPUT_RES=gpu,RX_VK_AUTO_TUNE=0), then teleport to Market, take the picture own-0 to compare with main, measure own-0 for 20 s (after 10 s warm-up), set sharpness to 40, take the picture own-40 to compare with main, measure own-40 for 20 s (after 10 s warm-up), set sharpness to 100, take the picture own-100 to compare with main, set resolution to 4, take the picture own-50res-40 to compare with main, set resolution to 1, set dlss to 3, set sharpness to 0, take the picture fsr-0 to compare with main, take the picture fsr-40 to compare with main, take the picture fsr-100 to compare with main, set dlss to 6, take the picture off-0 to compare with main, take the picture off-40 to compare with main, take the picture off-100 to compare with main; 3 runs on each side.Measurements on `windows+amd`, for the PR description
Verdict: could not be judged on windows+amd (2 reports).
Hardware: 1: windows+amd+amd-proprietary+igpu+window+xess
AMD Radeon(TM) Graphics, 2.0.279AMD Ryzen 5 5600G with Radeon Graphics, 28 GB RAM; 2: windows+amd+amd-proprietary+dgpu+windowAMD Radeon RX 6950 XT, 2.0.353AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAMScene: market-sharpness, from the repository's save market-entrance (dlss=0, vsync=2, sharpness=0, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=gpu, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); market-sharpness: 3 game starts a side, own-0 20 s after 10 s warm-up, own-40 20 s after 10 s warm-up; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (
@Beanstalkon this PR runs it again)Nothing was measured: no metric came back.
Flags and settings
None: the plan varied no setting, switch or build option.
As Markdown for the PR description:
Measurements on `linux+amd`, for the PR description
Verdict: could not be judged on linux+amd (2 reports).
Hardware: 1: linux+amd+radv+dgpu
AMD Radeon RX 9070 (RADV GFX1201), 26.3.1AMD Ryzen 5 7600X3D 6-Core Processor, 32 GB RAM; 2: linux+amd+radv+dgpuAMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1AMD Ryzen 7 5700X3D 8-Core Processor, 32 GB RAMScene: market-sharpness, from the repository's save market-entrance (dlss=0, vsync=2, sharpness=0, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=gpu, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); market-sharpness: 3 game starts a side, own-0 20 s after 10 s warm-up, own-40 20 s after 10 s warm-up; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (
@Beanstalkon this PR runs it again)Nothing was measured: no metric came back.
Flags and settings
None: the plan varied no setting, switch or build option.
As Markdown for the PR description:
The testers' hardware
windows+amdAMD Radeon(TM) Graphics, 2.0.279AMD Ryzen 5 5600G with Radeon Graphics, 28 GB RAMwindows+amdAMD Radeon RX 6950 XT, 2.0.353AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAMlinux+amdAMD Radeon RX 9070 (RADV GFX1201), 26.3.1AMD Ryzen 5 7600X3D 6-Core Processor, 32 GB RAMlinux+amdAMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1AMD Ryzen 7 5700X3D 8-Core Processor, 32 GB RAM@review
Recommendation: Approve. The code is ready: only testing is left. The format and compiler fixes address the two code items, and the feature has been shown working on an RTX 5080. The weaker-GPU cost and affected Tier 1 hardware runs are still outstanding. Recommend approval; not approved on the forge.
Sharpness moves to the upscaled 3D scene before the HUD, with depth-aware RCAS and HDR handling. It preserves the HUD and improves near detail, at the cost of a full-resolution copy and compute pass and stronger flicker at high settings.
Testing before merging (2) (runs on the systems it can change; it doesn't hold the recommendation)
gpu/vk/vk_sharpen.cpp:243: The new full-resolution copy and depth-sampling pass have not been measured on a weaker GPU. When: A Steam Deck or integrated GPU with Sharpness enabled must copy the scene and run the full-size pass every frame; the RTX 5080's 0.055 ms span does not establish its frame-time or memory cost there. Do: Measure frame time, 1% lows and VRAM on a Steam Deck or comparable integrated GPU at 0% and 40%, using the same scene and settings over repeated runs. (@fixdoes its part first: Reduce or avoid the full-resolution copy and depth reads, or use a cheaper path on bandwidth-limited devices.)gpu/vk/shaders/sharpen.comp:76: The new rendering and depth path has not yet run on the other affected Tier 1 hardware. When: AMD on Windows and Linux and Steam Deck can take different shader, image-format and scene-depth paths from the tested Windows NVIDIA system. Do: Run the requested 0%, 40% and 100% checks on AMD and Steam Deck, including the game's own upscaler at reduced resolution, and verify the depth log and picture.@fixcan do L3.Since the last review (on
caee78a54f)Resolved: L1 (The packed-format pipeline is created unconditionally without checking shaderStorageImageE…); L2 (The new check hard-codes g++ instead of using the compiler selected by the test runner.)
Still open: L3 (The new full-resolution copy and depth-sampling pass have not been measured on a weaker GP…); L4 (The new rendering and depth path has not yet run on the other affected Tier 1 hardware.)
Checks: Still running: 11 checks.
Also noticed (2; not asked for, not blocking)
More: does it help, other systems, switches, what was read
Does it help: Yes for the demonstrated visual change: the author's Market measurements show minimap detail unchanged at 40%, versus 1.08 times the 0% setting on main, and near paving detail at 1.26 versus 1.10. The reported RTX 5080 pass cost is about 0.055 ms, but weak-GPU cost remains unmeasured.
Other systems: The pass affects upscalers, HDR modes, depth capture, frame generation and Vulkan devices. Windows RTX 5080 game runs cover several modes; AMD, Intel, Steam Deck and Linux game runs remain outstanding. Linux host compilation is reported, without a full build or game run.
Switches: RX_VK_SHARPEN_DEPTH is added and defaults on; setting it to 0 disables depth attenuation. The reported sky and distant-detail measurements support the default. Sharpness remains at 0% by default.
Reviewed:
78fc956f07against7375aa5516: Read gpu/vk/vk_sharpen.cpp, gpu/vk/vk_sharpen.h, gpu/vk/shaders/sharpen.comp and tests/test_sharpen.py in full, along with the latest fix diff, commit list, repository rules and PR template. The remaining changed code and full base diff were not read in full; translations and recorded runs were skimmed.; nothing run (a code review).Checked and fine:
Testing: No commands from the project were run for this review. The author reports current-head targeted checks and game runs; CI checks are still running.
Overlaps and merge order: PR 2940 also changes Sharpness; this PR describes the different placement and method. No merge order established.
Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.