Commit Graph

4163 Commits

Author SHA1 Message Date
6af9c80a99 d3d12: refuse an active SO stream across heaps too (D3D-302)
VUID-vkCmdBeginQueryIndexedEXT-queryPool-04753 forbids two active
transform-feedback queries with the same index anywhere in the command
buffer, whatever their pools. prepare() tracked the active ones by heap
and stream, so two heaps beginning stream 0 together still issued two
active indexed queries. It now keeps one bit per stream for the list.

replay_query_predication case 18 adds a second heap: overlapping queries
on one stream in two heaps are refused, and queries that take turns on
that stream are fine.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 17:04:39 -05:00
d3b8251bc3 Merge pull request #1860 from lixonik/fix/title-3d-view-array-range
D3D-3D-VIEW-ARRAY-RANGE: use the single array layer for Vulkan 3D views
2026-11-25 23:02:37 +01:00
04290dd2d1 d3d12: a window's GPU writes go back to the title's pages (RT-TITLE-WINDOW-WRITE-BACK)
A window of the title's memory is a read-side mirror refreshed before every
submission, so a UAV or raw write into one landed in the copy and the title
never saw it. At the world start that is the WRITE_INVALID device loss of
#1537 (QemmHD, 160 s into the load, past the cap): the culling compute writes
through addresses that name title memory, and nothing ever reads the result
back into the pages.

The layer now keeps every title range a submission's bindings reach (the
resolve path, so root views, table V#s and created views alike) and copies
those ranges from the copy to the title's pages at the start of the next
refresh, before the forward copy. A page the title wrote in between takes the
title's newer bytes and its GPU result is dropped; the tracker already knows
those pages (guarded, hot and clean). Caps: 8,192 ranges and 64 MiB a
submission, logged once; LEONIDA_TITLE_WRITEBACK=0 turns it off.

Test: d3d12_title_window_write_back, a dispatch through a root UAV at the
title's pages: the written words reach the pages, hold across two
submissions, and a title write survives the next forward copy. No game files.

