Skip to content

Manifest: scope the local storage quota to its section - #27

Merged
ivall merged 1 commit into
xcl-dev:mainfrom
BBareth:codex/manifest-storage-quota
Nov 22, 2026
Merged

ivall merged 1 commit into
xcl-dev:mainfrom
BBareth:codex/manifest-storage-quota

Conversation

@BBareth

@BBareth BBareth commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Reads SizeMB inside PersistentLocalStorage. An empty storage section now leaves the quota unset so the launcher can use its default. Previously a later SizeMB elsewhere in the manifest could set the title's quota.

Validation

  • Reproduced the incorrect quota on upstream main with a synthetic manifest.
  • Both manifest unit tests passed on Windows GNU under Wine.

@ivall
ivall merged commit 63a05b0 into xcl-dev:main Nov 22, 2026
@ivall

ivall commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator

Merged, thanks. Checked locally on Windows (MSVC): unit tests and the e2e tests, including the new one, pass.

theaustinayers pushed a commit that referenced this pull request Nov 24, 2026
…ites

`pc_resource_desc` takes ALLOW_UNORDERED_ACCESS from a depth buffer the
console also lets shaders write (the PC refuses ALLOW_DEPTH_STENCIL with
ALLOW_UNORDERED_ACCESS). Only CreatePlacedResourceX (#44) moved such a
resource's initial state off UNORDERED_ACCESS as well (to DEPTH_WRITE).
The other paths that create a resource of the converted description
only masked the state with PC_RESOURCE_STATES: the committed fallback of
CreateCommittedResource (#27 / #76 / #127, reached without unified
memory or when its coherent window is full), the PC-way retry and the
committed fallback of CreatePlacedResource (#29), and its memory-of-its-
own path for textures larger on the PC. A console texture with flags
DEPTH_STENCIL | UNORDERED_ACCESS created in UNORDERED_ACCESS was then
asked for in a state D3D12 refuses for a resource without the UAV flag
(E_INVALIDARG; the #29 own-memory path fell back to COMMON).

`device_x::pc_initial_state` does both steps; #44 uses it with no change
in behaviour, and the four other sites use it with the console flags
(or the PC description's, which keep ALLOW_DEPTH_STENCIL).

Tests: a unit test of the helper; a GPU test placing a 256x256 D16
depth+UAV texture in UNORDERED_ACCESS as XCL now does (not run here).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.

2 participants