You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(agc): name the S# words in a refused guest sampler descriptor's error - #2051
Source commit: 4f16777a038aa213824538ec4f9215bbd3f9fc56. The import branch preserves this fetched upstream PR snapshot. The description and validation below are copied from upstream; no new code changes or test runs were made for this import. Original reviews, discussions, and attachments remain at the linked upstream PR.
A guest sampler descriptor that the driver refuses fails with a message such as "guest sampler descriptor uses point preclamping which is not implemented", but not which S# it was. Texture and buffer refusals already name their T# and V# words. DecodeSamplerResource now appends the four S# words to the error of every refusal it throws, as (S# xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx). The decode itself is unchanged.
Open PRs boykopovar#16935, boykopovar#14964 and boykopovar#26197 change the same function's signature or add refusals in it; none of them reports the descriptor words. Whichever lands second needs a one-line rebase.
Tested
Windows 11, MinGW Release build.
ctest --test-dir build -R "agc_graphics_profile_draw|sampler|image_table|border" -V: 60/60 passed, with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation and VK_LOADER_DEBUG=layer. The loader log shows Insert instance layer "VK_LAYER_KHRONOS_validation", has no was not found but was requested by env var VK_INSTANCE_LAYERS, and contains no VUID-.
The guest sampler tests require the words in the point preclamping refusal; that check fails on main and passes with this change.
In PPSA01317 (Gran Turismo 7) the words identified the refused samplers: one sets POINT_PRECLAMP, the others force sRGB decoding.
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
Errors encountered while decoding four-word sampler descriptors now include the descriptor’s values, making it easier to identify which sampler configuration caused the failure. For descriptors with other word counts, the existing error message is retained.
No actionable comments were generated in the recent review.
Walkthrough
Changes: Sampler error details
Layer / File(s)
Summary
Add descriptor context to decoder errors core/libs/prx/libSceAgcDriver/Graphics/src/GuestSamplerResource.cpp, core/libs/prx/libSceAgcDriver/tests/GuestSamplerResource.cpp
The public decoder wrapper appends the four-word descriptor to caught runtime errors when the input contains four words. The point-preclamp test checks the formatted descriptor in the error message.
Possibly related PRs
Thimo188/AnyPS5#288: Changes refusal paths and decode logic in DecodeSamplerResource, which this PR also modifies.
Change: Other
Merge Risk: Minimal · up to 4f167
This change adds the sampler descriptor words to refused-sampler error messages to make failures easier to diagnose. Decoding behavior is unchanged, and no concrete merge-blocking risk was found.
Security architecture risk: Minimal · up to 4f167
Sampler refusals now identify the descriptor that failed. The AGC driver still accepts and rejects the same descriptors, and the change does not require callers or operators to do anything differently.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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: 904ea247-f05d-45f2-a65f-d1d1b790a9eb
Commits
Reviewing files that changed from the base of the PR and between 4131f51 and 4f16777.
Limit details: You’ve used all 10 included reviews currently available.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Chef · project thread
What
A guest sampler descriptor that the driver refuses fails with a message such as "guest sampler descriptor uses point preclamping which is not implemented", but not which S# it was. Texture and buffer refusals already name their T# and V# words.
DecodeSamplerResourcenow appends the four S# words to the error of every refusal it throws, as(S# xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx). The decode itself is unchanged.Open PRs boykopovar#16935, boykopovar#14964 and boykopovar#26197 change the same function's signature or add refusals in it; none of them reports the descriptor words. Whichever lands second needs a one-line rebase.
Tested
ctest --test-dir build -R "agc_graphics_profile_draw|sampler|image_table|border" -V: 60/60 passed, withANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1,VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validationandVK_LOADER_DEBUG=layer. The loader log showsInsert instance layer "VK_LAYER_KHRONOS_validation", has nowas not found but was requested by env var VK_INSTANCE_LAYERS, and contains noVUID-.mainand passes with this change.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Summary by CodeRabbit