Commit Graph

4696 Commits

Author SHA1 Message Date
ce907ce756 Merge origin/main into carry/pr-2062
d3d12_vulkan_device: report_pipeline_cache_growth() before main's over_save_limit check, note_pipeline_cache_size() before main's journal setup. Docs: main's paragraph, then the PR's growth-stall text without its old 256 MiB cap line.

Co-authored-by: Galaxy <23423870+thegalaxydev@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 13:51:25 +01:00
ca1c246a12 Merge origin/main into carry/pr-2085
geometry_views: main's written_vas_-only refresh kept; run_needed() looks each tile up again in tiles_ and skips dead views (no Tile* pointers, as qhukz13 asked). Test: main's tests 5-16 plus the PR's two as 17-18.

Co-authored-by: BubsMcgee <203599835+BubsMcgee@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 13:51:24 +01:00
173c5d41a6 Merge origin/main into carry/pr-2174
vk_harness: main's has_cap scan of both stages, plus needs_interlock = has_cap(fs_code, 5378) from the PR.

Co-authored-by: QemmHD <290605352+QemmHD@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 13:51:23 +01:00
34ddcc1526 Merge origin/main into carry/pr-2173
CMakeLists: d3d12_backend_test (PR) and the Vulkan headers version check (main) both kept.

Co-authored-by: quartz-heron-58 <245169279+quartz-heron-58@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 13:51:23 +01:00
3535eb5c4b Merge pull request #1910 from IlyassRS3/fix/rt-vk-helper-proc-cache-and-guards 2026-11-29 13:44:58 +01:00
44ddf9b052 Merge pull request #1600 from thiefyzheng/fix/test-tempdir-stripped-env 2026-11-29 13:44:40 +01:00
0e7e1059d3 Merge pull request #2575 from MoonEyes/claude/d3d-bundle-execute-indirect-37f83c 2026-11-29 13:44:13 +01:00
c34cec72ee Merge pull request #2593 from Bloh09/fix/ci-main-red-tests 2026-11-29 13:44:04 +01:00
399a5eabdf d3d12/vulkan: implement Xbox OMSetSampleMaskX (slot 142) with runtime SPIR-V quad mask 2026-11-29 07:17:27 -05:00
69b3780fb7 d3d12/vulkan: enable partial-mip streaming with minLod clamp and active_span 2026-11-29 06:36:45 -05:00
85f806b916 rendering(r8a): forward Xbox DispatchMesh (slot 129), queries (28-30), and CopyMemoryToMemoryX (62)
Xbox console list slot 129 (DispatchMesh -> PC slot 79) was silently dropped as unforwarded, skipping all direct mesh-shader 3D-to-UV ped/decoration texture bakes and leaving 9/10 BC3_UNORM_SRGB (and BC7/BC1) composited textures 100% all-zero on the GPU.

