diff options
| author | Moriz82 <72836413+Moriz82@users.noreply.github.com> | 2026-11-24 11:42:12 -0600 |
|---|---|---|
| committer | Moriz82 <72836413+Moriz82@users.noreply.github.com> | 2026-11-24 11:42:12 -0600 |
| commit | 273b3bdf9d6e736442ad584ad464df6e86ee928b (patch) | |
| tree | 3886a0af7c74ffa7d9415d662d8dc0fb708f1c08 /runtime/test/bindless_sizing_test.cpp | |
| parent | ece4ba5b31ebc6f345c8e29eae1261f2f780057a (diff) | |
[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>
Diffstat (limited to 'runtime/test/bindless_sizing_test.cpp')
| -rw-r--r-- | runtime/test/bindless_sizing_test.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/runtime/test/bindless_sizing_test.cpp b/runtime/test/bindless_sizing_test.cpp index 4553f25b6..2ceecf76f 100644 --- a/runtime/test/bindless_sizing_test.cpp +++ b/runtime/test/bindless_sizing_test.cpp | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | // bindless::size_bindings with synthetic device limits: no GPU. The counts of set 0 come from the device's descriptor | 1 | // bindless::size_bindings with synthetic device limits: no GPU. The counts of set 0 come from the device's descriptor |
| 2 | // limits (vulkan_bindless.h): today's sizes where a device is at them, larger 2D, sampler and storage arrays where it | 2 | // limits (vulkan_bindless.h): today's sizes where a device is at them, larger image, sampler and storage arrays where |
| 3 | // has room, and less where it is below them. | 3 | // it has room, and less where it is below them. |
| 4 | #ifndef VK_NO_PROTOTYPES | 4 | #ifndef VK_NO_PROTOTYPES |
| 5 | #define VK_NO_PROTOTYPES | 5 | #define VK_NO_PROTOTYPES |
| 6 | #endif | 6 | #endif |
| @@ -103,8 +103,13 @@ int main() { | |||
| 103 | EXPECT(f.counts[bindless::sampler_binding] == 4000 - bindless::reserved_samplers); | 103 | EXPECT(f.counts[bindless::sampler_binding] == 4000 - bindless::reserved_samplers); |
| 104 | EXPECT(f.counts[bindless::sampler_binding] > 2048); // a full sampler heap and the fallback | 104 | EXPECT(f.counts[bindless::sampler_binding] > 2048); // a full sampler heap and the fallback |
| 105 | EXPECT(storage(f, D::dim_2d) == bindless::max_storage_indices); | 105 | EXPECT(storage(f, D::dim_2d) == bindless::max_storage_indices); |
| 106 | EXPECT(storage(f, D::dim_2d_array) == 1024 && storage(f, D::dim_3d) == 256 && storage(f, D::dim_1d) == 256); | 106 | // The other dimensions grow too (a title's cube maps, texture arrays and 1D lookups outnumber the defaults); |
| 107 | EXPECT(count(f, D::dim_2d_array) == 1024 && count(f, D::dim_3d) == 256 && count(f, D::dim_1d) == 256); | 107 | // their storage arrays hold as many indices as the 2D one. |
| 108 | EXPECT(count(f, D::dim_2d_array) == bindless::max_2d_array_images && | ||
| 109 | count(f, D::dim_3d) == bindless::max_3d_images && count(f, D::dim_1d) == bindless::max_1d_images); | ||
| 110 | EXPECT(storage(f, D::dim_2d_array) == bindless::max_storage_indices && | ||
| 111 | storage(f, D::dim_3d) == bindless::max_storage_indices && | ||
| 112 | storage(f, D::dim_1d) == bindless::max_storage_indices); | ||
| 108 | EXPECT(f.ms_samples[0] == VK_SAMPLE_COUNT_4_BIT && f.ms_samples[2] == VK_SAMPLE_COUNT_4_BIT); | 113 | EXPECT(f.ms_samples[0] == VK_SAMPLE_COUNT_4_BIT && f.ms_samples[2] == VK_SAMPLE_COUNT_4_BIT); |
| 109 | EXPECT(storage_consistent(f)); | 114 | EXPECT(storage_consistent(f)); |
| 110 | if (update_after_bind) | 115 | if (update_after_bind) |