GPU tests: the castable pair is two host textures where the host refuses castable formats #1765
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
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
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
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/Marvisak--VIctory!1765
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1765"
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?
@AgneyaK on GitHub · 2026-11-24 22:10 UTC · original
AgneyaK:test/castable-fallback→main· +5 −1 · 1 files · 1 commits · opena_texture_written_in_one_format_reads_in_another_through_a_placed_view(added in13bbd6f) fails onmain70564aeon a host that refuses castable formats:Why. On the Intel Iris Xe (driver 32.0.101.5763)
D3D12_FEATURE_D3D12_OPTIONS12reportsRelaxedFormatCastingSupported = falseandEnhancedBarriersSupported = false.CreateCommittedResource3then refuses the castable listresource::castable(42)builds (21 formats), and refuses each of them alone too.make_texturefalls back to a plain texture, as designed ("the host refuses castable formats: textures of one memory in other formats get their own host texture"). So the R32_UINT / R9G9B9E5 pair gets two host textures, andalias_copybridges them.Change (test only, +5 lines). The test expects one host texture only where the host took the castable formats (the host copy's
castablelist is not empty). Otherwise it expects two textures and a copy, and still checks the texels.Tested (Windows 11 26300, Rust 1.98.1):
--features diagnostics,VICTORY_D3D12_WARP=1)cargo clippy -p victory-gpu --all-targets --locked -- -D warnings: clean.cargo xtask policy: ok.cargo test -p victory-gpuon the Iris Xe: 76 passed, 2 failed. The two are the heap-cap tests in #1744 (dynamic_slots_are_held_until_released,lists_share_a_table_and_copies_keep_their_views), which fail the same way onmain. I left them alone on purpose: theirHEAP_VIEWSassertion is what the shaders rely on (NULL_BUFFER_VIEWsits atHEAP_VIEWS - 2, past a capped 1,000,000-view heap; see #1754).Not tested: the title (this PR changes only a test).
AI use: Claude Code (Claude Opus 5.5) found this, wrote the change and ran the tests; the results are from the runs described.
🤖 Generated with Claude Code
@DesertGamer on GitHub · 2026-11-24 22:12 UTC · original
VIctory V2: community PRs, merged and tested
Open PRs sitting in the queue? V2 pulls them into one build, screens each one (binaries, build scripts, hooks, new deps) and runs tests after every batch.
Where it stands today: launches, runs the menu at 30 fps, plays the intro video, reaches the start screen and loads the world (~50 s). Entering the world is the current blocker: rendering fails with a GPU "device removed" error (tracked in issue #1).
⚠️ Entering the world on a real GPU can hang it and make Windows reset the driver. Try it at your own risk.
Not playable yet, but every batch of merged fixes moves it closer. If you have a PR that's stuck, or a GPU to test on, I'd love your help:
https://DesertGamer/VIctory-V2
Unofficial community fork of Marvisak/VIctory, GPL-3.0.
@Vedoxdev123 on GitHub · 2026-11-24 23:00 UTC · original
Tested on Windows with AMD Ryzen 5 5600X + NVIDIA GeForce RTX 4060:
cargo test -p victory-gpu --lib-> 76 passed; 2 failed; 1 ignored (matchesmain; the 2 failures are the known 1,000,000 view heap cap tests tracked in #1744).@Marvisak on GitHub · 2026-11-25 03:41 UTC · original
Automated triage for the maintainers.
Merge candidate. Test-only:
a_texture_written_in_one_format_reads_in_another_through_a_placed_viewnow expects one shared host texture only where the host copy'scastablelist is not empty, and still checks the texels. This matchesmain'sresource.rs: when the host refuses castable formats, the list is cleared and a plain texture is made, so on hosts without relaxed format casting (Intel Iris Xe) the pair has two textures bridged by a copy. Hosts that accept castable formats keep the original assertion. CI has not run.Generated by Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.