Repository navigation
fix(agc): give AMD's proprietary driver robustBufferAccess2 again - #8267
Conversation
44ccc6e to
2711f16
Compare
|
Second AMD proprietary-driver data point: RTX 3080 (NVIDIA 617.42) and AMD Radeon RDNA 2 iGPU ( AI-assisted: yes (Claude Code). |
|
An RDNA 3.5 data point on a different AMD driver branch: this PR works on a Radeon 860M as well. Setup: Radeon 860M (
Not run: the Khronos validation layer, and no title. AI-assisted: yes (Claude Code) |
|
One more AMD driver build, plus a measurement the earlier comments don't have: on this driver the #7623 miscompile is reachable again with this PR. Windows 11 26300, AMD Radeon iGPU
Not run: the Khronos validation layer (not installed here) and titles. AI-assisted: yes (Claude Code); results above were run on this machine. |
2711f16 to
fc92637
Compare
|
@wachi35676 thank you, that check was worth doing, and it reproduces on the discrete card. On an RX 6700 XT with 32.0.21045.5002, with #7623's change reverted to the two compares,
So the miscompile is in both driver versions, and with this PR the one-compare form is what keeps I rebased the PR on |
enabling it broke agc_driver_layered_volume_draw, agc_driver_layered_volume_vertex and agc_driver_subvector_loop on an RX 6700 XT. With boykopovar#7623 and boykopovar#7828 on main, those tests pass with the feature on, in either library-mode order. This reverts 48b394d and keeps the record of boykopovar#7623's empty-mask test in the s_subvector_loop debt entry. Co-Authored-By: Claude <noreply@anthropic.com>
fc92637 to
da5c7a8
Compare
|
Checked the revert against main: no remaining users of |
What
Reverts #7351. AMD's proprietary driver gets
robustBufferAccess2again, so its storage-buffer loads drop their selections like every other driver's (#4048). Fixes #7376.#7351 kept the feature off on that driver because enabling it broke three tests on an RX 6700 XT. #7376 traced both causes, and both are fixed on
mainnow:agc_driver_layered_volume_drawandagc_driver_layered_volume_vertexfailed after the driver's pipeline cache had been filled by a run in the other library mode, in either direction. AGC: root cause of the AMD proprietary failures behind therobustBufferAccess2exclusion (#7351) is still open #7376 expected fix(agc): key shader modules by the pipeline library mode #6436, which keys shader modules by library mode, to fix this. fix(agc): key shader modules by the pipeline library mode #6436 is still open. Since fix(agc): keep the pipeline library extensions enabled under APS5_NO_GPL #7828, the device is the same with and withoutAPS5_NO_GPL, and onmainwith fix(agc): keep the pipeline library extensions enabled under APS5_NO_GPL #7828 the sequences below pass in both orders. No run here isolates fix(agc): keep the pipeline library extensions enabled under APS5_NO_GPL #7828: the only pre-fix(agc): keep the pipeline library extensions enabled under APS5_NO_GPL #7828 control fails earlier, at device open, with AMD Windows GPL-off: the f32 flush startup probe (#6503) page-faults at 0xbeefdeadbeef, so every APS5_NO_GPL test loses its device #7809's fault.agc_driver_subvector_looplost the high half of its wave64 because the driver miscompiled the empty-exec test. fix(shader): test an empty exec mask in s_subvector_loop_begin with one compare #7623 tests the mask with one compare, which the driver compiles correctly.This removes
RobustBufferAccess.hpp, its unit testagc_robust_buffer_access, the driver query that fed it, and the AMD sentences in the guest memory load guards debt entry (2627 characters before, 1777 now). The sentence recording #7623's empty-mask test moves to thes_subvector_loopentry: that driver miscompile is still there, and with the feature on it matters on AMD again. @wachi35676 measured it on 32.0.21042.62, and it reproduces on the RX 6700 XT (below). So with this PR,s_subvector_loop_beginis right on AMD's driver only because of #7623's one-compare form, whichagc_spirv_subvector_loop_begin(#8274) keeps in place on CI. The sentence now names both driver versions and says the selects are the onesrobustBufferAccess2brings.check_conventions.pywarns that both entries are over 1000 characters.Overlap: #7484 (@AlxcBTW) adds a check right under the line this PR rewrites, and its body relies on the AMD exclusion keeping its path off on AMD's driver. After this PR its AMD gating rests only on
robustStorageBufferAccessSizeAlignment, which nobody has measured on AMD. #6177 (@mitul72) rewrites the same assignment. Whichever merges second needs a small rebase; I'm happy to go second.Tested
Windows 11 26200, RX 6700 XT (gfx1031), AMD driver 32.0.21045.5002, Release,
ANYPS5_REQUIRE_VULKAN=1. This head isda5c7a895, rebased ontomain7ce3b1df3. On this head, the 8 tests below pass 3 of 3, the validation layer shows 0VUID-lines, and the lock-budget check printsrobustBufferAccess2=1. The other results below are from the earlier headfc9263772onmain2fee39f1b, and from the same commit onmaind0852defaagainstmaind0852defa.agc_driver_lds_mixed_width_atomics_tests --lock-budgetprintsrobustBufferAccess2=0onmainandrobustBufferAccess2=1with this PR. WithANYPS5_REQUIRE_ROBUST2=1it fails onmainand passes with this PR.--repeat until-fail:3: 8 of 8 pass onmainand with this PR, on both bases. The 8 areagc_driver_layered_volume_draw,agc_driver_layered_volume_vertex,agc_driver_layered_volume_vertex_no_gpl,agc_driver_subvector_loop,agc_spirv_subvector_loop_begin,agc_driver_lds_mixed_width_atomics,agc_driver_lds_lock_budgetandagc_lds_lock_budget.ctest -Von the same 8: 0VUID-lines on either side.VK_LOADER_DEBUG=layerprintsInsert instance layer "VK_LAYER_KHRONOS_validation"in each of the 6 GPU test processes per side, and nowas not found but was requestedline.ANYPS5_NO_SHADER_CACHE=1andAPS5_NO_PIPELINE_JOURNAL=1, and libraries off meansAPS5_NO_GPL=1. Every step passes:--vertex-only), on, on (--vertex-only), off (--vertex-only);--vertex-only), off (--vertex-only), on;agc_driver_subvector_loop_tests: on, off, on, and off, on, off.ControlFlowInstructions.cppchange reverted locally to the two-compare form, withagc_driver_subvector_loop_testsrun from renamed copies. It passes 4 of 4 onmain(feature off) and fails 4 of 4 with this PR (feature on) withsubvector loop exec kept by the body, initial exec high half: lane 0 exec hi after the loop is 0, expected 4294967295. That is the same failure as on their driver, 32.0.21042.62.The earlier head
2711f16c7onmaina98590decalso ran the full suite,ctest --parallel 4 --timeout 120.mainran 1711 tests with 4 failures; this PR ran 1710 (withoutagc_robust_buffer_access) with the same 4:log_macrosandlog_macros_timestamps: ccache rewrites__FILE__in local builds here.agc_driver_msaa_dcc_clear_4:multisampled DCC target reuse requires watched guest memory.agc_driver_mul_lo_u16_high_half: fixed since by fix(shader): keep the 24-bit factor reads of 16-bit multiplies #8280.Other AMD runs of this PR:
1002:164e, 32.0.21045.5002.1002:13c0, 32.0.21042.62.Not tested: any title.
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)robustBufferAccess2exclusion (#7351) is still open #7376🤖 Generated with Claude Code