Item: RT-TITLE-WINDOW-WRITE-BACK (claimed in #1608)

Wine against llvmpipe.
2026-11-25 21:59:18 +00:00
a6e0360f44 Merge upstream main into io-trace
Conflict resolution assisted by Codex.
2026-11-25 21:56:37 +00:00
c626cb2dc2 Merge upstream main into fault-address-owner 2026-11-25 21:56:36 +00:00
c3b8520683 Merge upstream main into heavy-pipeline-cache 2026-11-25 21:56:36 +00:00
f7e422ee8a Merge upstream main into gameinput-hotplug 2026-11-25 21:56:35 +00:00
ca39fa9379 Merge upstream main into bcpack-bc7-partial 2026-11-25 21:56:35 +00:00
53ab2c9666 Merge upstream main into input-out-of-the-box 2026-11-25 21:56:35 +00:00
f17c365b61 Merge upstream main into d3d-sample-positions 2026-11-25 21:56:34 +00:00
244387529b title HUD: VRAM from VK_EXT_memory_budget, private bytes under Wine
The title HUD (#1922, LEONIDA_TITLE_HUD=1) read VRAM from DXGI's
QueryVideoMemoryInfo on the host dxgi.dll and private memory from
PROCESS_MEMORY_COUNTERS_EX::PrivateUsage. Under Wine both read 0.

- VRAM: the runtime's device enables VK_EXT_memory_budget when the GPU
  has it (VulkanDeviceInfo::memory_budget), and
  rt::d3d12::vulkan_vram_budget sums heapUsage and heapBudget over the
  DEVICE_LOCAL heaps (other heaps' usage shown as shared), from
  src/vulkan_memory_budget.h. The HUD calls it once per refresh on its
  own thread. Without the extension it falls back to DXGI, and where
  that has no figure either it shows "VRAM n/a" rather than 0.
- Private memory: Wine's GetProcessMemoryInfo fills only the
  PROCESS_MEMORY_COUNTERS part and leaves PrivateUsage 0; PagefileUsage
  is the same commit-charge figure on Windows 8 and later, so the HUD
  takes the larger of the two.

Tests: title_hud_test checks the sums, the DXGI fallback, the "n/a"
text and the private-bytes choice with made-up values, and that a VRAM
source reaches the title at most once per refresh. The new
d3d12_vram_budget_test checks that the device enables the extension
exactly when the GPU has it and reads a non-zero budget, and skips
(77) without it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 16:56:01 -05:00
48245b436d root_signature_test: 64 constants spill whole for compute, refused as a spill for pixel
This branch's check expected pack_stage(Compute) to refuse 64 constants
as an unmodelled spill. main's pack_stage now spills trailing compute
parameters behind s[0:1], so compute takes them (cost 64, one spilled
parameter of 64 dwords). The "refused only as a spill, not for cost"
check moves to a pixel shader, where a spill is still refused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 16:51:33 -05:00
1d0bf24dc7 startup_trace: take the int3 candidate ExceptionAddress names; drop the unused <set>
int3_from tried the byte at Rip first and only then checked
ExceptionAddress against it. With Rip one past the 0xCC and
ExceptionAddress on it (a mixed form), a second 0xCC at Rip (int3
padding) was taken first and then refused by the address check, so that
int3 was not skipped. Each candidate (Rip, then Rip - 1) now has to agree
with ExceptionAddress before it is taken. Main did not skip it either,
so this closes a gap rather than a regression. int3_skip_test gets a
"padding" case for it.

The std::set the old dedupe used is gone, so its include goes too; the
candidate loop needs <initializer_list>. Both raised in review.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 16:43:47 -05:00
83c1bf2791 Merge commit 'refs/fix2/main' into fix2-638 2026-11-25 16:42:43 -05:00
ac3aef567b root_sig_public_flags_test: expect the heap-indexed fallback where the host refuses those flags
Since #1353 the shims' serializers (versioned and legacy) serialize a
description the host refuses for CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED or
SAMPLER_HEAP_DIRECTLY_INDEXED (Windows 10's in-box d3d12.dll): they call
the host again without the two bits and put them back into RTS0. The
three host-parity checks failed on Windows 10 for that, as reported in
review.

Where the host refuses such flags but takes the description without
them, the shim now has to return S_OK with that blob byte for byte,
except the RTS0 flags dword, which must hold all the flags, and a valid
container hash. Byte-for-byte parity stays wherever the host accepts,
and the shim still has to refuse whatever else the host refuses. The doc
bullet says the same.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 16:42:34 -05:00
712714bef2 Merge main into perf/big-compute-budget (#1889)
Brings #1889 up to date with main after #1742 (the pipeline compile unlock),
resolving the five conflicts as described in the guide on the PR:
https://github.com/ubiquitarianism/leonida/pull/1889#issuecomment-7175252290

- vulkan_replay.h: PipelineCompiles::build takes both the large-compile
  budget and main's `prior` compiles; build_pipelines passes the budget,
  and main's check_compiled_pipelines / finish_compiled_pipelines stay.
- vulkan_backend.h: execute_now takes the large-compile demand and passes
  the budget to the pass-0 compile, and pass 1 passes the budget too.
  set_large_compiles locks pipeline_mutex_, since #1742 moved the
  pipeline state under that lock.
- replay_pipeline_compiles_test.cpp: both test blocks kept, and the
  prior_compiles_reuse call passes an empty budget.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 16:41:36 -05:00
00c65b940d Merge commit 'refs/fix2/main' into fix2-677 2026-11-25 16:40:58 -05:00
509a543de7 Merge main into root-constants-zero
main's pack_stage now spills trailing compute parameters into the array
behind s[0:1] and refuses an unknown parameter type. Keep both; drop only
the zero-value constant refusal, as this branch does. A zero-value
constant takes no SGPRs and no spill dwords, and a new case checks the
spill offsets around one. The old "32-SGPR budget refuses before the
cost limit" comment no longer holds with spilling and goes; main's
over-cost case replaces it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 16:40:13 -05:00
afea66650c Merge main into delay-import-thread-order-notes
runtime/shims/startup_trace.h: main added the tls_index0 example event
and the exception's region/regs fields to the header comment; keep them,
add this branch's delay_import_unimplemented example and renumber seq.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 16:38:51 -05:00
c116c3fa28 Merge main into t-drive-overlay
docs/boot.md: main added LEONIDA_WRITE_DIR / LEONIDA_SAVE_DIR to the
--overlay bullet and a new "Under Wine on Linux" section; keep both and
the T: paragraph of this branch after main's sentences.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 16:38:20 -05:00
0bae6f545a Merge main into wave64-partial-wave-zero
scripts/run_gpu_tests.py: main added cs_w32_wrxchg2_ext and
cs_w32_wrxchg2st64 to the same name list; keep main's list and add
cs_w64x_partial_swizzle to it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 16:37:28 -05:00
6b09de493c dstorage: reads into physical pages wait for the title's Submit
A queue with auto-submit on submits itself once the entries enqueued
since the last submit reach half its capacity. A request whose
destination is a physical page list names its pages through
DestinationPageArray, a pointer into the title's own page-number table,
and the worker reads that table only when the request runs
(page_transfer). The title fills the page table just before Submit. So a
read started by the self-submit found page 0 (the entry failed) or the
number the slot held before (the data landed in a page that now belongs
to something else, with no error).

A self-submit now stops at the first read into physical pages. That read
and every entry behind it wait for the title's Submit, in order, so a
status entry, fence or event behind a held read still comes after it. A
full queue submits the held entries too, since the title cannot call
Submit while it waits in an enqueue. Close submits everything, as
before. A hold also ends after LEONIDA_DSTORAGE_HOLD_MS (2000 ms unless
set; 0 means no limit), so a path that never calls Submit cannot stall
for good. LEONIDA_DSTORAGE_HOLD_PAGES=0 restores the old self-submit of
everything.

"[rt] ds-hold" counts self-submits, held reads, full-queue and timed
releases, and destination lists that named page 0 when written. It is
printed at each power of two of the counter that moved
(runtime/src/dstorage_hold.h).

The idea is from Marvisak/VIctory eddde73; it also appears in
fxceless/victory-fork 79cfdd9. Written anew for this queue.

Test: dstorage_test, test_page_reads_wait_for_submit: a list changed
between the self-submit and Submit, a list still empty at the
self-submit, a full queue, the default and an explicit time limit, no
limit, the switch, and the page-0 counter.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SR1Fv7eQNgZjM6miWPKjHf
2026-11-25 16:35:47 -05:00
d96b3a8644 Merge pull request #857 from ohshitwaddup/tests/gpu-wrxchg2-b32
tests: GPU fixtures for the ds_wrxchg2_rtn_b32 pair cases and ds_wrxchg2st64_rtn_b32 (TEST-WRXCHG2-B32-EXT)
2026-11-25 22:28:36 +01:00
f9642954fc Merge pull request #1742 from IlyassRS3/fix/pipeline-compile-unlock-resources
runtime: unlock resource_mutex while compiling unbuilt pipelines
2026-11-25 22:25:13 +01:00
6fd430ebc7 d3d12: deliver a released title range to every device's geometry views
leonida::geometry_writes previously kept one process-wide release queue, so when two devices held GeometryViews over the same title range, the first device to call drain_released() emptied the queue and the second kept its view and charged bytes forever.

Give each GeometryViews its own ReleaseQueue subscribed to leonida::geometry_writes on construction and unsubscribed on destruction. note_released() delivers each released range to every subscriber's queue under subscribers_mutex -> queue.mutex (keeping the 65536-entry collapse per queue), and take_released() drains only the caller's queue under queue.mutex.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 23:24:42 +02:00
5da3b6be3c d3d12: the title texture pass can time-box its mapped and stale visits (RT-TITLE-EVERY-BUDGET)
LEONIDA_TITLE_EVERY_BUDGET_US (0, the default: unchanged) limits how long one pass of refresh_title_textures
spends on the textures it visits every pass (mapped by the title, or known stale). The visits resume from a cursor
of their own, so every marked texture gets its turn; the texture that crosses the limit is finished. A mapped
texture never filled yet is visited first whatever the limit, so a video plane is not left empty until its turn.
The pass stays synchronous, before the submission, as today.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 22:23:36 +01:00
e79079f39d Merge pull request #1987 from abnalstlll-byte/feat/rt-unbound-tsharp-reasons
d3d12, test: track unbound T# refusal counts by reason and verify binding rules (RT-UNBOUND-TSHARP-REASONS)
2026-11-25 22:12:59 +01:00
9cd0c3f427 Merge pull request #1759 from abnalstlll-byte/feat/rt-xdxr-bvh-rehydrate-batched2x
xbox_bvh_builder: implement RehydrateRaytracingAccelerationStructureBatched2X (RT-XDXR-BVH-REHYDRATE-BATCHED2X)
2026-11-25 22:10:34 +01:00
7551c8aa8c Merge branch 'fix/rt-null-barrier-clear-v2' into local/boot-combined
# Conflicts:
#	runtime/shims/d3d12_xs_device.cpp
2026-11-25 16:06:44 -05:00
82169e0e03 d3d12: clear geometry readback lists at refresh start and cap runs at 1 MiB
Each refresh now clears written_ and written_vas_ together at the start, so an exception from a read or a guarded copy cannot leave addresses the next refresh indexes past written_. Adjacent-tile runs are capped at 1 MiB (16 tiles), so a long contiguous write cannot force one large scratch resize.
2026-11-25 16:03:59 -05:00
a05c178708 d3d12, test: fix unbound_tsharp_tracker scope and verify binding rules (RT-UNBOUND-TSHARP-REASONS)
- Move UnboundTsharpTracker and unbound_tsharp_tracker() to namespace scope
  so the free functions in rt::d3d12 that call it compile correctly.
- Add non-const Device::state() overload for test_bind_title_image().
- Remove nonexistent rt::d3d12_xs::resource_proxy_real_resource() call;
  resource_image_address() now casts the ID3D12Resource pointer directly.
- Fix cube layer check in bind_title_image to verify texture layer count.
- Add D3D12_RESOURCE_FLAG_ALLOW_RENDER_TARGET to test MSAA texture desc.
- All 35 checks in d3d12_unbound_tsharp_rules_test pass cleanly.

AI-assisted (Claude Code)
2026-11-26 00:01:32 +03:00
5e188a02f9 d3d12, test: track unbound T# refusal counts by reason and verify binding rules (RT-UNBOUND-TSHARP-REASONS)
In runtime/shims/d3d12_vulkan_device.cpp, extend note_refused_tsharp to record
both overall distinct slots and per-reason distinct slots and total refusal
counts across console descriptor heaps, matching the title texture diagnostic
breakdown in refresh_console_heaps.

Expose inspection helpers in runtime/shims/d3d12_com.h and add synthetic tests
in runtime/test/d3d12_unbound_tsharp_rules_test.cpp covering:
- 1D rule: dimension and layer count compatibility ("T# type or samples do not fit the texture")
- Array rule: layer bounds ("T# names layers the texture lacks")
- Cube rule: minimum layer requirements ("cube T# on fewer than six layers")
- MSAA rule: sample count matching ("T# type or samples do not fit the texture")
- Tracking: distinct slot and total refusal counts by reason

AI-assisted (Claude Code)
2026-11-26 00:01:32 +03:00
0bf7ef8066 runtime: a large compile that fits may pass one that does not, within a bound (RT-BIG-COMPUTE-BUDGET) 2026-11-25 21:59:36 +01:00
34945a64a9 docs/d3d12_vulkan.md: drop stale "not implemented" status for buffer SRVs, streams, mesh PSOs and WriteBufferImmediate (DOC-D3D12-VULKAN-STALE-STATUS)
The status paragraph said buffer SRVs, CreatePipelineState streams and mesh
shaders were missing; the device writes buffer V#s, parses streams and reports
MeshShaderTier 1 where the GPU has VK_EXT_mesh_shader. WriteBufferImmediate was
described as refused because no buffer had a GPU VA; buffers have VAs and the
device test writes through a placed buffer's. Section 4.6's "Not implemented
yet" contradicted the D3D-399 paragraph above it and listed mesh statistics
twice. The device test's comment on the unresolved write gets the real reason.
2026-11-25 21:31:30 +01:00
9f98dcc617 Improve post-load GPU memory and pipeline handling (RT-POST-LOAD-GPU-MEMORY)
Fall back to a dedicated buffer allocation when the shared arena fills.
Update console descriptors and resource backing, preserve pipeline cache
entries, and replay mesh records using bounded indirect arguments. Keep
scripted input available until read and cover the runtime and translator
paths with synthetic tests.

Co-authored-by: Plaaasma <47513553+Plaaasma@users.noreply.github.com>
Co-authored-by: ivanepsilondelta <264061546+ivanepsilondelta@users.noreply.github.com>
2026-11-25 14:30:51 -06:00
06ba2eb2de d3d12: stage title images when host transfer has no memory type
Check the host-transfer memory requirements before selecting the backing for a CPU-fillable title texture. Exercise the mapped linear R8 plane with a driver shim that returns no compatible memory types for the host-transfer image.

Reported-by: qhukz13 (PR #1894)

AI-assisted-by: OpenAI Codex (gpt-6.2-astra)
2026-11-26 06:21:47 +10:00
b986d274bf d3d12: a mesh PSO with conservative rasterization needs no topology type (RT-MESH-PSO-CONSERVATIVE-TOPOLOGY)
Finding by Undefined3301 in #1608.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 21:20:01 +01:00
05699d303c d3d12: restrict D24S8 castable widening to format 118 and mark the placed path
Follow-up review fixes for D24S8-made Xbox D16S8 (format 118) depth UAVs:
- Pass the console origin (recorded before pc_format()) into
  castable_view_formats() instead of widening on format.d24, so a plain PC
  D24_UNORM_S8_UINT texture keeps main's castable-format rules and refuses
  the R16/R8/118-120 depth-UAV views.
- Set mark_console_d16s8() in create_placed() as well as
  create_committed(). CreateReservedResource refuses format 118 before it
  makes anything (a stencil format has no tile shape), so it needs no mark.
- Extend xbox_d16s8_d24_storage to cover slot 127, incompatible castable
  views, plain PC D24S8 castable/UAV refusal, CreateCommittedResource2,
  CreatePlacedResource/2, and the CreateReservedResource refusal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 22:09:28 +02:00
9a375a064e d3d12: support depth-stencil UAVs for D24S8-made Xbox D16S8 (format 118)
On GPUs with native VK_FORMAT_D24_UNORM_S8_UINT attachments (NVIDIA),
pc_format() maps Xbox format 118 (D16_UNORM_S8_UINT) to
DXGI_FORMAT_D24_UNORM_S8_UINT before Resource construction. Previously,
Resource::enable_depth_stencil_uav only accepted R16_TYPELESS, 118, and
R32G8X24_TYPELESS, returning E_INVALIDARG so slots 76 and 133 fell back
to creating the texture without unordered access (#1558).

Track console format 118 origin on Resource before pc_format(), extend
enable_depth_stencil_uav and CreateUnorderedAccessView to serve D24S8-made
118 through the existing widened R16_TYPELESS (R16_UINT/R16_UNORM views)
plus R8_UINT storage planes and R32_FLOAT conversion image, and convert
plane-0 D24 depth words in transfer scratch to/from R32_SFLOAT via the
existing Depth24Converter compute pass in copy_depth_uav. Add
VK_BUFFER_USAGE_STORAGE_BUFFER_BIT to copy scratch, accept D16S8/D24S8
castable lists in castable_view_formats, and keep #1558's refusal fallback
in d3d12_xs_device.cpp for any other provider refusal.

Replace xbox_d16s8_refused_uav with xbox_d16s8_d24_storage covering slot 76
6-layer round-trips, slot 133 1280x720 placement, CreateCommittedResource3
castable formats, R16_UNORM/R16_UINT/R8_UINT UAV clears, and direct D24S8
parent attachment readback.

Verified on Windows 10 19045 / GeForce GTX 1050 Ti (NVIDIA 582.66):
17/17 related CTests pass plain and with LEONIDA_VK_VALIDATION=1 (0
validation errors).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 22:08:38 +02:00
285801f0ac vk_image_fuzz: enable shaderDrawParameters for the translated vertex shader
Every translated VS declares the SPIR-V DrawParameters capability (BaseVertex /
BaseInstance for the zero-based v0 / v3), but the harness never enabled
VkPhysicalDeviceVulkan11Features::shaderDrawParameters. Under
LEONIDA_VK_VALIDATION=1, vkCreateShaderModule fails with
VUID-VkShaderModuleCreateInfo-pCode-08740 on every case, on both AMD and
NVIDIA, silently zeroing an image_fuzz campaign; drivers tolerate it without
validation.

Query Vulkan11 features on their own vkGetPhysicalDeviceFeatures2 call and
chain enable11 under the Vulkan12 features at device creation, as
vk_sampler_test and vk_bindless_test already do for their queries.

Verified: image_fuzz seed 1 (60 programs) and seed 2 (30 programs) match on
AMD Radeon Graphics and NVIDIA RTX 4070 SUPER with LEONIDA_VK_VALIDATION=1,
0 validation errors; before the fix the first case of each GPU failed with
the VUID. vk_bindless_test and vk_sampler_test run clean under validation on
both GPUs, so their chained Vulkan11-under-Vulkan12 queries needed no change.

Co-Authored-By: Devin <noreply@cognition.ai>
2026-11-25 22:07:34 +02:00
c182b7ad31 gfx10_descriptors: clamp sampler maxLod >= minLod and guard DERIV_ADJUST_EN integer border (VK-SAMPLER-LOD-ORDER-AND-DERIV-ADJUST) 2026-11-25 20:56:03 +01:00
6921a278fd Keep current frame token statistics at or before the poll 2026-11-25 13:54:48 -06:00
6c6a8cd47d vk_pipeline_check: a large module that must wait frees its worker (VK-PIPELINE-CHECK-LARGE-ADMISSION)
A worker took the next index and only then waited in the large-module gate,
so with the memory budget full the modules behind a large one sat untaken
while spare workers blocked, and the pool ran below --jobs.

LargeModuleQueue (large_module_gate.h) now hands out the indices. A large
module the gate can't admit yet is put back and the worker takes the next
one. The oldest module put back goes first as soon as the gate admits it and
no later large module passes it; once every index is out, a worker waits for
it. Nothing is put back while the gate admits each large module as it comes,
so with one worker or room under the budget the order is unchanged, and
--large-parallel 1 and --large-module-bytes 0 never ask the queue to admit.

large_module_gate_test: the waiting module frees its worker (fails with the
old claim-then-admit order), oldest-first and no double entry, the unchanged
order, and every module once under 8 threads.

AI-assisted (Claude Code).
2026-11-25 20:53:43 +01:00
361c3abe61 Reset mouse delta baseline when the cursor source changes 2026-11-25 13:51:01 -06:00
194265665c d3d12: one guarded copy per run of adjacent written geometry tiles (RT-GEOMETRY-READBACK-RUN-MERGE)
A GeometryViews refresh reads each written 64 KiB tile with its own
readability probe and guarded copy, even when the title wrote a run of
adjacent tiles across tile boundaries. Group the written tiles (already in
address order) into maximal runs whose addresses differ by one tile and read
each run a ready view needs as one guarded copy; the per-tile pass then reuses
those bytes through read_tile(). A run that cannot be read whole falls back to
the per-tile read, so an uncommitted page still zeroes only what it did before.

Same behaviour as DexNom/VIctory's copy_fetch_runs
(crates/victory-gpu/src/host.rs, GPL-3.0-or-later, commit 570a941),
re-implemented for this header; no identifiers or code copied.

Tested: geometry_views_test 14/14, including the new case (two adjacent written
tiles are one 128 KiB copy); gta6rt_d3d12_com builds. Synthetic only, no game
files or GPU. AI-assisted.
2026-11-25 14:50:17 -05:00
8b3db052e4 Keep virtual gamepad mouse deltas in range 2026-11-25 13:46:10 -06:00
5a418b50cd feat(runtime): add input validation guards and unit test suite for d3d12_pipeline_checkpoint
Add input validation guards to CacheStagingFile in runtime/shims/d3d12_pipeline_checkpoint.h for empty destination and zero bytes, and add is_direct_session_cache_enabled helper. Add a unit test suite in runtime/test/d3d12_pipeline_checkpoint_test.cpp and register it in runtime/CMakeLists.txt.

Claimed in #1608: RT-PIPELINE-CHECKPOINT-GUARDS-AND-TESTS.

AI-assisted (Claude Code)
2026-11-25 22:42:01 +03:00
16b5b540c0 Merge main into test1700-rdna3-repacking
Conflict in docs/design.md: main added the "Per-lane descriptor selection"
row right above the SHADER-10 row this PR rewords. Both are kept.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 14:40:04 -05:00
5da72d19f0 Merge pull request #1922 from kawaii-shakal/title-bar-hud
d3d12_xs: LEONIDA_TITLE_HUD shows frame rate, memory and pipeline compiles in the window's title bar (RT-TITLE-HUD)
2026-11-25 20:39:34 +01:00
631a538320 ps_ssharp_o: the S# mip fields on image_sample_lz_o / image_sample_o under the texel-offset fallback (SHADER-EXPLICIT-LOD-BIAS-MVK)
The last --explicit-lod-bias path without GPU coverage: with
LEONIDA_TEXOFF_FALLBACK=1 the implicit offset sample is a Grad sample whose
derivatives the flag scales. A SKIP without the fallback, since vk_sampler_test
enables no VK_KHR_maintenance8.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 20:38:26 +01:00