Skip to content

Test overflow SRV reuse after a placed texture is replaced - #20

Merged
r4tedx merged 1 commit into
r4tedx:gpu/overflow-viewsfrom
passerbyyhx:test/overflow-placed-texture-remake
Nov 26, 2026
Merged

r4tedx merged 1 commit into
r4tedx:gpu/overflow-viewsfrom
passerbyyhx:test/overflow-placed-texture-remake

Conversation

@passerbyyhx

Copy link
Copy Markdown

This adds a shader-readback regression for Marvisak#3068 on top of 67a8692b. The title keeps the same descriptor words and generation in slot 8. The first draw samples a red texel. Enabling render-target use replaces the backing resource at the same guest address, while the test keeps the old resource alive and clears the replacement green. A fresh SRV samples green independently.

On both the RTX 4090 Laptop and WARP, the overflow path returned (1 remake, red), (1 remake, green), then (0 remakes, green). In a local negative control I disabled the resource-change check. The fresh SRV still sampled green, but the cached view returned red with zero remakes on both adapters.

With the D3D12 debug layer on, the draw suite passed on both adapters (22 passed, 1 ignored each). The full WARP diagnostics suite passed with the normal debug-layer setting (249 passed, 2 ignored). Strict Clippy passed. Forcing the debug layer on for the full suite stops in compositor_failure_presents_primary_in_the_same_frame with exit code 2173. That test also exits 2173 in isolation on the unmodified author commit.

@r4tedx
r4tedx merged commit b40e60b into r4tedx:gpu/overflow-views Nov 26, 2026
@r4tedx

r4tedx commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Thank you, taken in as-is: b40e60b is now the head of gpu/overflow-views (fast-forward, your authorship kept), so it is part of Marvisak#3068.

Checked here on WARP only (this PC's hardware adapters are held for tests): strict clippy with --features diagnostics --all-targets clean; draw:: tests 22 passed, 0 failed, 1 ignored, including the new test. Negative control: with only the resource-change check in copy_overflow disabled, the new test fails at "replacement remade once" with 0 remakes and the old red texel, as you described. Not re-checked here: your RTX 4090 Laptop runs and the full diagnostics suite. No title data used.

AI-assisted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants