Skip to content

fix(shader): plan adjusted samplers behind runtime buffer descriptors - #29025

Open
brajankw wants to merge 4 commits into
boykopovar:mainfrom
brajankw:fix/shader-nested-adjusted-sampler
Open

brajankw wants to merge 4 commits into
boykopovar:mainfrom
brajankw:fix/shader-nested-adjusted-sampler

Conversation

@brajankw

@brajankw brajankw commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

What

A nested sampler-table read could be rejected when an adjusted sample ORed reserved bits into the sampler’s fourth word. The nested-table check now follows adjustments already proven safe through to the sampler handle. The regression compares the nested table’s sampled output with and without the adjustment.

Part of #28913.

Tested

Windows 11 Pro, WinLibs GCC 15.2.0 Release. agc_driver_nested_sampler_table and agc_shader_bindless passed (2/2). The Vulkan loader inserted Khronos validation 1.4.363 and reported 0 VUID on the change. The fail-before run remains unverified. Conventions, debt fold, and whitespace passed for the nested-table patch over #27947 and main. The revised nested-table check is in 067471194ff.

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: fix(shader): keep adjusted table S# reads planning-only #27947
  • Fixes: none
  • Unblocks: none
  • GPUs tested: NVIDIA GeForce RTX 4070 SUPER, driver 621.24, Windows 11 Pro
  • AI-assisted: yes

Created with GPT-6.2 Sol in Codex.

Summary by CodeRabbit

  • Bug Fixes
    • Improved handling of adjusted sampler-table instructions, helping prevent validation failures and unexpected output.
    • Confirmed that sampler-table operations with reserved descriptor bits continue to produce the same results as their unadjusted equivalents.

lgqdaxia and others added 4 commits November 27, 2026 11:30
Follow-up to boykopovar#27779. When dword 3 of a table S# is stripped for an
_a sample, the ORs taken off are recorded in the column plan and the
planned-read check accepts them as uses that feed the table handle, so
the table read stays planning-only instead of a GPU memory access.
Dword 3 is also stripped before ResolveInvariantPhi, so OR(phi(read), v)
resolves to the read; the strip after it stays for an OR behind a phi.

verifyAdjustedTableSamplerDword3 plans an image_sample_a whose table
S# dword 3 also holds a ballot, with all table reads planning-only, and
still refuses the plain image_sample form.
The nested table check now follows recorded reserved-bit adjustments to the sampler handle. The sampler reads stay planning-only when every use goes through the nested table.
@coderabbitai

coderabbitai Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Changes: Adjusted sampler table planning

Layer / File(s) Summary
Record adjusted dword-3 expressions
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
Sampler dword-3 canonicalization records stripped OR expressions in the table-column plan. TryMakeTableColumn applies this canonicalization before and after invariant-phi resolution.
Traverse planned reads
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
Table-planning read checks use followsTableUses to accept planned table-column uses or recursively follow recorded adjusted-word nodes.
Verify adjusted sampler planning and execution
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp, core/libs/prx/libSceAgcDriver/tests/execution/ImageTable.cpp
Bindless tests check adjusted and unadjusted sampler planning. Execution tests check that adjusted sampler bytecode does not fault and matches baseline output.

Possibly related PRs

  • boykopovar/AnyPS5#27856: Adds dword-3 canonicalization for table S# reads used by image_sample_a; this change extends the related nested-table planning check.
  • boykopovar/AnyPS5#27947: Records stripped OR nodes in the column plan, which the table-planning read check now follows.
  • boykopovar/AnyPS5#27779: Introduces the sample-adjust rule that removes a reserved-bit OR operand when all handle consumers use adjusted sampling.

Suggested labels: shader, agc

Suggested reviewers: celegans12, eaglebearerys, marczx10, plyxen

Change: Bug fix

Merge Risk: Minimal · up to 06747

The change lets adjusted sampler reads through nested sampler tables plan correctly, and it adds planning and execution tests. No concrete merge-blocking problem was found. One exotic input form, an invariant phi feeding the adjusted word, may still not be planned, as it was not before this PR.

Security architecture risk: Minimal · up to 06747

The shader recompiler accepts more adjusted sampler-table reads without relaxing descriptor layout checks or removing reads that still have unplanned consumers. No new security or failure-containment issue was established.

