fix(gpu,shader): port Wave 9A texture upload, linear RT readback, and export fixes #426
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: launcher
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
run report
security: hold
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs gpu test
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Androtim--MiniVI!426
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-426"
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?
@Androtim on GitHub · 2026-12-04 07:59 UTC · original
Androtim:fix/w9a-indoor-visuals→main· +697 −243 · 9 files · 5 commits · merged 2026-12-04 09:27 UTCSummary (Wave 9A: Indoor Lighting, Texture & Shader Visual Fixes)
Ports and adapts the applicable GPU and shader fixes from three verified GPL-3.0 upstream commits onto MiniVI without regressing existing MiniVI features (PR #420 ound_alpha, PR #423 descriptor mirroring, Wave 7B placed-view eviction, or VICTORY_KILL_CONTINUE):
** yr0nsur/Darner d070f0 (PR #94, GPL-3.0) — Indoor particle & dust light bounded (VICTORY_AMBIENT_ALPHA)**
ReTerryDavis/ReVIctory 2b910e0 (GPL-3.0) — BC/grey texture artifacts ( exture/ahead.rs)
ReTerryDavis/ReVIctory dc4843 (GPL-3.0) — GPU & shader fixes only
esource.rs, shadow.rs, exback.rs, host.rs, list.rs, draw.rs):
esource::is_linear_2d_capture_rt (single-mip, single-slice, single-sample linear RGBA8/BGRA8 render targets outside write-combined pools) and
esource::target_copy_at (live target lookup for CopyMemoryToMemoryX).
esolve), and wired CopyMemoryToMemoryX GPU-to-CPU target readback via HostList::texture_copy_to_memory.
Files Changed
Verification
Adapted GPL-3.0 upstream fixes onto MiniVI: - ReTerryDavis/ReVIctory 2b910e0 (GPL-3.0): prevent ahead-of-list texture uploads from recording unpopulated/recycled CPU staging buffers into CopyTextureRegion, and re-queue descriptor slots via read_short when an ahead-of-list job is skipped or fails (fixes BC/grey texture artifacts). - ReTerryDavis/ReVIctory fdc4843 (GPL-3.0, GPU & shader fixes only): * Linear 2D capture RT readback (resource, texback, host, list, draw): detect linear RGBA8/BGRA8 2D capture render targets outside write-combined pools, mark them written on RT bind / copy / resolve, support CopyMemoryToMemoryX GPU-to-CPU target readback, strip D3D12 row-pitch padding on landing, land synchronously without late-wait deferral, and write through write_mapped for soft-paged aliases. * Shader conditional pixel color export (victory-shader/src/emit/lower.rs): allow a pixel shader color export prior to its done export when guarded by the same EXEC mask. (MiniVI already handles live-quad helper retention via VICTORY_KILL_CONTINUE; build.rs automatically updates the VICTORY_TRANSLATOR shader cache fingerprint.) - Verified parity with tyr0nsur/Darner ad070f0 (PR #94, GPL-3.0): VICTORY_AMBIENT_ALPHA (default on) and Role::Alpha for CS_SpatialFilterAlpha are already present in ambient.rs/draw.rs from PR #420 with the enhanced bound_alpha pass.github-bot referenced this pull request2026-12-04 08:03:40 +00:00
@Androtim on GitHub · 2026-12-04 08:01 UTC · original
Triage (
8b5d82ee, CIIN_PROGRESS,MERGEABLE):+451/-21across 8 files, zero new env toggles): guardstexture/ahead.rsagainst unpopulated CPU staging & re-queues skipped uploads viaread_short(), adds linear 2D capture RT readback (texback.rs/resource.rs), and fixes shader live-quad export (emit/lower.rs).crates/victory-gpu/src/host.rswith#425(whichever merges second will need a quick rebase).triage: needs gpu test— awaiting CIcheckPASS + Gate 2 Audit (#282) + Gate 3 plain---release&--features diagnosticsPNG visual verification.