Repository navigation
fix(agc): take the pixel input count from the shader header - #17911
Conversation
|
Windows check of head Setup: Windows 11 Enterprise 22621, WinLibs GCC 15.2 UCRT, Release. The hosted Windows check does not run these tests on pull requests.
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.
|
|
A GPU run, since Tested says the branch's machine has no Vulkan device: RTX 3070 (8 GB), driver 610.57.04, Debian 13, kernel 6.12.115, GCC 13.3.0 Release, validation layer 1.4.335,
The one failure is AI-assisted: yes |
|
On the overlap bot's note: #16025 edits the |
|
Windows check of head Setup: Windows 11 x64, WinLibs GCC 15.2.0 (r7), Ninja, Release,
AI-assisted: yes. |
SPI_PS_IN_CONTROL.INPUT_NUM is the queued interpolant count; a fragment shader that declares more inputs read interpolators the decode never set up. Use the larger of the queued count and the header's num_input_semantics, default an unwritten SPI_PS_INPUT_CNTL to its interpolant index, and throw on per-primitive inputs instead of mis-decoding them.
6388612 to
95285f4
Compare
|
Rebased onto current Verified on the rebased head: |
|
Windows NVIDIA check of head Setup: Windows 11 Home 10.0.26300, i9-13900K, WinLibs GCC 15.2.0, Release, RTX 4080 (
The one test not run on both sides is Not checked: AMD, Linux, macOS, any commercial title. AI-assisted: yes |
What
SPI_PS_IN_CONTROL.INPUT_NUM(bits 0 to 5) is the queued interpolant count; a fragment shader can declare more inputs than the state sets up, and the draw then decoded fewer interpolators than the shader reads.DecodePixelStageInfotakes the fragment shader header and uses the larger of the queued count andnum_input_semantics, throwing when that count exceeds 32.SPI_PS_IN_CONTROL.VALID_NUM(bits 9 to 13) declares per-primitive inputs, which this path cannot emulate; it throws instead of mis-decoding.decodeDrawpasses the fragment program's header.Split from #10420; independent of the other pieces.
References
SPI_PS_IN_CONTROLfields as above; an unwrittenSPI_PS_INPUT_CNTL_iholdsANCILLARY | FLAT_SHADE | OFFSETall clear withDEFAULT_VALequal toi.Tested
agc_driver_pm4,agc_driver_graphics,agc_gcn_color_targetand the otheragc_driver_*suites the pattern selects (32 tests) pass, andtools/check_conventions.py --base origin/mainpasses, on697b66b1e4. NewShaderDeclaredPixelInputTestscovers the queued-only decode, a header declaring five inputs, the defaulted control register for an unwritten one, the per-primitive throw and the 32-input limit.ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ctest --test-dir build -R 'agc_driver_graph' -Vpasses with noVUID-lines. This machine has no Vulkan device, so that run covers the decode path only.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)