Security review details

Security Blast Radius

  • observed — The changed production decision is scoped to the resource plan for the shader being compiled. The source comparison shows no new production entrypoint or deployment setting.

Trust Boundaries and Controls

  • observed — Before treating the guest shader expression as a table read, ResourceTracker checks that every handle use is an adjusted sample with valid memory metadata. After stripping the reserved-bit OR operands from sampler dword 3, it still verifies the underlying read's memory index, heap identity, and descriptor layout.

Dependencies

  • inferred — The planner relies on the existing adjusted-sampler rule that stripping bits proven to be reserved preserves sampling behavior. The execution regression checks output equivalence for the nested case; it does not establish that guarantee across all backends or descriptor variants.

Data and control flow

  • observed — ResourceTracker records stripped expressions on the candidate plan. After planning, it identifies reads whose consumers are all covered by committed plans, rewrites planned handles, and removes those covered reads from dynamic-read metadata.

Resilience and Maintainability Implications

  • observed — A failed use check rejects the nested candidate or keeps the read in dynamic tracking, depending on the stage. When planning retries for resource limits, it restores the prior plans and read bookkeeping before rerunning the checks. This preserves read ownership; it does not guarantee that a shader rejected for table planning can compile through the direct path.

Hardening Proposals

  • proposed — Consider an iterative use walk with a work budget and a conservative rejection when the budget is exhausted, so the validation does not depend on the depth of guest-derived expressions.
Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Some tools did not complete. Review the errors below.

Cppcheck (2.22.0)

Cppcheck (2.22.0) exceeded its 180-second time budget. Findings from completed work are retained; remaining checks are incomplete.

core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp

Cppcheck interrupted; analysis of this file is incomplete

Usage-based review receipt

  • Mode: Continue automatically
  • Reviewed files: 3
  • Waived: $0.75 (charged $0.00)
  • View usage details

Note

This review exceeded your plan’s limits and used usage-based reviews—free during trial, billed after paid activation unless disabled. Manage usage-based reviews.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f753801b-718e-44ce-b2bb-a9ba4637e7fb
Commits

Reviewing files that changed from the base of the PR and between 4061676 and 0674711.

Files selected for processing: 3

  • core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
  • core/libs/prx/libSceAgcDriver/tests/execution/ImageTable.cpp
  • core/shader/recompiler/Optimization/src/ResourceTracker.cpp

Limit details: You’ve used all 10 included reviews currently available.

@tablefrogpillow

Copy link
Copy Markdown
Contributor

Confirming on Radeon RX Vega 56 (GCN5/gfx900), RADV Linux with a clean fix-toggle — it discriminates.

Build: fresh dir from PR head 067471194f, base 15a8338f8e.

Fix-toggle on agc_driver_image_table:

arm result
A — PR head PASS (3/3 re-runs)
B — revert core/shader/recompiler/Optimization/src/ResourceTracker.cpp, rebuild FAIL

ARM-B fails on exactly the case this PR fixes:

ShaderRecompiler::Recompile: GetSamplerResource dword 0 is not a valid runtime value

plans adjusted samplers behind runtime buffer descriptors No validation errors on ARM A.

@github-actions github-actions Bot added shader core/shader agc libSceAgc* labels Dec 4, 2026
@github-actions

