main (273b3bdf9, from #984) already reads index.json `wave64_graphics`
(ShaderEntry::wave64_graphics), decides tier A/B wave64 VS/PS/GS with
graphics_partition_invariant() in subgroup_size.h, and replaces the
width warning for them with a line saying the device's size is exact
(report_subgroup_unavailable), documented in docs/d3d12_vulkan.md. That
is this pull request's change in another form, so main's form stays.
- docs/d3d12_vulkan.md (conflict, subgroup size section): main's text
kept; it already describes the tier A/B case.
- runtime/src/shader_library.h, runtime/src/subgroup_size.h: main's
form kept; the pull request's wave64_graphics_halves field and
graphics_halves outcome dropped as duplicates of
ShaderEntry::wave64_graphics and graphics_partition_invariant().
- runtime/test/subgroup_size_test.cpp: the pull request's index.json
block kept and moved to main's API: the tier is read through
ShaderLibrary, A and B are partition invariant, C, an unknown tier and
a non-string are not, and the size decision is unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One squashed commit of a fork that was developed on a Linux/Proton machine and
tested on two native Windows machines. On all of them the retail 1.0.2.1
package now launches, shows its launch movie, first-run pages and landing
prompt, runs the story load to its end with the loading slideshow drawing its
artwork, and enters the world phase. A first world frame is not verified yet.
docs/linux_proton.md has the setup, a healthy boot's timeline, the machines
and where it stops.
Runtime: frames in the title's own window; DirectStorage pinned reads,
page-list scatter/gather, BCPack and unshuffle with a locally generated
predictor file; pooled, device-local and deferred image backing for streamed
and placed textures; enhanced barriers into LAYOUT_UNDEFINED; a bindless table
that degrades instead of refusing a submission; a descriptor hash finalizer
(off until a library carries it); directly indexed heap offsets for compute
dispatches and VS/PS/GS draws; title buffer windows outside a fragmented
arena; opt-in device-local copies of streamed buffer views; write-fault
retries under the tracker lock, shared trackers and write-watched title memory
for native Windows; device-loss, compute-input and memory probes.
Translator: loop bounds at structured exits, the eight FidelityFX programs
that use a packed-dot form the disassembler skips, buffer bounds modes per
view kind, a compaction option, the hash finalizer option.
Tools and scripts: Linux boot scripts (Wine/Proton, no network), a Windows
boot script, the paired compute translation script.
No game data. AI-assisted (Claude Code and Codex agents), reviewed and booted
by people on the machines named in docs/linux_proton.md.
Co-authored-by: Plaaasma <47513553+Plaaasma@users.noreply.github.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Where the size cannot be required (the stage is not in requiredSubgroupSizeStages,
or subgroupSizeControl is off) but the device default is the wanted size, the
shader works as it is. The decision now says device_default (not guaranteed
stable, but not inexact and not logged as such); only a different default stays
unavailable. The REQUIRE_FULL_SUBGROUPS citations are corrected: the feature rule
is VUID-VkPipelineShaderStageCreateInfo-flags-02785, the stage rule flags-08988
(flags-02784 is the ALLOW_VARYING feature rule).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
decide_subgroup_size() maps a shader index entry and the device's subgroup
size properties to what a stage should request: nothing for an emulated
shader, VkPipelineShaderStageRequiredSubgroupSizeCreateInfo with the size the
translation assumed (64 for wave64, 32 otherwise) where the feature is on, the
stage is in requiredSubgroupSizeStages, the size is a power of two within
[min, max] and the workgroup fits size * maxComputeWorkgroupSubgroups, and
REQUIRE_FULL_SUBGROUPS for compute when computeFullSubgroups is on and local X
is a multiple of the size. A device with one size that is the wanted one needs
nothing; otherwise the size is reported unavailable.
subgroup_size_test checks it against AMD-like, NVIDIA-like and old-RADV
properties, the limits, and the resulting create-info chain.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>