Formats: map console texture formats 189-191 #735
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/735"
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?
Imported from fxceless/victory-fork. Originally posted by davutsimsekk on 2026-11-25T05:53:20Z.
texture::formatreturnedNonefor the console-only DXGI formats 189 (signed 10-bit colour), 190 (two 4-bit channels) and 191 (24/8 colour). Their byte sizes are already known invictory-gpu's element table (189/191 = 4 bytes, 190 = 1 byte), but the texture layout rejected them, soxg::texturefailed withE_INVALIDARGand the GPU fell back to a packed footprint.This maps 189 and 191 to 4-byte elements and 190 to a 1-byte element, as the rest of the code already describes them.
Test
console_formats_have_layoutschecks all three formats return the expectedFormat.cargo test -p victory-formats --lib: 25 passed, 0 failed, 4 ignoredcargo clippy -p victory-formats --all-targets --locked -- -D warnings: cleanImported from fxceless/victory-fork. Originally posted by avt0m4t48 on 2026-11-25T06:47:03Z.
Independently checked this on the exact PR head (
f3d3d7bb9643b3044ff58437afaec0a5671e4782) and with the single-commit patch applied cleanly to the listed base/currentmain(8dd30ab472697c47b141c273c2a00f8ce1c00520).An original CPU-only fixture calls
Texture::newwith formats 189/190/191, full mip chains, 1×1/13×9/37×19 textures (1/3/2 slices), and linear, 256B standard, 4KB display, and 64KB standard swizzles. The PR parent (310c6eb) and unpatchedmainrejected all 36 descriptors. The PR head and patchedmainaccepted all 36 as single-plane 4/1/4-byte formats and matched all 300 subresource copies byte for byte, including padding guards and comparison with the element offsets. All snapshots passed the 24 layout / 200 copy controls for formats 28 and 61, and rejected the three unknown control IDs.The Linux
victory-formatslibrary suite passed on the PR head (25 passed, 4 ignored) and patchedmain(26 passed, 4 ignored). Strict all-target Linux Clippy and Windows MSVC cross-targetcargo check --testsforvictory-formatspassed on both. Coverage was limited to CPU layout and copying plus cross-target compilation. The test used synthetic bytes, with native Windows and D3D12 execution still unverified.upstream-sync referenced this pull request2026-11-25 08:08:49 +00:00
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.