Forward list slot 129 -> PC 79 (DispatchMesh) with bundle deferral and z==0 draw guard, forward live query slots 28..30 -> PC 52..54 (BeginQuery/EndQuery/ResolveQueryData, updating kConsoleBeginQuery/kConsoleEndQuery), implement CopyMemoryToMemoryX (slot 62, older layout slot 60) via VA-based CopyMemory replay with split-chunk and overlap-staged copies, and add replay + mock unit tests.
2026-11-29 06:36:45 -05:00
b620db492f rendering(r6b): use 16-byte descriptor stride for D3D12_DESCRIPTOR_HEAP_TYPE_SAMPLER
Xbox Series shaders (10,584 shaders / 39.9% of the corpus) index directly-indexed sampler heaps at 16-byte stride (4-dword hardware S#). Previously the runtime hardcoded 32-byte stride for SAMPLER heaps, so every odd sampler slot (0x430, 0x4b0, etc.) read zeroed upper bytes and fell back to fallback_sampler_ (NEAREST + CLAMP_TO_EDGE -> 1D clamped road stripes and nearest-neighbor textures), while even slots read wrong sampler N/2.

Introduce sampler_descriptor_size = 16 and descriptor_increment(type) across GetDescriptorHandleIncrementSize, CreateSampler/CreateSampler2, DescriptorHeap, CopyDescriptors*, scan_title_table, materialize_table, console_heap_range_plausible, local_write_through/copy_title_slots/pull_title_descriptors/local_mirror_table, proxy_create_sampler_x, and d3d12_com.cpp; add packed 16-byte even/odd sampler regression tests.
2026-11-29 06:36:03 -05:00
edcc7f3dca rendering(r6a): forward CopyResourceX and mark GPU-copied placed TitleTextures as gpu_written
Ped head compositing writes BC3/BC7 blocks into placed slot-133 TitleTextures via CopyTextureRegionX (slot 85) and CopyResourceX (slot 86). Previously slot 86 was dropped as unforwarded, and placed BC textures (which cannot carry RT/DS/UAV flags) stayed gpu_written=false, causing place_title_view() and refresh_title_textures() to overwrite GPU-composited ped skin with zeroed CPU pages (intermittent pitch-black heads).

Forward list slot 86 (CopyResourceX) to PC slot 17 (CopyResource); synchronously promote placed texture destinations of CopyTextureRegion/CopyResource/ResolveSubresource to gpu_written=true on ExecuteCommandLists (preserving unmodified mips on partial copies and avoiding fill_unlocked TOCTOU); add UNORM/sRGB mutability on placed textures for cross-alias format_family matching; fix evict_and_replace() gpu_placements cleanup; and add unit + Wine regression tests.
2026-11-29 06:35:28 -05:00
0da4ca4028 rendering(r5a): allow R16_UNORM UAV views on native D16_UNORM[_S8_UINT] depth-stencil textures
On GPUs with native VK_FORMAT_D16_UNORM_S8_UINT (e.g. AMD RADV), Resource::enable_depth_stencil_uav created the plane-0 storage shadow as non-mutable DXGI_FORMAT_R16_UINT, causing CreateUnorderedAccessView to reject DXGI_FORMAT_R16_UNORM (format 56) views such as MaterialDepth (dsv=118) with all-zero descriptors. Use DXGI_FORMAT_R16_TYPELESS for depth16 plane-0 storage shadows across native and widened paths, allow R16_UINT and R16_UNORM views while rejecting typeless texture UAVs, and extend xbox_depth_storage_test.
2026-11-29 06:34:52 -05:00
484d98388c rendering(r4b-rt): add VK_EXT_shader_image_atomic_int64 R64ui binding 29, buffer UAV R32_UINT format, and T# tail/extent guards 2026-11-29 06:34:52 -05:00
eb1cf5e96e rendering(r3): fix Blob A CB_TARGET_MASK (+0xcc), depth bias, T# bugs 1A-1D, OMSetDepthBounds replay, and stage-link polish 2026-11-29 06:34:13 -05:00
7350c5d405 rendering(r2): fix PSO read-only DSVs (U1b), T# zombie filter (T3), and runtime VS/MS->PS varying linking
- U1b: track depth_writes/stencil_writes on GraphicsPipeline so writable DSVs bound with DepthWriteMask=ZERO PSOs stay in GENERAL and decompress RADV HTILE
- T3: reject WORD4 reserved bits (0x6000C000) and fmt==0 as not_tsharp, gate 3D UAV slice check after owner lookup, and cap tsharp-refuse per reason (<8)
- Stage linking: add runtime/src/spirv_stage_link.h + unit tests and wire into create_graphics / lazy stage_words to remap PS Input Locations via FSSM + DXBC OSG1/PSG1/ISG1
2026-11-29 06:34:13 -05:00
7ba56174b8 rendering(r1): fix read-only DSV HTILE layout, D16S8 SRVs, non-array T# decode, and PRESENT_DUMP
- U1: preserve D3D12_DSV_FLAG_READ_ONLY_* on TargetView; remap read-only depth layouts to GENERAL when sampled_in_general; emit shader-read barrier visibility and gated VK_ATTACHMENT_STORE_OP_NONE
- U2: add VK_FORMAT_D16_UNORM_S8_UINT to gfx10::format_table so DXGI 119 SRVs succeed on AMD/RADV
- T1/T2: decode non-array GFX10 image_1d/image_2d/image_2d_msaa as layer_count=1 (ignoring linear pitch/depth in WORD4[12:0]); route image_1d_array to TEXTURE1D
- P0: keep capture_ptr_ alive across splash handoff when LEONIDA_PRESENT_DUMP is enabled
- Add capped tsharp-refuse and slot-57 fallback diagnostics + unit/VVL GPU tests
2026-11-29 06:34:13 -05:00
314b4e73dd Merge upstream ProjectLeonida/mandy main (b589e0fe0) into round10 base
# Conflicts:
#	docs/design.md
#	runtime/shims/d3d12_vulkan_device.cpp
#	runtime/src/queue_holds.h
#	runtime/src/shader_library.h
#	runtime/src/vulkan_backend.h
#	runtime/src/vulkan_replay.h
#	runtime/test/vk_harness.cpp
#	tests/semantic/test_wave32_lane_select.py
#	tools/lane_masks.py
#	tools/rdna2spirv.py
2026-11-29 06:33:39 -05:00
f58143876e Merge ProjectLeonida/mandy main into claude/d3d-bundle-execute-indirect-37f83c 2026-11-29 09:49:45 +00:00
fb5d04b3f9 Merge origin/main into #1050 (carry prep)
runtime/CMakeLists.txt: kept both test blocks (console_list_records and main's gpu_label_memory).

Co-authored-by: Gavin Bloom <209302503+baldyb4242@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 09:41:07 +01:00
54b2a81e95 Merge pull request #2508 from lixonik/rt-picture-2d-layers-compose-alpha
present_compose: fix premultiplied sRGB and additive alpha plane 1 decoding
2026-11-29 09:20:13 +01:00
a6a65a4522 Merge pull request #2527 from Tyrannys/claude/address-guard-sharing
Address guard: share the page-table buffer across queue families (RT-ADDRESS-GUARD-QUEUE-SHARING)
2026-11-29 09:20:03 +01:00
451afe327b Merge pull request #2523 from Tyrannys/rt-replay-dropped-dispatch-clamp
vulkan_replay: a dropped indirect dispatch prepares and emits no clamp pass (RT-REPLAY-DROPPED-DISPATCH-CLAMP)
2026-11-29 09:19:54 +01:00
26036832c8 Merge pull request #2530 from Tyrannys/rt-replay-statistics-mesh-segments
vulkan_replay: a clamped mesh draw's statistics segment is a mesh segment; a batch reads only its own lists (RT-REPLAY-STATISTICS-MESH-SEGMENTS)
2026-11-29 09:19:44 +01:00
0125399d41 Merge pull request #1129 from MalexAson/fix/subgroup-shaders-spirv-tools
cmake: the d3d12_subgroup_test shader rule names the spirv tools folder (BUILD-SUBGROUP-SPIRV-TOOLS)
2026-11-29 09:11:25 +01:00
985dfac773 Merge pull request #2083 from alexandersato0830/codex/title-hud-vulkan-guard
Gate the title HUD test on Vulkan headers (CMAKE-TITLE-HUD-OPTIONAL-VULKAN)
2026-11-29 09:11:13 +01:00
064a3b253e Merge pull request #2096 from Tauwni/fix/null-descriptor-generated-dir
cmake: generated/ exists at configure time and before vk_null_descriptor_test's rule; no "Failed to open file" on a fresh build (BUILD-NULL-DESCRIPTOR-GENERATED-DIR)
2026-11-29 09:11:03 +01:00
01c555a3c1 Merge pull request #687 from kotekompotek/work/d3d12-xs-list-slot80-dispatch
d3d12_xs: map console list slot 80 DispatchX to PC Dispatch slot 14
2026-11-29 09:10:46 +01:00
29c0ad95ca Merge pull request #1783 from IlyassRS3/fix/rt-queue-holds-pump-safety
runtime: make QueueHolds pump handoff race-free, exception-safe, and per-instance (RT-QUEUE-HOLDS-PUMP-SAFETY)
2026-11-29 09:10:32 +01:00
d66464eb4e Merge pull request #1218 from sodove/perf/shader-index-block-read
shader_library: read indexes in blocks and reject incomplete reads (RT-SHADER-INDEX-BLOCK-READ)
2026-11-29 09:10:18 +01:00
02c3ef96d1 Merge pull request #1390 from Diegobecker07/old-9990-slot-caller
d3d12_xs: the first call of a forwarded device slot names its caller (OLD-9990, RT-526)
2026-11-29 09:10:05 +01:00
0cbee763dc Merge pull request #1858 from thiefyzheng/fix/d24-cpu-roundeven
runtime: Depth24 CPU conversions independent of the thread's rounding mode (RT-D24-CPU-ROUNDEVEN)
2026-11-29 09:09:53 +01:00
867eb160b5 runtime: link fixed-base probe non-incrementally
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-11-29 06:05:04 +00:00
c2b5df07de runtime: link no-relocation fixtures without incremental linking 2026-11-29 06:04:53 +00:00
47fcb839b7 runtime: pipeline_workers_test probes the OOM push_back on its own deque and checks a failed one leaves batches and jobs unchanged (CI-PIPELINE-WORKERS-PUSH-PROBE) 2026-11-28 20:42:28 -08:00
0e5d2056b0 runtime: vk_bindless_dimensions skips on the device's limits and expects the sized 1D, 2D-array and 3D counts above its live images (CI-BINDLESS-DIMENSIONS-LIMITS-SKIP) 2026-11-28 20:42:28 -08:00
bf458bbcb3 Merge remote-tracking branch 'origin/main' into lb
# Conflicts:
#	docs/design.md
2026-11-29 04:52:45 +01:00
3fbfcc6f8d Merge upstream/main into fix/ci-main-red-tests
Resolved conflicts in bench_translate.py, export_old_pr_manifest.py,
pc_prompt_glyphs.py and xbox_prompt_glyphs.py by taking main's
errors=replace guards (#2590). Dropped CI-STDOUT-GUARD-NEW-TOOLS.
2026-11-28 19:40:09 -08:00
b830bd3eb5 Merge pull request #1181 from whoalin1/shader-468-f16-varying
rdna2spirv: f16 interp deltas and toward-zero p2 narrow (SHADER-468)
2026-11-29 04:36:37 +01:00
9fac739da4 Merge pull request #2239 from zmasi/fix/rdna2spirv-f16-interp-computed-ij
rdna2spirv: lower computed I/J barycentrics under --f16-interp-fallback (SHADER-F16-INTERP-COMPUTED-IJ)
2026-11-29 04:36:24 +01:00
371d8556f9 Merge pull request #1528 from kawaii-shakal/input-out-of-the-box
make_game, gameinput: controller, keyboard and mouse input out of the box (INPUT-OUT-OF-THE-BOX)
2026-11-29 04:36:04 +01:00
98f68ffa07 Merge pull request #1240 from piyonchu/pr/psm-appnotify-wer-shims
runtime/shims: shim PSM app-notification and WER file registration APIs (RT-PSM-APPNOTIFY-WER)
2026-11-29 04:35:54 +01:00
0d7c1c0802 Merge pull request #1693 from sodove/feat/windows-boot-private-minidump
windows-boot: collect private crash dumps and stack traces on request
2026-11-29 04:35:44 +01:00
3ecd31707f Merge pull request #1788 from IlyassRS3/fix/rt-gpu-label-memory-expand
runtime: preserve in-flight GPU label targets when expanding a non-heap region (RT-GPU-LABEL-MEMORY-EXPAND)
2026-11-29 04:35:16 +01:00
268e7f0298 Merge pull request #2470 from Tyrannys/rt-title-writeback-same-page-ranges
d3d12: every title write-back range on one guarded page goes back (RT-TITLE-WRITEBACK-SAME-PAGE-RANGES)
2026-11-29 02:55:43 +01:00
2c9a491d59 runtime: cs_imgatomic_ext uses the volume T# words vk_store_test expects (CI-IMGATOMIC-EXT-VOLUME-TAG)
Based on work by @PierreEbele in ProjectLeonida/mandy#1518.

Co-authored-by: PierreEbele <127682386+PierreEbele@users.noreply.github.com>
2026-11-28 17:31:06 -08:00
1d582d5c8b runtime: vk_bindless_dimensions skips a device whose sized arrays hold fewer than its live images (CI-BINDLESS-DIMENSIONS-SMALL-DEVICE) 2026-11-28 17:31:05 -08:00
a5314101cc runtime: xs_proxy_mock times the list-value gate with steady_clock (CI-XS-PROXY-TICK-CLOCK) 2026-11-28 17:31:05 -08:00
51a3b3b8b4 runtime: pipeline_workers_test accepts the OOM push_back that libstdc++ never fails (CI-PIPELINE-WORKERS-DEQUE-OOM) 2026-11-28 17:31:05 -08:00