DirectStorage: implement IDStorageFileX::GetFileInformation #1270
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1280"
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 ivall/xcl. Originally posted by Ivankiosan on 2026-11-24T14:11:19Z.
Implements
IDStorageFileX::GetFileInformation(vtable slot 5) incrates/xcl/src/hle/dstorage.rsso games and DirectStorage loaders querying file metadata, timestamps, or file sizes viaBY_HANDLE_FILE_INFORMATIONreceive real values from the underlying file rather than an unmodelledE_NOTIMPLstub.What is in it
file_get_file_informationat slot 5 ofIDStorageFileX's vtable incrates/xcl/src/hle/dstorage.rs.E_POINTERif null).E_FILE_HANDLEif the file has been closed).GetFileInformationByHandleto populatedwFileAttributes,ftCreationTime,ftLastAccessTime,ftLastWriteTime,dwVolumeSerialNumber,nFileSizeHigh,nFileSizeLow, etc.hle::dstorage::tests::file_get_file_information_returns_size_and_validates_argscovering argument validation, successful metadata query, and rejection after file closure.Tested
rustc 1.99.1 (58cf8f9c3 2026-10-13)/ MSVC 14.51.cargo test -p xcl --lib hle::dstorage: all 15 passed, 0 failed.cargo test --workspace -- --test-threads=4: all 729 unit tests and all integration tests passed with 0 failures.target/release/xcl.exe(cargo build --release -p xcl).Regression run
main:
PR head:
Not tested
AI use
IDStorageFileXvtable layout incrates/xcl/src/hle/dstorage.rsagainst DirectStorage GDK specifications, implementedfile_get_file_informationat slot 5 withGetFileInformationByHandle, authored unit tests, and verified workspace tests and GPU smoke regression.Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T14:12:20Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib dstorage: 15 passed; the newfile_get_file_information_returns_size_and_validates_argspasses.Thanks!
Imported from ivall/xcl. Originally posted by dcastell1 on 2026-11-24T14:14:03Z.
Verified on Windows 11 10.0.26300, NVIDIA GeForce RTX 5090 (driver 621.24), Rust 1.100.0 MSVC 14.44.35207, debug build, on
main@930e8b4(baseline 751 passed, 0 failed, 41 ignored on this box):One more passing test than the baseline;
IDStorageFileX::GetFileInformationships its coverage and it runs green.Tree restored afterwards (full diff against a clean checkout), hardware adapter, no Wine, no game data. AI-assisted (opencode): applied the patch to a built tree, ran the suite, reverted it.
upstream-sync referenced this pull request2026-11-25 04:08:41 +00:00
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-27T21:26:32Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T05:19:24Z.
Triage (#1607) – head
f8b0c19No open or merged PR makes the same change.
Neither the diff nor the description shows evidence that console slot #5 of IDStorageFileX is GetFileInformation. On PC,
IDStorageFile::GetFileInformationfollows Close at slot 4, and the console table has GetHandle there. Please say what showed that a title calls #5 with aBY_HANDLE_FILE_INFORMATION*, for example a log line from a title or a disassembled call. If a title passes something else there,GetFileInformationByHandlewrites 52 bytes into it.The branch conflicts with main and needs a rebase.
Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
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.