Repository navigation
feat(agc): remap unsupported tessellation viewport depth ranges - #11305
adriadam10 merged 1 commit into
Conversation
|
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
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.
|
|
@joedeangelis533-bot Thanks for recording the overlap with our PRs. I checked your debt-file patch against #7310 at Proposed merge order: #7310 → #11305 → #6989 → #6995 → #7002, retaining the stack's existing #8223/#6973/#6987 prerequisites. #7310 is already ready for re-review; the publication stack still awaits its separately documented prerequisite and final gate. This avoids making #7310 wait on this draft. After #11305 lands I can retain its viewport entry when updating the publication children. Would that order work for you? I will record it as merge-order-only once agreed. This is source review of the debt hunks, not a combined build/runtime result or approval of the tessellation change. AI-assisted: yes (Codex); author responsible. |
|
I checked the refreshed head |
225490c to
724a4fc
Compare
jotitadev
left a comment
There was a problem hiding this comment.
Linux run on NVIDIA and lavapipe of head 724a4fcde. The description's runs are Windows (RTX 5080, Radeon). Here the new test shows a genuine red/green on both devices, including a control that keeps the driver side and drops the shader side.
Tested
Ubuntu 26.04, GCC 15.2.0, Release, ANYPS5_NO_SHADER_CACHE=1, ANYPS5_REQUIRE_VULKAN=1, device chosen with VK_ICD_FILENAMES, -j1. This PR merged onto main cb45ae2dd (no conflicts). Both devices have VK_EXT_depth_range_unrestricted. The --depth-remap case clears context.depthRangeUnrestricted, so it takes the fallback on both.
agc_driver_tessellation_depth_range_remap, --repeat until-fail:3:
| NVIDIA RTX 3070 (595.99.02) | lavapipe (Mesa 26.0.3, LLVM 21.1.8) | |
|---|---|---|
tests + main's driver and recompiler |
fails: viewport depth outside [0, 1] is remapped on the vertex path only |
same |
tests + driver changes, main's core/shader (no TES-side transform) |
fails: tessellation remap clipping differs in case 2 |
same |
| this PR | passes 3/3 | passes 3/3 |
The second control shows the test checks the rendered clipping, not just the refusal. agc_driver_tessellation, agc_driver_depth_range_remap_draw and agc_driver_graphics (with the updated DepthRangeRemap cases) also pass 3/3 on both.
ctest -R "^agc" without display/flip/lds_atomics64, --timeout 30:
| NVIDIA RTX 3070 | lavapipe | |
|---|---|---|
main cb45ae2dd |
1029/1030 | 1028/1030 |
| this PR | 1031/1031 | 1030/1031 |
No new failures. On main, NVIDIA's one failure is agc_driver_sgpr_pattern_fill_keys, which passed on later runs. lavapipe fails agc_driver_multisample_retirement on main and with this PR.
GPUs tested: NVIDIA GeForce RTX 3070 (595.99.02, Linux) and lavapipe (Mesa 26.0.3, LLVM 21.1.8), Ubuntu 26.04.
Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
|
Checked the push layout in capture and preparation (bytes 104/108 reserved ahead of the tessellation levels at 120/124), the TES position export and clip-distance capacity check, and that mesh/combined draws still throw. The new regression tests fail on |
What
When a device lacks
VK_EXT_depth_range_unrestricted, a tessellation draw with viewport depth outside [0, 1] stops atApplyDepthRemap, although the existing vertex fallback can express that transform. Extend that fallback to tessellation evaluation's final position export, including its two near/far clip distances, dynamic scale/offset, prepared-module specialization and push-stage metadata. Reserve the transform's words at bytes 104/108 alongside tessellation levels at 120/124 in both capture and preparation paths, and carry the mode into prepared vertex info. Reject remaps that lack two free combined clip/cull components.The placement follows Vulkan tessellation and ClipDistance: the evaluation shader supplies the tessellated vertices, and clipping consumes the final pre-rasterization stage's distances. Existing RDNA instruction semantics are reused.
Refreshed on 26 October 2026 to main
5b5d24cb223ede690fe5eab1fe2f7a1736b801a5; exact tested head724a4fcde8c249137c46063caf3feed5ed387533. This addresses the request to refresh and retest. Git range-diff reports the same patch as the previous225490c7de82revision. Current main's intervening graphics, shader-registry and test changes are retained.Landing order adopted from the overlap proposal: #7310 → #11305 → #6989 → #6995 → #7002. This is a merge-order constraint for neighboring documentation entries, not a functional dependency on the MSAA publication code. All existing publication-stack prerequisites, including #8223/#6973/#6987 and other dependencies recorded on those PRs, remain in force. #7310 should not wait on this PR.
Preserve #7310's volume entry, this PR's viewport-depth entry, and the publication stack's initialization, snapshot, publication and shader-buffer entries when resolving the eventual debt-file conflicts. Source inspection at #7310
a28758155b01, #6989d3933b7088b3, #6995ff622cfb0b31and #7002687deb414a63confirms that the changed entry labels are distinct. Our refreshed debt file changes only the viewport entry; all other lines are identical to the pinned main. No combined stack build or runtime validation is claimed.The canonical overlap checker was rerun against main
5b5d24cb223e; it reports the same four neighboring debt conflicts. Other stale shader/driver branches remain marked as uncompared and require their own integration review. This PR is ready for maintainer review on the tested revision; the documented merge order and full hosted-build gate remain. This status change claims no additional runtime results. Mesh/combined geometry and the float-depth clamp limitation remain documented. No additional playable game or speed improvement is claimed.Tested
Fresh matched runs on 26 October 2026, Windows 11 Pro 26300, WinLibs GCC 15.2.0 UCRT r7, Release, SPIRV-Tools enabled. Built the runtime/graphics dependencies and seven focused test executables.
5b5d24cb223ewith the exact final regression tests grafted on724a4fcde8c2The eight CTests are
agc_tessellation_lowering,agc_driver_tessellation_depth_range_remap,agc_driver,agc_shader_disk_cache,agc_driver_graphics,agc_driver_depth_range_remap_draw,agc_driver_tessellationandagc_depth_range_remap. The baseline failures are the new tessellation-depth rendering path, the new graphics-state case, and depth-remap unit coverage.ANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1,VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, verbose CTest and a 30-second timeout. The test explicitly forces the restricted feature path.VUID-messages and no missing-layer warning. Loader output confirms insertion of the official Khronos validation layer, and each selected-device record was matched to the expected GPU.anyps5-feedback-20261026/VALIDATION.json,baseline-{nvidia,amd}.log,candidate-{nvidia,amd}.log,focused-tests.patchandrun_gpu_checks.ps1.No game/console run, Intel hardware validation, combined publication-stack runtime test or full hosted build result is claimed.
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)