Repository navigation
GTA VI: the rest of our work to reach the lit world (draft) - #14
Draft
antocorvo3000 wants to merge 13 commits into
Draft
antocorvo3000 wants to merge 13 commits into
antocorvo3000 wants to merge 13 commits into
Conversation
…tor, heavy passes, audio lock), applied only where the expected bytes are found
… changed (whole 64 KiB pieces lost the title's stores: game crashes at world entry)
… with D-pad down)
…y in copy_back_page
Port 90d2128 to upstream-try. Use PSV runtime info v3 for implicit compute samples on quad-compatible thread groups. The four-source offline corpus gains 735 DXIL validations and retains every existing emission and validation.
Port 03978e5 to upstream-try. Use SV_Barycentrics for direct reads and materialize entry inputs consumed by live phi edges. The four-source offline corpus gains three validating pixel shaders and retains all previous emissions and validations.
Preserve first-seen bytes for each submission. Copy-back stitches boundary pages where needed and uses the same page-ordered changed-byte merge. VICTORY_INCREMENTAL_SNAPSHOTS=0 restores coalesced snapshots.
Scan only unchecked full pages on scoped readers before merging changed bytes in the original order. VICTORY_PARALLEL_COPY_BACK=0 keeps comparisons on the submit thread.
Check set bits directly for missing pages and leave empty words untouched during copy-back. VICTORY_SPARSE_PAGE_BITMAP=0 restores the original scans.
…_HEAVY=1: they left interiors black
Contributor
Author
|
An update of this work, now on top of Marvisak's current main (940d32f): branch It does not merge into this main yet: since then this tree was renamed to viport (80 conflicting hunks in 21 files, mostly the rename). A port onto the rename will follow as a separate push here. Findings that may matter for this tree too:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The rest of the work we did to get Grand Theft Auto VI 1.0.2.1 into the lit world, on top of this main (c7846f1). It includes #13 (black albedo fix) as its first commit. The same work against Marvisak's main is Marvisak/VIctory#1965 and #1970.
Left out here because this main already has its own version: texture to buffer copies (PR 1583 here) and
v_permlanex16_b32. Also left out: three batching and heap-sync speed-ups that conflict with theBatchrewrite here and are not verified in game yet (one run with them ended in a device removal). TheVICTORY_TITLE_DIRpart of the copy-back commit is dropped too: the configured game directory here already covers it.What is in it
Rendering and correctness
v_cvt_f32_f64in integer arithmetic, implicit compute sampling with validator 1.8 (735 compute shaders that failed validation pass), direct pixel barycentrics and lazy phi inputs.Speed (each
=0turns it off):VICTORY_INCREMENTAL_SNAPSHOTS,VICTORY_PARALLEL_COPY_BACK,VICTORY_SPARSE_PAGE_BITMAP. In game on Marvisak main, preparing went from ~480 to ~260 ms/frame and copying back from ~300 to ~120 ms/frame.Diagnostics: compute dispatches and resource addresses in traced frames, scaled GPU clock, pipeline library per build.
Local conveniences, probably not for main:
VICTORY_AUTO_A(presses A through the start screens), in-memory patches of the 1.0.2.1 executable (hang detector, audio lock). The patches that switched off the lighting passes are off by default; they made interiors black.Testing
cargo test --release --lib: victory-gpu 182, victory-hle 177, victory-shader 304 passed.emit::semantics_tests::arithmetic_matches_the_hardwarefails here and fails the same way on c7846f1 without these changes (RX 6800 XT).