graphics: sample depth copies without attachment feedback loops #2191
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!2191
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2191"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@theantipopau on GitHub · 2026-11-10 03:11 UTC · original
theantipopau:fix/depth-feedback-copy-fallback→main· +1019 −76 · 8 files · 2 commits · openSummary
Some draws sample the depth attachment they also write. Vulkan only permits that through
VK_EXT_attachment_feedback_loop_layoutandVK_EXT_attachment_feedback_loop_dynamic_state; when either is missing,maindisables feedback and falls back toeGeneral, where the draw still cannot legally sample the depth image it is writing and only logs the condition once. This adds a copy fallback for those hosts, porting the approach from the closed #1241 with stronger test assertions.Change
TextureCache::CopyDepthForFeedbackcopies the sampled mips, layers and aspects into an image of its own, outside the render pass. The copy has the depth image's layout but no guest memory, so it is never registered or tracked.AcquireRenderTargetsbuilds the union of depth/stencil subresources sampled by the draw, copies them before the draw, and rebinds overlapping texture and mip-view bindings to the copy. Resident image-heap entries that sample the same subresources are redirected too, and the heap epoch is invalidated so the next draw rediscovers the original depth image. Disjoint or read-only views keep the original image.CheckRasterizationWithoutFeedbackLoopsruns the existing depth read/write case with feedback disabled and asserts that the depth attachment is not in the feedback layout, the sampled image is a different host-only depth image, and repeated draws still see prior depth writes.vulkanWindow.cpp: it enables the layout and other rasterization features, chains/enables the dynamic-state extension only when the device has it, and gatesvkCmdSetAttachmentFeedbackLoopEnableEXTaccordingly. This lets the case run on hosts that expose only the layout extension.Relation to #1187
#1187 handles hosts that have
VK_EXT_attachment_feedback_loop_layoutbut not the dynamic-state extension by baking the feedback flag into the pipeline. This PR is the copy fallback for hosts where feedback loops are unavailable; the two are complementary and can coexist. #2213 is the rebased replacement for #1187.Testing
clang-cl/Ninja build ofshader_recompiler_compute_testson Windows 11 against currentmain.shader_recompiler_compute_tests --depth-feedback-copy-onlypasses:LeastRecentlyUsedCache,DepthAttachmentFeedback.shader_recompiler_compute_tests --image-rebind-onlypasses:LeastRecentlyUsedCache,RenderExecutorStencilBindingDiscovery.AI assistance
Codebuff helped implement and test the change. I reviewed the code and the results.
@coderabbitai[bot] on GitHub · 2026-11-10 03:14 UTC · original · edited 2026-11-23 00:08 UTC
Walkthrough
When attachment feedback loops are unavailable, the renderer copies overlapping sampled depth subresources and redirects matching texture bindings to the copy. The texture cache reuses copies when their backing properties match and releases them when the depth image is deleted. Rasterization tests cover the fallback and configure dynamic feedback-state support separately.
Suggested reviewers:
nmzikChange: Bug fix · Severity of issue fixed: Medium
Merge Risk:
Moderate · previous review
48ca2The depth-copy fallback can produce wrong sampled depth values in multi-draw and multi-layer cases on hosts without feedback loops. Some test selectors can also reach unsupported rasterization setup. These should be addressed before merge, or the limits explicitly accepted.
Pre-merge checks:
4
#1241is closed and provides historical context only. No active directly linked issue remains. Therefore, no linked-issue coding requirements apply.Full details: Out of Scope Changes check
Explanation
The changes remain within the stated depth-feedback fallback scope. Texture-cache copy handling, render-target rebinding, image-heap redirection, copy lifetime handling, and rasterization harness coverage all support the fallback or its tests. No unrelated change is demonstrated.
Full details: Description check
Explanation
The description explains a depth-copy fallback for hosts without attachment feedback loop support. It names the changed pieces: TextureCache::CopyDepthForFeedback, AcquireRenderTargets rebinding, copy refresh and release, the test harness changes, and CheckRasterizationWithoutFeedbackLoops. It also lists build and test runs. This is clearly related to the changeset, so the check passes.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
@Nawid3333 on GitHub · 2026-11-10 14:47 UTC · original
Tested on Windows 11, AMD Radeon RX 9070 XT (RDNA4), AMD proprietary driver 26.10.1 (LLPC), Vulkan 1.4.359, clang-cl Release build of 9d365ccff. The driver exposes
VK_EXT_attachment_feedback_loop_layout(attachmentFeedbackLoopLayout = true) but notVK_EXT_attachment_feedback_loop_dynamic_state; the Ryzen 7600X iGPU (RDNA2, same driver, proprietary shader compiler) shows the same pair. Somaintakes theeGeneralfallback on both, and this host runs the copy path.Results on the RX 9070 XT:
VulkanHarness failed at dispatch: byte-granular per-pipeline robustBufferAccess2 is not supported(same as your RADV note). With only a local change that makes the robust-buffer cases optional (plus two unrelated local workarounds for AMD driver issues), the harness starts, and your optional dynamic-state handling is enough. The local feedback-optional change we used onmainis no longer needed.--depth-feedback-copy-only:[gpu] DepthAttachmentFeedback ok, no failed check.--sampled-depth-resource-only: all ok, bothDepthAttachmentFeedbackruns included. "depth attachment feedback loop is not supported by the host" is never printed.copies.push_back(region)line inCopyDepthForFeedbackremoved (no copy regions recorded), the same selector fails atsampled and stored depth(64 failed checks in that run).--polygon-mode-onlyand the full suite crash with an access violation (read of 0x0) inCheckRasterization(false). See note 1.main782a85c62under the same local changes plus the feedback-optional one: 19 failed checks instead of 22. The threeDepthAttachmentFeedback ... failed at per-draw depth feedbackfailures are gone, and no new failure appears. The fourRenderExecutorStencilBindingDiscoveryfailures stay (note 2).Notes, most important first:
Test crash:
CheckRasterizationnow readsbindings.pixel.images[0].image_idfor every draw (ShaderRecompilerComputeTests.cpp:20293). The polygon-mode and packed-vertex-color draws have no pixel images, so this reads element 0 of an empty vector. Before, the read was behind!depth_feedback ||. On this host it is a null read, and--polygon-mode-onlyand the full run stop there.const ImageId sampled_id = depth_feedback ? bindings.pixel.images[0].image_id : ImageId{};fixes it: after that change,--polygon-mode-onlypasses (PolygonModeRasterization,PackedFloatVertexColor,PackedUscaledVertexColorok). CI does not show it: the workflow buildsshader_recompiler_compute_testsbut its Test step runs only the CPU test list (build.yml:127).On hosts with only the layout extension,
CheckRenderExecutorStencilBindingDiscovery(whichmainreached here only with our local feedback-optional change, and which fails there too) still requireseAttachmentFeedbackLoopOptimalEXT(ShaderRecompilerComputeTests.cpp:17353 and :17396, and the deferred-clear and stencil parts). Here it fails 4 times (disjoint depth sampling during depth writes,overlapping and disjoint depth views,deferred clear with sampled depth bounds,sampled depth and stencil attachment layout). A run without keep-going stops at the first one. Since this PR lets these hosts run the rasterization checks without that change, those expectations (the layout, and also the feedback aspects and original-image identities the same parts check) could followattachment_feedback_loop_enabledthe wayCheckRasterizationnow does, or the check could be skipped there.A pending depth or stencil clear is not in the copy.
AcquireRenderTargetsturns an HTile clear (ordepth_clear_enable/stencil_clear_enable) intoload_clear_aspects(renderDraw.cpp:486-498), and the clear only happens at the load op of the nextBeginRendering(context.cpp:62-71).CopyDepthForFeedbackruns before that (renderDraw.cpp:555), so a draw that samples an aspect it also clears reads the values from before the clear, while on a host with feedback loops the same draw samples the cleared attachment. Whenload_clear_aspects & copy_aspectsis set, the copy's subresources in the attachment view's range could be cleared todepth_clear_value/stencil_clear_valueafter the copy, with the pending clear's aspects, layers and render area. The load op clears only the render area, which is the smallest extent of all bound attachments (renderDraw.cpp:474-476 and :609-611, context.cpp:76) and can be smaller than the depth mip, soclearDepthStencilImageon the copy (outside the pass, with a transition to a transfer layout and back, since the copy is already in its read layout) matches only a full-area clear; a smaller area needs a rectangle clear.The overlap test looks only at the native view, which can miss a mip the draw writes.
MakeDepthTargetDescsets level 0, butFindImage(r.desc)remapsview_info.base_levelwhen the target resolves to a mip of a larger cached image (textureCache.cpp:924-927, :1398-1399). For a binding with dynamic mip selection the native view ismip_views.front(), a single level at the binding's base level (descriptors.cpp:867-876). If the target is level k of the image and the binding's base level is below k while itsmip_viewsreach k, the native view is disjoint, so no copy is made and the binding samples the level being written. CheckingDepthFeedbackAspectsper mip view would close it, both where the copy is decided (renderDraw.cpp:521) and where bindings are rebound (renderDraw.cpp:569-570): the rebind uses the same native-only test, so a copy decided per mip view would otherwise not be bound.Copies are never registered, so they have no LRU entry of their own and are not in registration-based memory accounting. Each depth target that ever had a copied draw keeps a same-size second image until the depth image itself is deleted. When the device reports memory usage,
RunGarbageCollectorrefreshesm_total_used_memoryfrom it (textureCache.cpp:2101-2102), so the total includes these copies; otherwise it does not.Cost per copied draw: the open render pass ends (textureCache.cpp:310), there are up to three barrier batches (depth to transfer source, copy to transfer destination, copy to read layout), plus a copy of the bounding mip/layer range of the sampled views (which can include combinations no view samples), and the attachment goes back to its layout (renderDraw.cpp:605). Refreshing on every read/write draw is needed for correctness. A frame-time number from a game that hits this path would show whether the cost matters.
Checked and fine:
attachment_feedback_loop_enabledis false. Bindings that are not copied still add tosampled_aspects/feedback_aspectsas before.pixel_format(onlydata,stencilandmetadataare cleared), so stencil-aspect copies have a stencil plane. Stencil association bindings resolve to the depth image id (descriptors.cpp:642-645), so they are covered.copyImagebetween images with the same sample count is valid. MSAA images have one level.copy_iddoes not leak into the next draw:PrepareBindingsresolves every binding again (descriptors.cpp:727-737).CopyDepthForFeedbackandAcquireRenderTargetsrecord into the same command buffer (the scheduler's singlem_command).DeleteImage.With #1187 merged, the renderer on layout-only hosts like these two would use the static feedback pipeline instead, and its copy fallback would only run on hosts without the layout extension (the new test forces the copy path either way).
@coderabbitai[bot] on GitHub · 2026-11-11 10:51 UTC · original · reviewed
Actionable comments posted: 1
ed9faf3f-d165-4fd7-9d87-d1e71aa54b0bReviewing files that changed from the base of the PR and between 9d365ccff49a9e35408ec8e886adc18f658800e8 and afff2b8bb8e09daf5203e9e04ffa71c680a87294.
tests/ShaderRecompilerComputeTests.cppIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
@ -24277,0 +24750,4 @@#if !defined(__APPLE__)// The production pipeline enables depth clamping on non-Apple platforms.m_rasterization_supported =m_rasterization_supported && available_features.depthClamp;@coderabbitai[bot] on GitHub · 2026-11-11 10:51 UTC · original
Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 1609
Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 27174
Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 39102
Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 20775
Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 14393
Web query:
Vulkan VkPipelineRasterizationStateCreateInfo depthClampEnable depthClamp feature VUID enabled must VK_FALSEResult:
Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 1966
Guard rasterization callers when depth clamp is unavailable.
On a non-Apple host without
depthClamp, the copy selector andCheckShaderStorecan create a graphics pipeline with depth clamping enabled on a device without that feature. If the draw proceeds and the physical device supports feedback dynamic state, it can also call the command without enabling its extension.Guard these callers or report the unsupported configuration before they run.
@ -279,0 +322,4 @@info.data = {};info.stencil = {};info.metadata = {};entry->second = m_slot_images.insert(m_graphics, m_scheduler, info);@coderabbitai[bot] on GitHub · 2026-11-11 10:58 UTC · original · edited 2026-11-11 20:16 UTC
Account for feedback-copy memory when device reporting is unavailable.
If
CanReportMemoryUsage()is false, this unregistered copy does not increasem_total_used_memory. Its clearedinfo.dataalso makesImage::AccountedSize()return zero. A cache with large, retained depth copies can therefore remain below its pressure threshold while actual device memory fills. Account for the backing allocation and release that accounting when the copy is destroyed. (raw.githubusercontent.com)✅ Addressed in commit c67f319
@coderabbitai[bot] on GitHub · 2026-11-11 10:58 UTC · original · edited 2026-11-11 20:42 UTC
On
src/graphics/host_gpu/renderer/renderDraw.cppline 517 (outdated):Check every bound mip view for feedback overlap.
For dynamic mips, binding preparation sets
image_viewtomip_views.front(). If that first mip is disjoint from the attachment but a later mip overlaps, this check skips the binding. The redirection pass also checks onlyimage_view, so the overlapping mip remains on the writable attachment. Determine overlap from all bound mip views in both passes. (raw.githubusercontent.com)✅ Addressed in commit 48ca227
@coderabbitai[bot] on GitHub · 2026-11-11 10:58 UTC · original
On
src/graphics/host_gpu/renderer/renderDraw.cppline 551 (outdated):Apply pending attachment clears before copying sampled depth.
If
depth.load_clear_aspectsis set,CopyDepthForFeedbackcopies the old image contents.BeginRenderingapplies the load clear only afterward. The first feedback draw therefore samples stale depth or stencil instead of the clear value. Apply the pending clear to the sampled copy for the affected aspects, layers, and render area before the draw. (raw.githubusercontent.com)@coderabbitai[bot] on GitHub · 2026-11-11 10:58 UTC · original · edited 2026-11-11 20:17 UTC
On
tests/ShaderRecompilerComputeTests.cppline 20401 (outdated):Guard the sampled-image read with
depth_feedback.For
CheckRasterization(false), the fragment shader has no sampled images. This unconditional access reads an empty vector. It introduces undefined behavior into--polygon-mode-onlyand the full GPU suite. The earlier identity assertion correctly short-circuits this access. Movesampled_idinto the copy-only branch or guard its initialization withdepth_feedback. (raw.githubusercontent.com)✅ Addressed in commit c67f319
@ -24037,0 +24503,4 @@// Attachment feedback needs both the layout and the dynamic-state command; the// copy fallback covers hosts that only expose the layout.m_runtime_context.attachment_feedback_loop_enabled =m_rasterization_supported && m_feedback_dynamic_supported;@coderabbitai[bot] on GitHub · 2026-11-11 10:58 UTC · original
Update the discovery assertions for feedback-disabled hosts.
On layout-only hosts, this assignment disables feedback loops. However,
CheckRenderExecutorStencilBindingDiscoverystill requires feedback layouts and nonzero feedback aspects in its overlapping-view checks. Those assertions reject the fallback and abort selectors such as--image-rebind-only. Make the expected layouts, aspects, and sampled-image identities conditional onattachment_feedback_loop_enabled. Keep this capability assignment. (raw.githubusercontent.com)@coderabbitai[bot] on GitHub · 2026-11-11 10:58 UTC · original · reviewed
Actionable comments posted: 5
2aeaff6a-4dde-4126-8a72-45ccdbd153bbReviewing files that changed from the base of the PR and between afff2b8bb8e09daf5203e9e04ffa71c680a87294 and 90a16c1619df7aa630f5e1b23714376badb2fa74.
src/graphics/host_gpu/renderer/cache/textureCache.cppsrc/graphics/host_gpu/renderer/cache/textureCache.hsrc/graphics/host_gpu/renderer/renderDraw.cpptests/ShaderRecompilerComputeTests.cppIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.
@coderabbitai[bot] on GitHub · 2026-11-11 20:24 UTC · original
On
src/graphics/host_gpu/renderer/cache/textureCache.cppline 369 (outdated):Limit the copy clear to attachment subresources.
If the attachment selects layer 0 but a feedback texture view selects layers 0 and 1,
copyImagepreserves both layers in the copy. This clear then replaces both layers with the pending load-clear value. The draw clears only the attachment layer, so a shader read of layer 1 returns the wrong value. Intersect the clear range with the attachment’s mip and layer range; retain the copied values elsewhere. (docs.vulkan.org)@coderabbitai[bot] on GitHub · 2026-11-11 20:24 UTC · original · edited 2026-11-11 20:43 UTC
On
src/graphics/host_gpu/renderer/cache/textureCache.cppline 369 (outdated):Preserve copied pixels outside the render area.
If a color target reduces
RenderState.widthorRenderState.heightbelow the depth image extent, the attachment load clear affects only the smaller render area.clearDepthStencilImageinstead clears every pixel in the selected copy subresources. A feedback shader that samples outside that render area reads the clear value instead of the prior depth value. Apply the pending clear to the copy only within the render area. (docs.vulkan.org)✅ Addressed in commit 48ca227
@coderabbitai[bot] on GitHub · 2026-11-11 20:24 UTC · original
On
src/graphics/host_gpu/renderer/renderDraw.cppline 560 (outdated):Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 7570
Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 40381
Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 6032
Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 33942
Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 153
Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 3358
Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 5670
Handle depth feedback through image-heap bindings.
When a heap entry samples the writable depth attachment on a host without feedback-loop support,
AcquireRenderTargetscannot see that entry. The heap still binds the original image, so the draw can sample the attachment it writes instead of the copy, producing incorrect rendering. Include overlapping heap entries in the fallback and redirect them to the copied image.@ -18278,0 +18688,4 @@: expected_layout;const auto expected_image_id = bounds_copied? bounds_bindings.pixel.images[0].image_id: depth_only.image_id;@coderabbitai[bot] on GitHub · 2026-11-11 20:24 UTC · original · edited 2026-11-11 20:43 UTC
Assert that each copied binding uses a different image.
When
bounds_copiedorcopiedis true, the expected image ID comes from the pixel binding under test. The subsequent pixel-image equality therefore accepts the original attachment ID as well as a copy ID. In the bounds check, both stages can retain the original ID and still satisfy these identity assertions.Add explicit inequalities against
depth_only.image_idandshared_depth.image_id, respectively. Keep the existing stage-sharing and view checks. This prevents these fallback checks from accepting a binding that still samples the attachment.Also applies to: 18369-18371
✅ Addressed in commit 48ca227
@coderabbitai[bot] on GitHub · 2026-11-11 20:24 UTC · original · reviewed
Actionable comments posted: 4
b26daf79-54cd-4336-9701-7c03a295fc5bReviewing files that changed from the base of the PR and between 90a16c1619df7aa630f5e1b23714376badb2fa74 and c67f319825ff288cfeddb3843f20fd5d3c5ee3e6.
src/graphics/host_gpu/renderer/cache/textureCache.cppsrc/graphics/host_gpu/renderer/cache/textureCache.hsrc/graphics/host_gpu/renderer/image/image.hsrc/graphics/host_gpu/renderer/renderDraw.cpptests/ShaderRecompilerComputeTests.cppIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
@coderabbitai[bot] on GitHub · 2026-11-11 20:48 UTC · original
On
src/graphics/host_gpu/renderer/cache/textureCache.cppline 372 (outdated):Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 8614
Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 25241
Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 5021
Web query:
Vulkan specification dynamic rendering loadOp clear layerCount VkRenderingInfo viewMask zero attachment layers clearAttachments VkClearRect layerCountResult:
Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 39669
Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 13618
Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 1632
Limit the copied clear to the draw's render layers.
If a color attachment has fewer layers than the depth view, the copy clear can overwrite layers that the draw's load clear does not touch. A feedback sample can then read the wrong value. Pass the effective layer count to the copy and use it for both clear counts.
Suggested fix
@coderabbitai[bot] on GitHub · 2026-11-11 20:48 UTC · original
On
src/graphics/host_gpu/renderer/pipeline/imageHeap.cppline 588 (outdated):Restore heap bindings before the next draw.
After redirection, the retained element identifies
copy_id. If the depth image was already in an attachment layout, its transition to transfer source need not incrementImage::heap_epoch. On the next draw,Rebindcan retain the copy element.DepthViews(depth.image_id, ...)then misses it, so a heap-only feedback draw can sample the previous draw's copy without refreshing it. Make redirection draw-local, or explicitly make the element stale before the next draw's discovery.Image::GetBarriersincrements the epoch only when a transition leaves its shader-read state. (raw.githubusercontent.com)@coderabbitai[bot] on GitHub · 2026-11-11 20:48 UTC · original
On
src/graphics/host_gpu/renderer/pipeline/imageHeap.cppline 606 (outdated):Do not overwrite a descriptor used by an earlier recorded draw.
A draw can first sample the original depth image without feedback. A later draw can reuse the same heap element and redirect it here before the command buffer is submitted.
WriteDescriptorsthen replaces the earlier draw's descriptor with the copy view. With update-after-bind, submission uses the latest descriptor; the earlier draw can access the copy before its copy command runs. Allocate a new element for the redirected binding and retain the old descriptor until earlier uses finish. (docs.vulkan.org)@coderabbitai[bot] on GitHub · 2026-11-11 20:48 UTC · original · reviewed
Actionable comments posted: 3
730af3d8-5b00-4653-89ac-0fa18bc5defdReviewing files that changed from the base of the PR and between c67f319825ff288cfeddb3843f20fd5d3c5ee3e6 and 48ca227ab3d49a517d23993cf6caf371caf70605.
src/graphics/host_gpu/renderer/cache/textureCache.cppsrc/graphics/host_gpu/renderer/cache/textureCache.hsrc/graphics/host_gpu/renderer/pipeline/imageHeap.cppsrc/graphics/host_gpu/renderer/pipeline/imageHeap.hsrc/graphics/host_gpu/renderer/renderDraw.cpptests/ShaderRecompilerComputeTests.cppIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.
@theantipopau on GitHub · 2026-11-13 20:40 UTC · original
Status: rebased onto current
main. Local--depth-feedback-copy-onlyand--image-rebind-onlyselectors pass, and Windows/macOS/Linux CI is green. The PR is CLEAN/MERGEABLE. The fork account cannot merge it (GitHub rejectsMergePullRequestfor lack of permission), so a maintainer needs to merge.@theantipopau on GitHub · 2026-11-13 22:08 UTC · original
Latest head
7b468b55makes the image-heap depth redirect safe. The bindless heap set is shared by every recorded draw, so the in-place element rewrite could let an earlier draw sample the feedback copy.RedirectDepthnow collects the affected elements, submits and waits for the preceding recording, then rewrites the descriptors; the current draw continues in a fresh command buffer. This matters for the no-feedback path GTA V (PPSA04264, #1123) takes on Arc B580 when its tables sample depth. Local--depth-feedback-copy-onlyand--image-rebind-onlyselectors pass; CI is running.@theantipopau on GitHub · 2026-11-13 22:25 UTC · original
Head
7b468b55: Windows, macOS and Linux CI are green, the PR is CLEAN/MERGEABLE, and the local copy/rebind selectors pass. The fork account still cannot merge; a maintainer needs to land it.--sampled-depth-resource-onlystill stops on this host at the pre-existing per-pipelinerobustBufferAccess2check, so the targeted selectors are the local evidence.@theantipopau on GitHub · 2026-11-14 02:47 UTC · original
Head
eabb9de6narrows the heap redirect synchronization. Each heap element now records the last draw and scheduler tick that committed it;RedirectDepthonly flushes a recording when an affected element was used in that recording, and only waits for ticks that are still in flight. New elements and completed draws skip the stall. Added heap-test checks that a new element starts unused and records its commit. Build,--depth-feedback-copy-only,--image-rebind-only, and theResidentImageHeapcase pass locally; Windows/macOS/Linux CI is green.@theantipopau on GitHub · 2026-11-14 03:25 UTC · original
Added the two-draw heap-depth regression in
HeapDepthRedirect(commit2b8ac4d3). It draws once with a bindless heap element sampling the original D32 depth, then redirects that element to a feedback copy cleared to a different depth and draws again. Readback asserts the first draw still returns the original depth and the second returns the copy.Local checks:
--heap-depth-redirect-only,--depth-feedback-copy-only, and--image-rebind-onlypass. CI is queued for the new head.@theantipopau on GitHub · 2026-11-14 08:10 UTC · original
Head
4c50f89acloses the remaining heap mip gap.DepthViewsnow keeps each resident entry's base and dynamic-mip views grouped; if any mip overlaps the written depth, the copy covers the entry's whole base/mip range andRedirectDepthmatches mips instead of only the base view. Also removed the redundant semaphore refresh and extendedHeapDepthRedirectto apply the pending load clear throughCopyDepthForFeedbackand to leave an acquired-but-uncommitted view active before the redirect.Local checks: build passes;
--heap-depth-redirect-only,--depth-feedback-copy-only, and--image-rebind-onlypass. A validation-layer run of--heap-depth-redirect-onlyexited 0 with no VUIDs observed. No Arc B580 or GTA V available here, so this still needs the reporter run.@theantipopau on GitHub · 2026-11-23 00:08 UTC · original
Head
55ebbc58fixes the test-side crash reported above:CheckRasterizationreadbindings.pixel.images[0]on draws with no pixel images. It now computes an empty-safesamples_native_depthfirst and keeps the same assertion: a feedback draw must sample the native depth image.Rebuilt the Release test target and reran:
--depth-feedback-copy-only:DepthAttachmentFeedback ok,HeapDepthRedirect ok--heap-depth-redirect-only:HeapDepthRedirect ok--image-rebind-only:RenderExecutorStencilBindingDiscovery ok--polygon-mode-onlystill stops before rasterization on this host at the existingbyte-granular per-pipeline robustBufferAccess2 is not supporteddispatch check, so the crash path itself could not be executed here. I did not weaken that capability check.No GTA V/Arc B580 run is available here; the in-game copy path still needs the reporter run.
@theantipopau on GitHub · 2026-11-23 00:31 UTC · original
CI is green on head
55ebbc58: Windows, macOS and Linux builds all passed. Local Release selectors also pass on the fixed build. The PR remains MERGEABLE; the fork account cannot merge it, so a maintainer still needs to land it.View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.