Skip to content

Recompiler: charge split pieces to the shader cache - #163

Draft
bmjask wants to merge 1 commit into
stack/159-graphics-cache-identityfrom
stack/160-charge-split-cache
Draft

bmjask wants to merge 1 commit into
stack/159-graphics-cache-identityfrom
stack/160-charge-split-cache

Conversation

@bmjask

@bmjask bmjask commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Stacked on #162.

This is an internal draft stack in bmjask/xcl; it is not an upstream merge request.

What and why

This unit isolates recompiler: charge split pieces to the shader cache as one reviewable step in the redesign.

What is in it

  • 3e3e9eca is the cleaned-stack form of integrated commit dcfce86c.

The patch content is preserved; only ancestry changed to omit a canceled add/revert sequence.

Tested

Tests were not rerun while packaging this already-integrated change into the draft stack.

Regression run

Not run during stack packaging.

Not tested

  • Windows MSVC build and test suite
  • D3D12 GPU execution
  • scripts/smoke.ps1 main/head comparison

AI use

Codex, GPT-5.6-sol, removed canceled ancestry, created the stack branch, and drafted this description. It did not author new code during stack packaging.

@bmjask
bmjask force-pushed the stack/159-graphics-cache-identity branch from b74a4d2 to be68ec3 Compare November 27, 2026 00:45
@bmjask
bmjask force-pushed the stack/160-charge-split-cache branch 3 times, most recently from a53c4fb to 71d3ab4 Compare November 27, 2026 05:14
The translated-shader LRU subtracted dispatch-chain piece capacities during eviction but omitted them when admitting an entry. Large split programs could therefore retain substantially more than the configured byte budget.

Use the same complete capacity calculation at insertion and eviction, with a regression test whose whole shader fits only when its split pieces are incorrectly ignored. This closes the cache-accounting gap identified in issue xcl-dev#2508.

The Windows GNU cross-target library/test check passes; native Windows tests and GPU execution were unavailable.

Assisted-by: Codex (GPT-5.6-sol)
@bmjask
bmjask force-pushed the stack/159-graphics-cache-identity branch from 65071bb to ac41d18 Compare November 27, 2026 12:35
@bmjask
bmjask force-pushed the stack/160-charge-split-cache branch from 71d3ab4 to a0429f4 Compare November 27, 2026 12:35
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