Skip to content

GPU: implement MakeResident (0x110) and Evict (0x118) device slots (#1564, #1565) - #81

Merged
LAKSHYA-cmd-tech merged 1 commit into
integrate/gta6-world-and-shader-fixesfrom
fix/gpu-device-make-resident-and-evict
Nov 26, 2026
Merged

LAKSHYA-cmd-tech merged 1 commit into
integrate/gta6-world-and-shader-fixesfrom
fix/gpu-device-make-resident-and-evict

Conversation

@LAKSHYA-cmd-tech

Copy link
Copy Markdown
Owner

Summary

Backports upstream PR Marvisak#1564 and PR Marvisak#1565:

  • In D3D12, \ID3D12Device::MakeResident\ (slot 34, 0x110) and \ID3D12Device::Evict\ (slot 35, 0x118) were previously unmapped, returning \E_NOTIMPL.
  • In console unified physical memory, memory is always resident and never evicted. These slots now return \S_OK\ through \object::ignore\ without unneeded device errors.
  • Adds unit tests verifying that both methods succeed through the virtual table.

Verification

  • \cargo test -p victory-gpu device::tests -- --test-threads=1: 10 passed, 0 failed.
  • \cargo clippy -p victory-gpu --all-targets --all-features -- -D warnings: 0 warnings.
  • \cargo run -p xtask -- policy: 160 files ok.

…arvisak#1564, Marvisak#1565)

- Map slot 34 (0x110) MakeResident to object::ignore, returning S_OK as guest memory is always resident
- Map slot 35 (0x118) Evict to object::ignore, returning S_OK as guest memory is never evicted
- Add unit tests make_resident_succeeds_without_doing_anything and evict_succeeds_without_doing_anything
@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: 39c7fa30-4b32-4698-bf23-da00c648ed04

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 d61e93d 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