github-actions Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 16812 core/shader/recompiler/Optimization/src/ResourceTracker.cpp L960, L2418-2426
PR 16814 core/shader/recompiler/Optimization/src/ResourceTracker.cpp L960, L2418-2426
PR 20519 core/shader/recompiler/Optimization/src/ResourceTracker.cpp L282, L960
PR 28132 core/shader/recompiler/Optimization/src/ResourceTracker.cpp L873-874
PR 28242 core/shader/recompiler/Optimization/src/ResourceTracker.cpp L873-874

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 6280 core/shader/recompiler/Optimization/src/ResourceTracker.cpp
PR 6412 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 6488 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
PR 7085 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
PR 7642 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
PR 7684 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/libs/prx/libSceAgcDriver/tests/execution/ImageTable.cpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
PR 9356 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 9387 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 9508 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 9633 core/libs/prx/libSceAgcDriver/tests/execution/ImageTable.cpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
PR 9790 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/libs/prx/libSceAgcDriver/tests/execution/ImageTable.cpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
PR 9852 core/shader/recompiler/Optimization/src/ResourceTracker.cpp
PR 9897 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
PR 9969 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/libs/prx/libSceAgcDriver/tests/execution/ImageTable.cpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
PR 10193 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
PR 10359 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 10867 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 11483 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 11551 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 12324 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 12828 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 13928 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
PR 13929 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
PR 14032 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
PR 14853 core/libs/prx/libSceAgcDriver/tests/execution/ImageTable.cpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
PR 14944 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
PR 15343 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 15548 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 15555 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/libs/prx/libSceAgcDriver/tests/execution/ImageTable.cpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
PR 16935 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 17056 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 17611 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 18106 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/libs/prx/libSceAgcDriver/tests/execution/ImageTable.cpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
PR 18107 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/libs/prx/libSceAgcDriver/tests/execution/ImageTable.cpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
PR 20030 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 20111 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 20153 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 20518 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 21240 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 21745 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
PR 21763 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
PR 22071 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 22251 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 22328 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 22424 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/libs/prx/libSceAgcDriver/tests/execution/ImageTable.cpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
PR 22439 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 22647 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 23242 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
PR 23553 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 23811 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 25010 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 25489 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 26012 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
PR 26766 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 27847 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 28142 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 28176 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
PR 28376 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 28400 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 28469 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/libs/prx/libSceAgcDriver/tests/execution/ImageTable.cpp
PR 28470 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/libs/prx/libSceAgcDriver/tests/execution/ImageTable.cpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
PR 28487 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/libs/prx/libSceAgcDriver/tests/execution/ImageTable.cpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
PR 28586 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 28668 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 28673 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/libs/prx/libSceAgcDriver/tests/execution/ImageTable.cpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
PR 28808 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed — looks good

Nothing blocks this; the points below are optional.

What I ran

Reviewed head 067471194ffa0a1ff72a9a8424ab9c815f6907c5. I inspected the prepared diff and the changed code around the affected planner and regression tests using repo_read.py; I did not run tests or a build. No merged preview was run.

Commands:

repo_read.py cat core/shader/recompiler/Optimization/src/ResourceTracker.cpp 240 370
repo_read.py cat core/shader/recompiler/Optimization/src/ResourceTracker.cpp 850 1000
repo_read.py cat core/shader/recompiler/Optimization/src/ResourceTracker.cpp 2400 2505
repo_read.py cat core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp 6865 6930
repo_read.py cat core/libs/prx/libSceAgcDriver/tests/execution/ImageTable.cpp 2075 2130

Results

Check Result Note
Diff and source review passed All three changed files reviewed
Author-reported checks not run Windows tests and validation were reported by the author
Local tests and build not run No compilation or execution performed

Negative control

The author reports that the fail-before run remains unverified. I did not run a negative control.

Findings

Blocking

None.

Non-blocking

None.

Sources

Not verified

I did not run the reported Windows tests or Vulkan validation, confirm the physical GPU behavior, or verify the fail-before behavior. The manifest lists three reviewed files and no excluded files; I inspected the changed hunks and relevant surrounding code, not the full contents of the large test files.

To get this to a good state

Nothing is required.

@JJenkx

JJenkx commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

