Commit Graph

8 Commits

Author SHA1 Message Date
26df694ce4 subgroup_size: reject half-zero and invalid subgroup size ranges in decide_subgroup_size 2026-11-25 06:03:55 +01:00
40b393aeaf Merge main into RT-WAVE64-GRAPHICS-TIER (#1008)
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>
2026-11-24 21:39:58 -05:00
273b3bdf9d [integration] Linux/Proton and native Windows: boot through the story load (RT-PROTON-STORY-LOAD)
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>
2026-11-24 11:42:12 -06:00
acef4fa6b5 Honor wave64 graphics tiers on fixed 32-wide devices (RT-WAVE64-GRAPHICS-TIER) 2026-11-24 21:46:40 +05:00
42374fb2bc Recognize the documented wave64 exchange mode 2026-11-24 02:56:33 +05:30
74ab61efaa fix(subgroup_size): guard 64-bit invocation product overflow and zero local_size_x 2026-11-22 12:08:32 -03:00
36998edb14 Runtime: a default subgroup size that is the wanted one is device_default, not unavailable
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>
2026-11-22 13:05:41 +01:00
98aca391ca Runtime: decide the subgroup size a pipeline stage asks for
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>
2026-11-22 13:05:10 +01:00