Repository navigation
fix(agc): key the remaining driver shader modules by GPL mode - #19378
Conversation
The multisample upload, changed copy and sample order modules were created with vkCreateShaderModule directly, so they skipped the GPL-mode keying of Graphics::CreateShaderModule from boykopovar#6436. The same SPIR-V then reaches the AMD Windows driver cache in both modes, the same exposure boykopovar#18916 found for compute modules in the recorder tests. Refs boykopovar#4768 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Windows check of head The 8 tests selected for the changed files:
Results:
AI-assisted: yes. |
|
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.
|
|
An NVIDIA run, next to the AMD runs: RTX 3070 (8 GB), NVIDIA 610.57.04, Ryzen 5 5600X, Debian 13, kernel 6.12.115, GCC 13.3.0 Release, validation layer 1.4.335,
So no difference from the merge-base in either mode. The skip is The failure without GPL is on the merge-base too, so it is not from this PR: AI-assisted: yes |
What
#18916 keyed the shader modules of three recorder tests by GPL mode, because in those tests the AMD Windows driver cache (
%LOCALAPPDATA%\AMD\VkCache) returned the compute binary built for the other mode. It left the other directvkCreateShaderModulecalls alone. Three of them are in the driver itself and skip the GPL-mode keying ofGraphics::CreateShaderModulefrom #6436:MultisampleUpload.cpp: the multisample upload module (TextureDetiler::DispatchMultisampleImage)Recorder.cpp: the changed copy module (Recorder::RecordChangedCopy, staged write-backs)SampleOrder.cpp:SampleOrders::module, used for the sample order compute and graphics shadersAll three now call
CreateShaderModule(context, ...)with the same operation strings. On currentmainno other driver code creates shader modules directly. Direct calls in the remaining tests are not part of this PR.Only the changed copy path has failing evidence here: on
5599befe08,agc_changed_copyfails on AMD Windows once the cache was filled in the other GPL mode (table below), and passes with this change. The sample order and multisample tests pass on5599befe08in both cache orders on this GPU, so those two changes only bring the modules in line with the rest of the driver. No new test: the failure needs the AMD Windows driver cache, so the existing tests run in both cache orders are the regression check.Tested
AMD Radeon 8060S (Ryzen AI MAX+ 395, gfx1151,
1002:1586), Windows 11 Pro 10.0.26300, driver 32.0.22032.6002, Release build with WinLibs GCC 15.2.Each step runs each of the four tests up to 2 times (
--repeat until-fail:2), one ctest invocation at a time:VkCachewas renamed aside before B and deleted between B and C. The original was put back afterwards. A run counts only when its log shows the Vulkan device line and a pass, not exit 77. The off steps logpipelineLibrary=0and the default stepspipelineLibrary=1(VulkanDevice.cpp).5599befe08,agc_changed_copy5599befe08, other three tests03048a8886on5599befe08, all fourThe
5599befe08result foragc_changed_copywas the same in 3 runs of the sequence. On this branchagc_changed_copywent through the four steps once more after a rebuild and passed in all of them.Failures on
5599befe08:AGC graphics: vkWaitForFences recorder: Vulkan result -4, thenunhandled exception 'St13runtime_error'. The first run hit the 60 s timeout at 46.6 s of test time, the later ones fail directly.AGC graphics: changed copy word 0: 195, expected 1515870915 (the shader's changed bytes over the target's own).The branch was then rebased onto
e418837675without conflicts (the three hunks are unchanged) and was not rebuilt or rerun on that base.Validation layer: not run.
VK_LAYER_KHRONOS_validationis not installed on this machine.Not run: lavapipe, other vendors.
python3 tools/check_conventions.py: all checks passed.python3 tools/pr_overlap.py --branch fix/4768-driver-moduleslists 25 open PRs that touch these files and cannot be compared automatically because they conflict withmain. I compared their diffs by hand. None of them changes the lines this PR changes. Four of them add new directvkCreateShaderModulecalls elsewhere, which would skip the GPL-mode keying the same way:Graphics/src/Recorder.cppGraphics/src/TextureDetiler.cppChecklist
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