Repository navigation
Conversation
agc_driver_sample_location_grid_fallback counts the sample locations each created pipeline takes and expects one per pipeline, so with pipeline libraries only the fragment output library may take them. That holds only for narrow library keys, the default. With APS5_WIDE_LIBRARY_KEYS set the fragment shader library also takes the full multisample state, sample locations included, as the switch intends, and the case fails on every run with "the pipeline, its output library or its render pass did not take its sample locations once per pipeline, output library or attachment". Run the case under both settings, as the other library key cases do, expect two pipeline uses with libraries and wide keys, and reset the switch at the end. The existing location checks then also cover the fragment shader library's copy under wide keys. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ations-wide-keys # Conflicts: # core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
|
No actionable comments were generated in the recent review. Walkthrough
Change: Other Merge Risk:
|
What
agc_driver_sample_location_grid_fallback(sampleLocationGridFallbackTestsintests/Graphics.cpp) counts the sample locations each created pipeline takes and requires exactly one per pipeline. With pipeline libraries, that means only the fragment output library may take them.That holds only for narrow library keys, the default. With
APS5_WIDE_LIBRARY_KEYSset,libraryKeyskeys the fragment shader library by the full multisample state, andPipelineLibrary.cppbuilds that library withinfo.pMultisampleState, sample locations included, asdocs/dev/ENVIRONMENT.mddescribes for the switch. The mock then records two pipeline uses, and the case fails on every run withthe pipeline, its output library or its render pass did not take its sample locations once per pipeline, output library or attachment. The driver is doing what the switch says; the case reads the switch from the environment without setting it.The case now runs under both settings, as
pipelineLibraryDynamicDepthBiasTestsandLibraryKeysNarrow.cppalready do. Each draw assignsRuntimeSwitch::WideLibraryKeys, expects two pipeline uses with libraries and wide keys and one otherwise, and the case resets the switch at the end. The existing grid and location checks run over every use, so they now also check that the fragment shader library built under wide keys takes the same locations as the output library.Tested
Windows 11 Pro 10.0.26200, WinLibs GCC 15.2.0 r7, Release,
main63b2e14408.ANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1,VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation(1.4.363) andVK_LOADER_DEBUG=layer,ctest --test-dir build -R '^agc_driver_sample_location_grid_fallback$' -V, 5 runs per row, withANYPS5_GPUset to each GPU.mainmain,APS5_WIDE_LIBRARY_KEYS=1APS5_WIDE_LIBRARY_KEYS=1After boykopovar#19943's render pass change landed, I merged
main6f6f6c8e6binto the branch. TheRequirenow keepsmain'spassSampleLocations.empty()and this PR's two pipeline uses under wide keys. Same setup, 3 runs per row (the case uses a mock device, so the GPU doesn't matter):main6f6f6c8e6bAPS5_WIDE_LIBRARY_KEYS=1agc_*test (2,129) with each opt-in switch ofRuntimeSwitches.cppset, on the RTX 5080. WithAPS5_PROVEN_OVERWRITE,APS5_PIPELINE_DISPATCH_MISSES,APS5_DRAW_TABLE_SNAPSHOT,APS5_INDEX_IN_PLACE_BEHIND_WRITERandAPS5_PASS_STAGINGonly the failures already tracked in Windows: agc_driver_linear_target_import_creation fails every run since #10443 (private gate expects a 1 MiB settle floor) boykopovar/AnyPS5#26650, agc_driver_store_over_untracked is flaky on Windows: the second-store case sometimes finds no saved guest bytes boykopovar/AnyPS5#22670 and agc_driver_bda_device fails on NVIDIA Blackwell (RTX 5090, 621.01): read_bda_span gives the lanes on its dword path other lanes' results boykopovar/AnyPS5#22773 failed; withAPS5_WIDE_LIBRARY_KEYSthis case also failed, 2 of 2 alone, and passed without the switch.mainfailure is the message above.VUID-line.python3 tools/check_conventions.pypasses.python3 tools/pr_overlap.py --names sampleLocationGridFallbackTestslists no export.--branchcould not compare 40 open pull requests that edittests/Graphics.cppand conflict withmain. Of their diffs, only fix(agc): stop chaining sample locations into render pass begin boykopovar/AnyPS5#19943 touches this case: it changes the render pass half of the sameRequireline (passSampleLocations.empty()), on another topic, and still expects one pipeline use, so the case would fail under wide keys there too. That change is onmainnow; the merge above resolves the conflict. perf(agc): keep shaders off host imports on NVIDIA's Windows driver and cut per-draw CPU boykopovar/AnyPS5#20315 and fix(shader): preserve raw fragment exports for integer attachments boykopovar/AnyPS5#6235 have hunks in sample location code elsewhere, and none of the 40 changes the lines this PR changes.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)1002:13c0(Adrenalin 26.11.2, Vulkan driver 2.0.353), Windows 11; the case uses a mock Vulkan device🤖 Generated with Claude Code
Summary by CodeRabbit