perf(shader): reuse compute pipelines across sampled component changes #28228

Open
EEkebin wants to merge 4 commits from upstream-pr/28228 into main
EEkebin commented 2026-11-29 10:18:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EEkebin on 2026-11-29T10:18:37Z.


What

Direct sampled images in compute shaders can differ only in how the descriptor selects each returned component. Carry the four selectors and their typed zero/one overrides in one dispatch-data word per image index when the compute layout has a direct sampled pair. Store the words in push constants when the layout fits, or in the existing shader-data buffer. The shader reads its own image's word at dispatch. Image mode and normalized-value specialization are retained. Record the new layout field in shader disk cache format 99.

This trades constant folding of these particular component choices for pipeline reuse across them. The extra words can move a layout across the push-constant budget. The measured outcome here is the number of native pipelines created for a synthetic pair. The effect on steady-state GPU time and application frame rate is unmeasured.

Tested

Windows 10.0.26300, RTX 4090 (621.40), Release MinGW GCC 15.2. The fixture runs two dispatches of the same compute program and R32 float image. In the first, alpha selects constant one. In the second, alpha selects the red texel containing 0.25. Each dispatch checks all 32 lane outputs after GPU completion.

Exact-source 128-byte push-budget replay Main e89b87ab223c PR fa639e0c9d73
Native compute pipelines created during the two dispatches 2 1
Correct lane outputs 64/64 64/64
  • agc_driver_runtime_images also exercised a zero-byte push budget (storage-backed dispatch data). The PR created one native pipeline for the pair with either budget. Seven mixed-alpha cases under each budget checked 448 lane outputs, including float one, integer one, zero and sampled values. The float selector changes kept identical SPIR-V words and pipeline identity.
  • agc_shader_disk_cache exercised fresh child processes. The seed process recorded two variant misses. The warm process recorded one plan hit, two variant hits and zero variant misses. Both data layouts preserved their packed component word. Changing SPIR-V contents or adding a retained specialization changed the identity. A loose entry genuinely written by the format-98 baseline was placed at the expected format-99 lookup path and the candidate rejected it. A format-99 control loaded.
  • The two focused tests and the table, mixed and refusal variants of agc_shader_image_limits passed on both revisions. Focused Vulkan runs used ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation and VK_LOADER_DEBUG=layer. The loader inserted layer 1.4.369 and logged zero VUIDs. The disk-cache fixture explicitly enables its private cache.
  • Same-scene traces cover a single real 128 × 128 present around the pair, after a warm-up run and restart per revision. They include shader materialization, both dispatches, waits, result checks and presentation. One frame per revision is insufficient for a timing conclusion. Reproducer and settings · Main trace · PR trace · Main digest · PR digest
{"commit":"e89b87ab223c","dirty":false,"env":{"APS5_TRACE_FRAMES":"0:1"},"gpu":"NVIDIA GeForce RTX 4090","driver":"NVIDIA 621.40","os":"Windows 10.0.26300","cpu":"13th Gen Intel(R) Core(TM) i7-13700K","cpu_threads":24,"memory_mib":65220,"resolution":"128x128","window":{"spec":"frames 0:1","first_present":0,"ms":6.818},"presents":1,"frame_ms":{"p50":6.818,"p90":6.818,"p99":6.818,"max":6.818},"gpu_busy_ms_per_present":0.573,"worker_busy_pct":{},"phase_totals_ms":{"Recorder.Submit":0.300,"Recorder.Sync":0.646,"Resources.Complete":1.558,"Resources.Prepare":0.200,"Vulkan.Acquire":0.032,"Vulkan.Acquire.acquire_fence_wait":0.002,"Vulkan.Acquire.acquire_image":0.010,"Vulkan.Acquire.fence_reset":0.003,"Vulkan.Acquire.retired_swapchains":0.016,"Vulkan.ComputePipeline":1.149,"Vulkan.Dispatch":2.984,"Vulkan.Dispatch.command_record":0.041,"Vulkan.Dispatch.pipeline_create":1.164,"Vulkan.Dispatch.shader_resources":1.778,"Vulkan.Present":0.088,"Vulkan.Present.command_record_scale":0.031,"Vulkan.Present.pixel_upload":0.021,"Vulkan.Present.queue_submit":0.036,"Vulkan.QueuePresent":0.301,"Vulkan.QueuePresent.queue_present":0.300,"Vulkan.Retire":0.053,"Vulkan.Retire.wait":0.044},"top_phases_ms_per_frame":{"Vulkan.Dispatch":2.984,"Vulkan.Dispatch.shader_resources":1.778,"Resources.Complete":1.558,"Vulkan.Dispatch.pipeline_create":1.164,"Vulkan.ComputePipeline":1.149,"Recorder.Sync":0.646,"Vulkan.QueuePresent":0.301,"Vulkan.QueuePresent.queue_present":0.300},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.dispatch-lead":2,"Graphics.Barrier.dispatch-trail":2,"Graphics.Barrier.present-blit":2,"Graphics.Copy":2,"Graphics.Copy.bytes":512},"trace_dropped":false,"trace":"aps5-trace-e89b87ab223c-22496.json.gz"}
{"commit":"fa639e0c9d73","dirty":false,"env":{"APS5_TRACE_FRAMES":"0:1"},"gpu":"NVIDIA GeForce RTX 4090","driver":"NVIDIA 621.40","os":"Windows 10.0.26300","cpu":"13th Gen Intel(R) Core(TM) i7-13700K","cpu_threads":24,"memory_mib":65220,"resolution":"128x128","window":{"spec":"frames 0:1","first_present":0,"ms":5.633},"presents":1,"frame_ms":{"p50":5.633,"p90":5.633,"p99":5.633,"max":5.633},"gpu_busy_ms_per_present":0.569,"worker_busy_pct":{},"phase_totals_ms":{"Recorder.Submit":0.235,"Recorder.Sync":0.618,"Resources.Complete":1.458,"Resources.Prepare":0.245,"Vulkan.Acquire":0.028,"Vulkan.Acquire.acquire_fence_wait":0.002,"Vulkan.Acquire.acquire_image":0.009,"Vulkan.Acquire.fence_reset":0.003,"Vulkan.Acquire.retired_swapchains":0.014,"Vulkan.ComputePipeline":0.582,"Vulkan.Dispatch":2.336,"Vulkan.Dispatch.command_record":0.025,"Vulkan.Dispatch.pipeline_create":0.589,"Vulkan.Dispatch.shader_resources":1.721,"Vulkan.Present":0.080,"Vulkan.Present.command_record_scale":0.028,"Vulkan.Present.pixel_upload":0.022,"Vulkan.Present.queue_submit":0.030,"Vulkan.QueuePresent":0.308,"Vulkan.QueuePresent.queue_present":0.308,"Vulkan.Retire":0.058,"Vulkan.Retire.wait":0.047},"top_phases_ms_per_frame":{"Vulkan.Dispatch":2.336,"Vulkan.Dispatch.shader_resources":1.721,"Resources.Complete":1.458,"Recorder.Sync":0.618,"Vulkan.Dispatch.pipeline_create":0.589,"Vulkan.ComputePipeline":0.582,"Vulkan.QueuePresent":0.308,"Vulkan.QueuePresent.queue_present":0.308},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.dispatch-lead":2,"Graphics.Barrier.dispatch-trail":2,"Graphics.Barrier.present-blit":2,"Graphics.Copy":2,"Graphics.Copy.bytes":512},"trace_dropped":false,"trace":"aps5-trace-fa639e0c9d73-22428.json.gz"}

Overlap review. #13821 introduced the merged component-specialization path this changes for compute. The branch checker reviewed 2,134 open PRs. Eleven touch the same cache-format version line (#7085, #16472, #16631, #16812, #16814, #22602, #22690, #22692, #22703, #23244, #28176), and #20130 adds a neighboring disk-cache test invocation. If another serialization change lands first, this layout will need the next available format number. The checker could not merge 64 additional shared-file branches onto the base. Reviewing the shared-file diffs revealed no duplicate implementation of this dispatch-data layout.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt and the licence notice of code adapted from upstream (see AGENTS.md)
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: NVIDIA GeForce RTX 4090, driver 621.40, Windows 10.0.26300
  • AI-assisted: yes

Summary by CodeRabbit

  • Bug Fixes
    • Image component selections now remain correct across repeated dispatches, including when push constants are unavailable.
    • Changing image selectors preserves shader and pipeline identity where applicable, avoiding unnecessary pipeline recreation.
    • Multiple sampled images can use independently selected components, with consistent results across supported push-constant configurations and image formats with alpha selectors.
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5549763382 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/28228). Originally posted by [EEkebin](https://github.com/EEkebin) on 2026-11-29T10:18:37Z. --- ### What Direct sampled images in compute shaders can differ only in how the descriptor selects each returned component. Carry the four selectors and their typed zero/one overrides in one dispatch-data word per image index when the compute layout has a direct sampled pair. Store the words in push constants when the layout fits, or in the existing shader-data buffer. The shader reads its own image's word at dispatch. Image mode and normalized-value specialization are retained. Record the new layout field in shader disk cache format 99. This trades constant folding of these particular component choices for pipeline reuse across them. The extra words can move a layout across the push-constant budget. The measured outcome here is the number of native pipelines created for a synthetic pair. The effect on steady-state GPU time and application frame rate is unmeasured. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> Windows 10.0.26300, RTX 4090 (621.40), Release MinGW GCC 15.2. The fixture runs two dispatches of the same compute program and R32 float image. In the first, alpha selects constant one. In the second, alpha selects the red texel containing 0.25. Each dispatch checks all 32 lane outputs after GPU completion. | Exact-source 128-byte push-budget replay | Main `e89b87ab223c` | PR `fa639e0c9d73` | |---|---:|---:| | Native compute pipelines created during the two dispatches | 2 | 1 | | Correct lane outputs | 64/64 | 64/64 | - `agc_driver_runtime_images` also exercised a zero-byte push budget (storage-backed dispatch data). The PR created one native pipeline for the pair with either budget. Seven mixed-alpha cases under each budget checked 448 lane outputs, including float one, integer one, zero and sampled values. The float selector changes kept identical SPIR-V words and pipeline identity. - `agc_shader_disk_cache` exercised fresh child processes. The seed process recorded two variant misses. The warm process recorded one plan hit, two variant hits and zero variant misses. Both data layouts preserved their packed component word. Changing SPIR-V contents or adding a retained specialization changed the identity. A loose entry genuinely written by the format-98 baseline was placed at the expected format-99 lookup path and the candidate rejected it. A format-99 control loaded. - The two focused tests and the table, mixed and refusal variants of `agc_shader_image_limits` passed on both revisions. Focused Vulkan runs used `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1`, `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation` and `VK_LOADER_DEBUG=layer`. The loader inserted layer 1.4.369 and logged zero VUIDs. The disk-cache fixture explicitly enables its private cache. - Same-scene traces cover a single real 128 × 128 present around the pair, after a warm-up run and restart per revision. They include shader materialization, both dispatches, waits, result checks and presentation. One frame per revision is insufficient for a timing conclusion. [Reproducer and settings](https://github.com/EEkebin/AnyPS5/blob/592ad2a6e26e2ae24813995d130c580b08cc741e/README.md) · [Main trace](https://github.com/EEkebin/AnyPS5/blob/592ad2a6e26e2ae24813995d130c580b08cc741e/main/aps5-trace-e89b87ab223c-22496.json.gz) · [PR trace](https://github.com/EEkebin/AnyPS5/blob/592ad2a6e26e2ae24813995d130c580b08cc741e/candidate/aps5-trace-fa639e0c9d73-22428.json.gz) · [Main digest](https://github.com/EEkebin/AnyPS5/blob/592ad2a6e26e2ae24813995d130c580b08cc741e/main/digest.txt) · [PR digest](https://github.com/EEkebin/AnyPS5/blob/592ad2a6e26e2ae24813995d130c580b08cc741e/candidate/digest.txt) ```jsonl {"commit":"e89b87ab223c","dirty":false,"env":{"APS5_TRACE_FRAMES":"0:1"},"gpu":"NVIDIA GeForce RTX 4090","driver":"NVIDIA 621.40","os":"Windows 10.0.26300","cpu":"13th Gen Intel(R) Core(TM) i7-13700K","cpu_threads":24,"memory_mib":65220,"resolution":"128x128","window":{"spec":"frames 0:1","first_present":0,"ms":6.818},"presents":1,"frame_ms":{"p50":6.818,"p90":6.818,"p99":6.818,"max":6.818},"gpu_busy_ms_per_present":0.573,"worker_busy_pct":{},"phase_totals_ms":{"Recorder.Submit":0.300,"Recorder.Sync":0.646,"Resources.Complete":1.558,"Resources.Prepare":0.200,"Vulkan.Acquire":0.032,"Vulkan.Acquire.acquire_fence_wait":0.002,"Vulkan.Acquire.acquire_image":0.010,"Vulkan.Acquire.fence_reset":0.003,"Vulkan.Acquire.retired_swapchains":0.016,"Vulkan.ComputePipeline":1.149,"Vulkan.Dispatch":2.984,"Vulkan.Dispatch.command_record":0.041,"Vulkan.Dispatch.pipeline_create":1.164,"Vulkan.Dispatch.shader_resources":1.778,"Vulkan.Present":0.088,"Vulkan.Present.command_record_scale":0.031,"Vulkan.Present.pixel_upload":0.021,"Vulkan.Present.queue_submit":0.036,"Vulkan.QueuePresent":0.301,"Vulkan.QueuePresent.queue_present":0.300,"Vulkan.Retire":0.053,"Vulkan.Retire.wait":0.044},"top_phases_ms_per_frame":{"Vulkan.Dispatch":2.984,"Vulkan.Dispatch.shader_resources":1.778,"Resources.Complete":1.558,"Vulkan.Dispatch.pipeline_create":1.164,"Vulkan.ComputePipeline":1.149,"Recorder.Sync":0.646,"Vulkan.QueuePresent":0.301,"Vulkan.QueuePresent.queue_present":0.300},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.dispatch-lead":2,"Graphics.Barrier.dispatch-trail":2,"Graphics.Barrier.present-blit":2,"Graphics.Copy":2,"Graphics.Copy.bytes":512},"trace_dropped":false,"trace":"aps5-trace-e89b87ab223c-22496.json.gz"} {"commit":"fa639e0c9d73","dirty":false,"env":{"APS5_TRACE_FRAMES":"0:1"},"gpu":"NVIDIA GeForce RTX 4090","driver":"NVIDIA 621.40","os":"Windows 10.0.26300","cpu":"13th Gen Intel(R) Core(TM) i7-13700K","cpu_threads":24,"memory_mib":65220,"resolution":"128x128","window":{"spec":"frames 0:1","first_present":0,"ms":5.633},"presents":1,"frame_ms":{"p50":5.633,"p90":5.633,"p99":5.633,"max":5.633},"gpu_busy_ms_per_present":0.569,"worker_busy_pct":{},"phase_totals_ms":{"Recorder.Submit":0.235,"Recorder.Sync":0.618,"Resources.Complete":1.458,"Resources.Prepare":0.245,"Vulkan.Acquire":0.028,"Vulkan.Acquire.acquire_fence_wait":0.002,"Vulkan.Acquire.acquire_image":0.009,"Vulkan.Acquire.fence_reset":0.003,"Vulkan.Acquire.retired_swapchains":0.014,"Vulkan.ComputePipeline":0.582,"Vulkan.Dispatch":2.336,"Vulkan.Dispatch.command_record":0.025,"Vulkan.Dispatch.pipeline_create":0.589,"Vulkan.Dispatch.shader_resources":1.721,"Vulkan.Present":0.080,"Vulkan.Present.command_record_scale":0.028,"Vulkan.Present.pixel_upload":0.022,"Vulkan.Present.queue_submit":0.030,"Vulkan.QueuePresent":0.308,"Vulkan.QueuePresent.queue_present":0.308,"Vulkan.Retire":0.058,"Vulkan.Retire.wait":0.047},"top_phases_ms_per_frame":{"Vulkan.Dispatch":2.336,"Vulkan.Dispatch.shader_resources":1.721,"Resources.Complete":1.458,"Recorder.Sync":0.618,"Vulkan.Dispatch.pipeline_create":0.589,"Vulkan.ComputePipeline":0.582,"Vulkan.QueuePresent":0.308,"Vulkan.QueuePresent.queue_present":0.308},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.dispatch-lead":2,"Graphics.Barrier.dispatch-trail":2,"Graphics.Barrier.present-blit":2,"Graphics.Copy":2,"Graphics.Copy.bytes":512},"trace_dropped":false,"trace":"aps5-trace-fa639e0c9d73-22428.json.gz"} ``` **Overlap review.** #13821 introduced the merged component-specialization path this changes for compute. The branch checker reviewed 2,134 open PRs. Eleven touch the same cache-format version line (#7085, #16472, #16631, #16812, #16814, #22602, #22690, #22692, #22703, #23244, #28176), and #20130 adds a neighboring disk-cache test invocation. If another serialization change lands first, this layout will need the next available format number. The checker could not merge 64 additional shared-file branches onto the base. Reviewing the shared-file diffs revealed no duplicate implementation of this dispatch-data layout. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) and the licence notice of code adapted from upstream (see AGENTS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: NVIDIA GeForce RTX 4090, driver 621.40, Windows 10.0.26300 - [x] AI-assisted: yes <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Bug Fixes** * Image component selections now remain correct across repeated dispatches, including when push constants are unavailable. * Changing image selectors preserves shader and pipeline identity where applicable, avoiding unnecessary pipeline recreation. * Multiple sampled images can use independently selected components, with consistent results across supported push-constant configurations and image formats with alpha selectors. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
MarcZX10 commented 2026-11-29 10:35:42 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-29T10:35:42Z.

Review: APPROVED


Reviewed — looks good

The shader dispatch-data change and all ten changed files were reviewed at head fa639e0c9d73852d80205f7fc3c22c4d3030eca0; no verified blocking defect was found.

What I ran

  • Read the prepared description, commit list, full diff, manifest, and all changed lines in the ten changed files.
  • Read targeted surrounding code for allocation, descriptor preparation, shader emission, cache serialization, and runtime image tests.
  • No commands or tests were run in this review environment.

Results

Check Result Note
Changed lines reviewed passed All ten changed files read
Tests run by reviewer not run Source review only
Author-reported checks not run Reported in PR description; not independently confirmed

Findings

Blocking

None verified.

Non-blocking

None.

Not verified

  • The reported Windows/Vulkan tests, cache replay, and performance captures were not independently run or inspected. Their results remain author-reported.
  • No changed files were excluded: all ten files listed as changed in the manifest were read. files.json was not present in the review folder; the review folder listing and manifest identify all ten changed files as included.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6102496733 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/28228#pullrequestreview-6102496733). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-29T10:35:42Z. **Review:** APPROVED --- # Reviewed — looks good The shader dispatch-data change and all ten changed files were reviewed at head `fa639e0c9d73852d80205f7fc3c22c4d3030eca0`; no verified blocking defect was found. ## What I ran - Read the prepared description, commit list, full diff, manifest, and all changed lines in the ten changed files. - Read targeted surrounding code for allocation, descriptor preparation, shader emission, cache serialization, and runtime image tests. - No commands or tests were run in this review environment. ## Results | Check | Result | Note | |---|---|---| | Changed lines reviewed | passed | All ten changed files read | | Tests run by reviewer | not run | Source review only | | Author-reported checks | not run | Reported in PR description; not independently confirmed | ## Findings ### Blocking None verified. ### Non-blocking None. ## Not verified - The reported Windows/Vulkan tests, cache replay, and performance captures were not independently run or inspected. Their results remain author-reported. - No changed files were excluded: all ten files listed as changed in the manifest were read. `files.json` was not present in the review folder; the review folder listing and manifest identify all ten changed files as included. ## To get this to a good state Nothing is required.
ligmaSec commented 2026-12-03 20:21:05 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T20:21:05Z.

Review: COMMENTED


The exact runtime and disk-cache cases use a single sampled image index. Could the execution fixture bind two direct sampled images with different component mappings at once, then change just the second mapping while reusing the pipeline? Checking both outputs on the push and storage paths would catch a bad index or offset in the new per-image dispatch data.

Source review at fa639e0c9d. Paired Vulkan execution is pending.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6177792165 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/28228#pullrequestreview-6177792165). Originally posted by [ligmaSec](https://github.com/ligmaSec) on 2026-12-03T20:21:05Z. **Review:** COMMENTED --- The exact runtime and disk-cache cases use a single sampled image index. Could the execution fixture bind two direct sampled images with different component mappings at once, then change just the second mapping while reusing the pipeline? Checking both outputs on the push and storage paths would catch a bad index or offset in the new per-image dispatch data. Source review at `fa639e0c9d`. Paired Vulkan execution is pending. AI-assisted: yes.
MarcZX10 commented 2026-12-04 04:11:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-04T04:11:57Z.

Review: APPROVED


Reviewed — looks good

Nothing blocks this; the points below are optional.

What I ran

Reviewed head 7fca3a21294de8820a877d0283ab167fca09217c using the prepared diff and manifest, then inspected the changed code and relevant callers through repo_read.py. No tests or build commands were run.

sed -n '1,300p' diff.patch
cat manifest.json
python3 repo_read.py search 'SampledImageFlags' core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
python3 repo_read.py cat core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp 535 630

Results

Check Result Note
Changed code review passed Dispatch data, shader loads, and cache serialization align.
Tests and build not run Author-reported results were not independently reproduced.
Changed file coverage passed 10 of 10 reviewed; no files excluded.

Negative Control

Not run; no source mutation or test execution was performed.

Findings

Blocking

None.

Non-blocking

None.

Sources

Not verified

Tests, build, and the reported Windows/RTX 4090 behavior were not independently run. The prepared files.json listed 10 changed files as reviewed and none as excluded.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6183079384 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/28228#pullrequestreview-6183079384). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-12-04T04:11:57Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this; the points below are optional. ## What I ran Reviewed head `7fca3a21294de8820a877d0283ab167fca09217c` using the prepared diff and manifest, then inspected the changed code and relevant callers through `repo_read.py`. No tests or build commands were run. ```text sed -n '1,300p' diff.patch cat manifest.json python3 repo_read.py search 'SampledImageFlags' core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp python3 repo_read.py cat core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp 535 630 ``` ## Results | Check | Result | Note | |---|---|---| | Changed code review | passed | Dispatch data, shader loads, and cache serialization align. | | Tests and build | not run | Author-reported results were not independently reproduced. | | Changed file coverage | passed | 10 of 10 reviewed; no files excluded. | ## Negative Control Not run; no source mutation or test execution was performed. ## Findings ### Blocking None. ### Non-blocking None. ## Sources - [Descriptor binding and dispatch data at the reviewed commit](https://github.com/boykopovar/AnyPS5/blob/7fca3a21294de8820a877d0283ab167fca09217c/core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp) - [SPIR-V image emission at the reviewed commit](https://github.com/boykopovar/AnyPS5/blob/7fca3a21294de8820a877d0283ab167fca09217c/core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp) - [Disk cache layout serialization at the reviewed commit](https://github.com/boykopovar/AnyPS5/blob/7fca3a21294de8820a877d0283ab167fca09217c/core/shader/recompiler/ShaderDiskCache.cpp) ## Not verified Tests, build, and the reported Windows/RTX 4090 behavior were not independently run. The prepared `files.json` listed 10 changed files as reviewed and none as excluded. ## To get this to a good state Nothing is required.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/28228:upstream-pr/28228'
git switch 'upstream-pr/28228'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/28228'
git switch 'upstream-pr/28228'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/28228'
git switch 'upstream-pr/28228'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/28228'
git switch 'main'
git merge --squash 'upstream-pr/28228'
git switch 'main'
git merge --ff-only 'upstream-pr/28228'
git switch 'main'
git merge 'upstream-pr/28228'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!28228
No description provided.