Windows at this head (067471194ffa): agc_driver_image_table, agc_driver_nested_image_table, agc_driver_nested_image_table_large, agc_driver_nested_image_table_budget, agc_driver_nested_sampler_table, agc_driver_pointer_phi_sampler_table, agc_driver_pointer_phi_ballot_table, agc_driver_pointer_phi_copies_table, agc_driver_pointer_phi_lane_and_table, agc_driver_pointer_phi_high_table, agc_driver_pointer_phi_high_second_lane_table, agc_driver_pointer_phi_lane_not_table, agc_driver_pointer_vsharp_select_table, agc_driver_pointer_hop_table, agc_driver_pointer_vsharp_fixed_table, agc_driver_pointer_vsharp_fixed_offset_table, agc_driver_nested_image_table_shared_scan, agc_shader_bindless, agc_shader_table_binding_growth, agc_shader_table_resolution_growth, agc_shader_empty_table_resolution, agc_shader_shared_table_resolution, agc_shader_selected_records_image_limit, agc_shader_selected_records_pair_limit, agc_shader_selected_records_direct_image_limit, agc_shader_selected_records_direct_pair_limit, agc_shader_sampler_limits, agc_shader_image_limits_table, agc_shader_image_limits_mixed, agc_shader_image_limits_refusals, agc_shader_srt_read_patching, agc_shader_descriptor_phis, agc_shader_registered_view_churn, agc_shader_nested_snapshot_retry, agc_shader_nested_sampler_snapshot_retry, agc_shader_nested_parent_scan_budget, agc_shader_table_keep, agc_shader_table_snapshot_reuse, agc_shader_region_merge, agc_shader_table_snapshot_reuse_unmasked, agc_shader_type_zero_image_materialization, agc_shader_frontend_pair, agc_shader_quad_mask_no_demote, agc_shader_spanned_shuffle_memory, agc_shader_frontend_pair_off, agc_shader_result_memo_budget, agc_shader_result_memo_budget_threads, agc_shader_result_memo_budget_masked, agc_shader_result_memo_ways, agc_shader_result_memo_ways_masked, agc_shader_layout_pair, agc_shader_layout_pair_off, agc_shader_entry_lane_proof_budget, agc_shader_memory, agc_shader_memory_coherent_atomic_loads, agc_shader_specialized_bda_abi_none, agc_shader_layer_specialization_release, agc_shader_layer_specialization_kept, agc_shader_specialized_module_release, agc_shader_specialized_module_kept pass, 3/3 runs. These are the CTests built from the changed ShaderMemory.cpp, ImageTable.cpp.

Setup:

  • Windows 11 22621, Ryzen 9 5950X, MinGW-w64 GCC 15.2 UCRT r7, Release.
  • The exact PR head was built (not merged into main).
  • 3 runs through the shared FIFO.

The added test lines are not inside a platform guard.

AI-assisted: yes.

@THEMANnt THEMANnt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could the regression include one sampler used by both an adjusted sample and an ordinary sample? The planner strips the clamp only when every use is adjusted, but the current positive and negative cases use separate single-consumer handles. A mixed-use case would catch a future change that strips the clamp as soon as any one use is adjusted.

@nexus1692

Copy link
Copy Markdown
Contributor

AI-assisted: yes (FreeBuff). Independent Blackwell validation of 0674711 on NVIDIA GeForce RTX 5070 Ti (driver 621.47) with Khronos Validation Layer 1.4.363.

Validated 067471194f merged into main 83cf2f32c2 on Windows 11, Release build.

  • The PR head already contains fix(shader): keep adjusted table S# reads planning-only #27947 (0a8d778a10 is an ancestor), so no separate stack was necessary.

  • Built agc_driver_image_table_tests and agc_shader_memory_tests; build exited 0.

  • Three consecutive runs with:

    • ANYPS5_REQUIRE_VULKAN=1
    • ANYPS5_NO_SHADER_CACHE=1
    • ANYPS5_GPU="NVIDIA GeForce RTX 5070 Ti"
    • VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation
    • VK_LOADER_DEBUG=layer
    • VK_LAYER_PATH=C:\VulkanSDK\1.4.363.0\Bin

    Results:

    • agc_driver_nested_sampler_table: PASS
    • agc_shader_bindless: PASS
    • 2/2 passed on every run; 0 skipped, 0 failed, 0 VUID, 0 SYNC-HAZARD.
    • Each run selected NVIDIA GeForce RTX 5070 Ti and inserted VK_LAYER_KHRONOS_validation from C:\VulkanSDK\1.4.363.0\Bin\VkLayer_khronos_validation.dll.
  • Fail-before: reverted only core/shader/recompiler/Optimization/src/ResourceTracker.cpp to origin/main, rebuilt, and ran agc_driver_nested_sampler_table. It failed with:
    ShaderRecompiler::Recompile: GetSamplerResource dword 0 is not a valid runtime value
    followed by the full chain: expression.

Restoring the PR version and rebuilding returned both tests to PASS. No validation errors were reported on the PR arm.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agc libSceAgc* shader core/shader

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants