Skip to content

Mac visual fixes checked in game on M5 Max: clothes, hair, cars and tires, TV video, tiled shadows #448

Backlog

Description

@Ahmet-Dedeler

I've been running GTA VI on an M5 Max (CrossOver 26.3, D3DMetal 4.0b3, Series S mode) on a Mac line built on avatarmanz/VIctory-7900XTX main from 25 Nov plus a Mac layer. A few visual fixes from it are not in this repo yet and were checked in game, so I'm putting them here in case they're useful. Everything is public on Ahmet-Dedeler/VIctory branch mac-newbase. No game data in any of it.

What was wrong on D3DMetal Fix Commit Seen in game
Black clothes on every ped Adjacent small ped palettes (256 B to 4 KiB) evicted each other in the span bookkeeping; bake draws now upload their exact source textures first (fxceless/victory-fork#1264), aliased views copy from their GPU-written source (fxceless/victory-fork#1241), want_level(0) before bake BC copies 9228274e Clothes right
Hair strands, guns, glasses, particles missing Pixel shaders that only read SV_Barycentrics were refused because the check used the SFI0 barycentrics bit; it now checks for an actual attributeAtVertex call. Also prunes unread mesh outputs before the 32 KiB check and packs fp16 varyings 2 per u32. 62/62 vertex+pixel and 113 mesh+pixel pipelines recovered 8147ab06 Hair drawn (guns not rechecked)
Boats black, street cars invisible Over-32 KiB vehicle/boat/ped mesh+pixel pairs fall back to center interpolation when exact linking still does not fit. 209/232 pairs build 786f0d91 Cars and boat drawn
Every car's tires missing Metal refused 11 pairs whose layouts reached 33,280 to 34,816 bytes only because of alignment padding. Ordering the same outputs by width gives 28,160 to 30,720 bytes: 0/11 to 11/11 link in native Metal 74ee6dd1 Tires on 5 of 5 cars checked
TV news shows a colour ghost of the frame before The video's luma and chroma planes are textures the CPU rewrites in place. The recheck backed off to 12-40 frames and only read three 16 KiB strips, so each plane went stale on its own count. Slots found changed are now looked at every frame and fingerprinted whole. Also sent as avatarmanz/VIctory-7900XTX#390 a916c8fe Ghost gone, same scene
16x16-pixel blocks along shadow edges outdoors All 8 CS_ShadowRenderTiledCascades* programs took the wave64 deep-skips form, which fxceless/victory-fork#62 found wrong for them on an RTX 4080. Moving them to the paired form took most blocks away, but moving the sharp ones made Jason's face flat under his cap. Now only the 4 PPPC (wide soft shadow) variants leave the form a916c8fe, 2fd834b8 All 8 out: blocks mostly gone. PPPC only: not run yet

Not verified in game, so treat as leads:

  • Trees popping in and out in dense swamp scenes: the per-list indirect budget (2^27) was hit by 6M to 12.4M mesh groups a frame, so whole indirect records were zeroed every other frame. Raised on Darwin in 74a4ce43.
  • The R32G32B32 typed SRV bug from fix(gpu): widen three-channel typed SRVs under Wine #160 does not reach the shadow passes: none of the 26 open-world shadow programs reads a 12-byte typed view (only CS_ShadowTileBalanceRTCost has one).

Still broken here: TV sound (Bink plays its audio through Wine's xaudio2_9, which loads and reports no errors, but nothing is heard) and black ground in shaded spots by the water.

Happy to send any of these as PRs against main. They'd need porting since the base differs, so tell me which ones you want first and I'll do those.

Activity

  1. halfwave50 commented on Nov 26, 2026

    @halfwave50
    Contributor

    Two more D3DMetal picture fixes that go with these, checked in game on an M4 Pro (Series X):

    • No direct sunlight. The sun term is a B5G5R5A1 texture written through an unordered view. D3DMetal can't store that format, so the view was null and the sun came out black. Kept as R8G8B8A8 (from Belobug's fork): halfwave50@010f0f9b9d6a
    • 16x16 blocks along sun edges: a second cause. CS_ComputeMinMax (07f451a14b13fecb) asks a writable image for its size, D3DMetal answers 0, so the min/max image is one flat value and the tile classifier decides whole tiles. VICTORY_UAV_SIZE_LEVEL0=07f451a14b13fecb fixes it for that one program; =1 for all programs gave skin speckles: halfwave50@5137261c3934. If blocks remain after your PPPC change, this may be the rest.
    • Black bands in sunlit areas: the tile-list programs in their exact form (VICTORY_HALVES_WALK=1): halfwave50@db0b4a89cf90
  2. evan-kolberg commented on Nov 27, 2026

    @evan-kolberg
    Contributor

    Thanks to halfwave50 for identifying the format-86 case and Belobug for the packed-format fix. Here is the stock D3D12 capability check on an Apple M4 Pro (48 GB, macOS 27.2.1), with CrossOver 26.3.0.39832 and the verified Apple D3DMetal 4.0 beta-3 framework.

    DXGI format Support1 / Support2 Typed UAV view Typed UAV store
    R8G8B8A8_UNORM (28) 0x03ecd3ff / 0x000001c0 Yes Yes
    B5G5R5A1_UNORM (86) 0x01e4d3ff / 0x00000140 No No
    B4G4R4A4_UNORM (115) 0x01e4d3ff / 0x00000140 No No

    All format queries returned S_OK. For all three 4×4 textures, CreateCommittedResource returned S_FALSE with a null output pointer, both with and without ALLOW_UNORDERED_ACCESS. That result covers resource-description validation only. Actual UAV creation and writes remain unmeasured.

    Prepared and tested with Codex.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions