Commit Graph

1470 Commits

Author SHA1 Message Date
b8508a974b Merge branch 'main' of https://github.com/ProjectLeonida/mandy into fix/rendering-correctness
# Conflicts:
#	tests/semantic/test_interp_computed_ij_fallback.py
2026-11-30 04:36:05 -05:00
efc1929908 runtime: eliminate Windows 11 full-space commit_pages_locked broadcast storm, ShadowPages/TitleTextureCells guard conflict, and streaming budget bursts 2026-11-30 04:34:17 -05:00
1aefed0dac runtime: fix present_mutex AB-BA deadlock, cross-queue relay cycle, and held-queue stalls 2026-11-29 21:05:26 -05:00
d1539971a9 runtime: programmable sample positions only for multisampled targets (RT-SAMPLE-LOCATIONS-MSAA-ONLY)
#778 filled the sample-locations grids from 1 sample upwards, so every 1x depth-stencil image was created
sample-locations compatible and carried sample locations through its transitions. D3D12 only has programmable
sample positions for multisampled targets; since #778 the world phase loses the device on an RTX 5080. Keep 1 sample
out (SamplePositions::programmable_count): 1x depth images are plain again, MSAA keeps the feature.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Gt9hwPPpwX5RYWwXCnj43U
2026-11-29 22:43:46 +01:00
1d0867c4a7 runtime: zero-init TargetView trailing padding and allow clamped 0 ms graphics interval in vk_gpu_profile_test 2026-11-29 15:27:45 -05:00
8f7101df63 Merge pull request #1179 from MalexAson/fix/srgb-rtv-clear-encode
vulkan_replay: sRGB render-target clears are encoded in the layer, as WARP encodes them (D3D-CLEAR-SRGB-ENCODE)
2026-11-29 20:00:27 +01:00
947c54abac Merge pull request #1164 from lixonik/d3d-sparse-image-queue-family
d3d12: choose sparse-capable queues for sparse textures (D3D-SPARSE-IMAGE-QUEUE-FAMILY)
2026-11-29 20:00:18 +01:00
aacc89a1c3 Merge pull request #1395 from Diegobecker07/old-9961-skip-asserts
runtime: LEONIDA_SKIP_ASSERTS steps over guest asserts without a trace (OLD-9961, RT-526)
2026-11-29 19:27:49 +01:00
8db8335d23 tests/ci: fix llvmpipe skip on cs_w64x_dynamic_r32_uint, Set 0 binding 29 counts, and D16S8 table row 2026-11-29 12:59:52 -05:00
eff40832ef Merge remote-tracking branch 'refs/remotes/mandy/main' into fix/rendering-correctness
# Conflicts:
#	runtime/shims/d3d12_com.cpp
#	runtime/shims/d3d12_vulkan_device.cpp
#	runtime/src/command_list.h
#	runtime/src/vulkan_replay.h
#	runtime/test/gfx10_descriptors_test.cpp
2026-11-29 11:51:06 -05:00
f051ae5183 d3d12/tests: fix Windows MSVC build, CopyMemory collision, copy parity guard, and --no-ftz32 probe 2026-11-29 11:41:49 -05:00
1d3da5ebc7 Merge pull request #959 from Kadamitas/fix/gfx10-sampler-z-filter
gfx10: preserve the separate volume filter in sampler words
2026-11-29 16:46:15 +01:00
0cedc3a625 Merge pull request #1918 from kawaii-shakal/fault-address-owner
d3d12: the device-fault report names what the process and the driver had at each fault address (RT-FAULT-ADDRESS-OWNER)
2026-11-29 16:45:59 +01:00
bfb54b8759 Merge pull request #778 from kawaii-shakal/d3d-sample-positions
d3d12: replay programmable sample positions (D3D-SAMPLE-POSITIONS)
2026-11-29 16:44:17 +01:00
f72a68bc0b Merge pull request #2089 from KushGene/fix/vk-sampler-lod-order-and-deriv-adjust
gfx10_descriptors: clamp sampler maxLod >= minLod and guard DERIV_ADJUST_EN integer border (VK-SAMPLER-LOD-ORDER-AND-DERIV-ADJUST)
2026-11-29 16:43:52 +01:00
40b88ff7fc Merge pull request #2051 from alexandersato0830/codex/spirv-word-endianness
Normalize SPIR-V file byte order (SPIRV-WORDS-ENDIAN)
2026-11-29 16:43:39 +01:00
38719cc36f Merge pull request #1775 from potatoe0100/carry/old-9773
OLD-9773: d3d12: refuse a pipeline whose shader needs VK_KHR_maintenance8 on a device without it
2026-11-29 16:42:29 +01:00
6024351682 Merge pull request #1739 from IlyassRS3/fix/descriptor-table-guards
runtime: guard DescriptorTable 9-way collision, read_slots width, and change-tracking OOM
2026-11-29 16:42:16 +01:00
daf8122003 Merge pull request #1681 from ImLele69/rt-alloc-no-rebar
d3d12_vulkan: without Resizable BAR, textures and staging buffers leave the BAR window to the arena; tile heaps prefer VRAM (RT-ALLOC-NO-REBAR-RETRIES)
2026-11-29 16:42:02 +01:00
3ef235a681 d3d12/vulkan: rebind released sparse pages to shared zero page on AMD proprietary 2026-11-29 10:40:34 -05:00
a58d22fe2e Merge upstream ProjectLeonida/mandy main (ddfe24fba) into fix/rendering-correctness 2026-11-29 09:37:37 -05:00
d8f6be3234 Merge pull request #2009 from IlyassRS3/perf/rt-uav-clear-fast-pack-and-tests
runtime: speed up uav_clear format lookup and channel pack/unpack with unit tests (RT-UAV-CLEAR-FAST-PACK-AND-UNIT-TESTS)
2026-11-29 15:26:43 +01:00
8c527753cb Merge pull request #2309 from narekshaghoyandev/ubiq-indirect-draw-stats-guards
indirect_draw_stats: guard null FILE* in report and out-of-range Event in note/skip
2026-11-29 15:26:30 +01:00
503831b2cb Merge pull request #2310 from narekshaghoyandev/ubiq-queue-families-slot-max
queue_families: select earliest slot in pick_queue_slot when all slots are UINT32_MAX
2026-11-29 15:26:21 +01:00
e18c786017 Merge pull request #2336 from narekshaghoyandev/ubiq-pipeline-wait-window
pipeline_wait: guard non-positive window and signed subtraction overflow in title_submitting
2026-11-29 15:25:56 +01:00
8969b55559 Merge pull request #2313 from narekshaghoyandev/ubiq-dev-status-null-name
dev_status: guard nullptr in Builds::name()
2026-11-29 15:25:47 +01:00
091bfa8d4d d3d12/vulkan(r9a): fix pending_stream dword6 refill, gpu_owned eviction, COPY_CLIP, and sync slots 131/132 2026-11-29 09:25:40 -05:00
51d343b861 Merge pull request #2043 from alexandersato0830/codex/shader-library-utf8-module-paths
Use UTF-8 for shader library module filenames (SHADER-LIBRARY-UTF8-MODULE-PATHS)
2026-11-29 14:21:11 +01:00
528e0862f2 runtime: LEONIDA_SKIP_ASSERTS steps over guest asserts without a trace (RT-526)
A diagnostic for the retail boot (RT-5 follow-ups), off the hot path and with no behaviour change unless asked
for: LEONIDA_SKIP_ASSERTS=N (src/assert_skip.h, installed by main.cpp before any image code runs under
--init/--run): a vectored handler, added last, steps over up to N int3 (0xCC) at addresses in no host module and
logs each one as module+RVA (and as an int3_skipped trace event when --trace is open). After N it says so once
and the next int3 ends the run as before. An int3 in a host module, a breakpoint with no 0xCC at its address, or
a RIP that is neither at nor one past the 0xCC is passed on. Needs no --trace and no debugger.

Tests (synthetic, no game files): assert_skip_test (int3 in a VirtualAlloc'd page, the limit, a host-module int3,
a two-byte int 3, value parsing) and run_tiny_game_skip_asserts (two int3 in the mapped stand-in game, stepped
over end to end).

Carried over from old upstream PR 9961 (#228) without its caller logging for forwarded device slots, which the
carry-over of old PR 9990 (#1390) brings instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 09:55:11 -03: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
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
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
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
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
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
dcbcd42167 Merge pull request #2057 from abnalstlll-byte/feat/rt-deferred-image-binding-guards-and-tests
runtime: guard null bind callbacks, add owner accessor and unit test suite for DeferredImageBinding (RT-DEFERRED-IMAGE-BINDING-GUARDS-AND-TESTS)
2026-11-29 02:05:25 +01:00
818d881b1f Merge pull request #2454 from Tyrannys/console-heap-gpu-overflow-and-rollback
console_heap_gpu: fix erase_overlapping overflow and keep newer slot flags on rollback (CONSOLE-HEAP-GPU-OVERFLOW-AND-ROLLBACK)
2026-11-29 02:05:09 +01:00