Skip to content

GPU: live 1440p present fallback and null UAV for packed 16-bit formats (#2441, #1946) - #80

Merged
LAKSHYA-cmd-tech merged 1 commit into
integrate/gta6-world-and-shader-fixesfrom
fix/gta6-present-1440p-and-packed16-uav
Nov 26, 2026
Merged

LAKSHYA-cmd-tech merged 1 commit into
integrate/gta6-world-and-shader-fixesfrom
fix/gta6-present-1440p-and-packed16-uav

Conversation

@LAKSHYA-cmd-tech

Copy link
Copy Markdown
Owner

Summary

Backport and integration of upstream PR Marvisak#2441 and PR Marvisak#1946:

  1. Live 1440p Present Fallback (GPU: diagnostic 1440p present fallback for 4K primaries (#841) Marvisak/VIctory#2441, resolves GPU: the prologue renders into the title's 2560x1440 targets but the 3840x2160 output stays zero (RTX 3090, integration/testers) Marvisak/VIctory#841):

    • In GTA VI prologue and 3D world rendering, the title renders internal 3D passes into 2560x1440 color targets, but its final 4K upscale pass fails or stays unwritten, presenting an all-black image.
    • Adds opt-in \VICTORY_PRESENT_1440P=1\ diagnostic fallback.
    • Tracks 2560x1440 color targets (\ 28/\ 29/\ 87/\ 91) during render target and UAV writes.
    • Gates candidate publication strictly on GPU fence completion of the submitting command list.
    • Substitutes plane 0 at present time only when primary extent is 3840x2160 and differs from candidate.
    • Adds hardware unit test \present_fallback_uses_completed_work_once_and_only_at_4k.
  2. Null UAV for Packed 16-bit Formats (Descriptors: null UAV for packed 16-bit formats D3D12 refuses Marvisak/VIctory#1946):

    • \CreateUnorderedAccessView\ on textures whose final format the host cannot store to (packed 16-bit \B5G5R5A1\ / \B4G4R4A4) causes D3D12 device removal on NVIDIA GPUs.
    • Enforces format compatibility verification before view creation, falling back to null UAVs.
  3. Switch Subsystem:

    • Adds \crates/victory-gpu/src/switch.rs\ so \VICTORY_*\ environment variables set to \

…ts (Marvisak#2441, Marvisak#1946)

- Add opt-in VICTORY_PRESENT_1440P=1 diagnostic fallback for GTA VI 4K upscale failure (Marvisak#2441)
- Track 2560x1440 color targets and publish only upon submitting command list fence completion
- Substitute plane 0 at present time when primary extent is 3840x2160 and differs from candidate
- Support switch module to ensure switches set to 0 remain off
- Guard CreateUnorderedAccessView for packed 16-bit textures (B5G5R5A1, B4G4R4A4) via typed_store checks to prevent NVIDIA device removal (Marvisak#1946)
- Add unit test present_fallback_uses_completed_work_once_and_only_at_4k and switch tests
@coderabbitai

coderabbitai Bot commented Nov 26, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 798715d0-2c84-476a-b6bb-00f023b20fb3

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@LAKSHYA-cmd-tech
LAKSHYA-cmd-tech merged commit 87895bc into integrate/gta6-world-and-shader-fixes Nov 26, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant