test: texture tiles NOTE only for the measured CopyTiles offset rounding on AMD and Intel (D3D-TILES-AMD-BYTE-OFFSET) #964
Closed
adrianmjim wants to merge 4 commits from
upstream-pr/964 into main
pull from: upstream-pr/964
merge into: ProjectLeonida:main
ProjectLeonida:main
ProjectLeonida:claude/loop-total
ProjectLeonida:claude/pops-collision-seed
ProjectLeonida:claude/dstorage-hold-page-reads
ProjectLeonida:claude/host-image-copy-switch
ProjectLeonida:feat/gdk-lifecycle-window-hook
ProjectLeonida:claude/d16s8-uav-nvidia-fallback
ProjectLeonida:feat/mfplat-offline-shim
ProjectLeonida:claude/gameinput-slow-reader
ProjectLeonida:fix/rt-null-barrier-clear
ProjectLeonida:claude/depth-resolve-sample-positions
ProjectLeonida:integration/palmetto-parity
ProjectLeonida:claude/valu-literal-sext
ProjectLeonida:claude/slot74-pool-handle
ProjectLeonida:claude/rgb9e5-uint-alias-view
ProjectLeonida:claude/fssm-root-layout-tables
ProjectLeonida:feat/gdk-speech-display-lifecycle
ProjectLeonida:asset-audio-skip-current
ProjectLeonida:qemmhd/old-9940-rectangle-quad-lists
ProjectLeonida:feat/ws2-offline-shim
ProjectLeonida:qemmhd/rt-d16-unorm-uav
ProjectLeonida:feat/xs-device-stops-7-9
ProjectLeonida:qemmhd/rt-depth-same-base-shapes
ProjectLeonida:qemmhd/rt-lazy-attachment-variant
ProjectLeonida:feat/acphal-xma2-decoder
ProjectLeonida:asset-audio-skip
ProjectLeonida:codex/coord-claim-check-20261124-7e48
ProjectLeonida:feat/xs-frame-pacing-presentx
ProjectLeonida:feat/xs-device-vm-options
ProjectLeonida:old-pr/9844
ProjectLeonida:old-pr/9978
ProjectLeonida:old-pr/9815
ProjectLeonida:old-pr/10057
ProjectLeonida:old-pr/9874
ProjectLeonida:old-pr/9965
ProjectLeonida:old-pr/9863
ProjectLeonida:old-pr/10068
ProjectLeonida:old-pr/10066
ProjectLeonida:old-pr/10067
ProjectLeonida:old-pr/10007
ProjectLeonida:old-pr/10061
ProjectLeonida:old-pr/10065
ProjectLeonida:old-pr/10059
ProjectLeonida:old-pr/10063
ProjectLeonida:old-pr/10055
ProjectLeonida:old-pr/10062
ProjectLeonida:old-pr/10042
ProjectLeonida:old-pr/10041
ProjectLeonida:old-pr/10049
ProjectLeonida:old-pr/10047
ProjectLeonida:old-pr/10046
ProjectLeonida:old-pr/10045
ProjectLeonida:old-pr/10056
ProjectLeonida:old-pr/10043
ProjectLeonida:old-pr/10036
ProjectLeonida:old-pr/10034
ProjectLeonida:old-pr/9984
ProjectLeonida:old-pr/10052
ProjectLeonida:old-pr/10038
ProjectLeonida:old-pr/10033
ProjectLeonida:old-pr/10028
ProjectLeonida:old-pr/10050
ProjectLeonida:old-pr/9891
ProjectLeonida:old-pr/9889
ProjectLeonida:old-pr/10051
ProjectLeonida:old-pr/10019
ProjectLeonida:old-pr/10027
ProjectLeonida:old-pr/10029
ProjectLeonida:old-pr/10031
ProjectLeonida:old-pr/10026
ProjectLeonida:old-pr/9941
ProjectLeonida:old-pr/10030
ProjectLeonida:old-pr/10040
ProjectLeonida:old-pr/9990
ProjectLeonida:old-pr/10021
ProjectLeonida:old-pr/9962
ProjectLeonida:old-pr/10022
ProjectLeonida:old-pr/10020
ProjectLeonida:old-pr/10015
ProjectLeonida:old-pr/10025
ProjectLeonida:old-pr/9886
ProjectLeonida:old-pr/10048
ProjectLeonida:old-pr/10014
ProjectLeonida:old-pr/10011
ProjectLeonida:old-pr/9861
ProjectLeonida:old-pr/10010
ProjectLeonida:old-pr/10008
ProjectLeonida:old-pr/9860
ProjectLeonida:old-pr/10006
ProjectLeonida:old-pr/9920
ProjectLeonida:old-pr/9995
ProjectLeonida:old-pr/10000
ProjectLeonida:old-pr/10016
ProjectLeonida:old-pr/10004
ProjectLeonida:old-pr/10023
ProjectLeonida:old-pr/9982
ProjectLeonida:old-pr/9981
ProjectLeonida:old-pr/9983
ProjectLeonida:old-pr/9970
ProjectLeonida:old-pr/9969
ProjectLeonida:old-pr/9968
ProjectLeonida:old-pr/9971
ProjectLeonida:old-pr/9972
ProjectLeonida:old-pr/9942
ProjectLeonida:old-pr/9963
ProjectLeonida:old-pr/9960
ProjectLeonida:old-pr/9964
ProjectLeonida:old-pr/9985
ProjectLeonida:old-pr/9973
ProjectLeonida:old-pr/9862
ProjectLeonida:old-pr/9953
ProjectLeonida:old-pr/10017
ProjectLeonida:old-pr/9952
ProjectLeonida:old-pr/9955
ProjectLeonida:old-pr/9946
ProjectLeonida:old-pr/9954
ProjectLeonida:old-pr/9938
ProjectLeonida:old-pr/9956
ProjectLeonida:old-pr/9856
ProjectLeonida:old-pr/9947
ProjectLeonida:old-pr/9924
ProjectLeonida:old-pr/9961
ProjectLeonida:old-pr/9927
ProjectLeonida:old-pr/9979
ProjectLeonida:old-pr/10032
ProjectLeonida:old-pr/9926
ProjectLeonida:old-pr/5237
ProjectLeonida:old-pr/9951
ProjectLeonida:old-pr/9931
ProjectLeonida:old-pr/9902
ProjectLeonida:old-pr/9921
ProjectLeonida:old-pr/9994
ProjectLeonida:old-pr/9775
ProjectLeonida:old-pr/9768
ProjectLeonida:old-pr/9905
ProjectLeonida:old-pr/9936
ProjectLeonida:old-pr/9901
ProjectLeonida:old-pr/9904
ProjectLeonida:old-pr/9906
ProjectLeonida:old-pr/9988
ProjectLeonida:old-pr/9908
ProjectLeonida:old-pr/9909
ProjectLeonida:old-pr/9911
ProjectLeonida:old-pr/9912
ProjectLeonida:old-pr/9913
ProjectLeonida:old-pr/9887
ProjectLeonida:old-pr/9916
ProjectLeonida:old-pr/9919
ProjectLeonida:old-pr/9925
ProjectLeonida:old-pr/9933
ProjectLeonida:old-pr/9935
ProjectLeonida:old-pr/9918
ProjectLeonida:old-pr/9879
ProjectLeonida:old-pr/9880
ProjectLeonida:old-pr/9881
ProjectLeonida:old-pr/9996
ProjectLeonida:old-pr/9876
ProjectLeonida:old-pr/9892
ProjectLeonida:old-pr/9899
ProjectLeonida:old-pr/9915
ProjectLeonida:old-pr/9914
ProjectLeonida:old-pr/9872
ProjectLeonida:old-pr/9869
ProjectLeonida:old-pr/9866
ProjectLeonida:old-pr/9819
ProjectLeonida:old-pr/10012
ProjectLeonida:old-pr/9857
ProjectLeonida:old-pr/9893
ProjectLeonida:old-pr/9897
ProjectLeonida:old-pr/9928
ProjectLeonida:old-pr/9868
ProjectLeonida:old-pr/9917
ProjectLeonida:old-pr/9940
ProjectLeonida:old-pr/9873
ProjectLeonida:old-pr/9816
ProjectLeonida:old-pr/10009
ProjectLeonida:old-pr/9900
ProjectLeonida:old-pr/9966
ProjectLeonida:old-pr/9859
ProjectLeonida:old-pr/9843
ProjectLeonida:old-pr/9991
ProjectLeonida:old-pr/10058
ProjectLeonida:old-pr/9883
ProjectLeonida:old-pr/9838
ProjectLeonida:old-pr/9835
ProjectLeonida:old-pr/9959
ProjectLeonida:old-pr/9895
ProjectLeonida:old-pr/9837
ProjectLeonida:old-pr/9858
ProjectLeonida:old-pr/9865
ProjectLeonida:old-pr/9864
ProjectLeonida:old-pr/9840
ProjectLeonida:old-pr/9820
ProjectLeonida:old-pr/4669
ProjectLeonida:old-pr/9848
ProjectLeonida:old-pr/9850
ProjectLeonida:old-pr/9810
ProjectLeonida:old-pr/9799
ProjectLeonida:old-pr/9853
ProjectLeonida:old-pr/9875
ProjectLeonida:old-pr/9831
ProjectLeonida:old-pr/9796
ProjectLeonida:old-pr/9801
ProjectLeonida:old-pr/9813
ProjectLeonida:old-pr/9794
ProjectLeonida:old-pr/7417
ProjectLeonida:old-pr/9781
ProjectLeonida:old-pr/9806
ProjectLeonida:old-pr/9958
ProjectLeonida:old-pr/9809
ProjectLeonida:old-pr/9791
ProjectLeonida:old-pr/9792
ProjectLeonida:old-pr/10053
ProjectLeonida:old-pr/9784
ProjectLeonida:old-pr/9789
ProjectLeonida:old-pr/9849
ProjectLeonida:old-pr/9846
ProjectLeonida:old-pr/9773
ProjectLeonida:old-pr/9785
ProjectLeonida:old-pr/9803
ProjectLeonida:old-pr/9826
ProjectLeonida:old-pr/9839
ProjectLeonida:old-pr/9922
ProjectLeonida:old-pr/9948
ProjectLeonida:old-pr/7189
ProjectLeonida:old-pr/9957
ProjectLeonida:old-pr/9823
ProjectLeonida:old-pr/9807
ProjectLeonida:old-pr/9851
ProjectLeonida:old-pr/9774
ProjectLeonida:old-pr/9830
ProjectLeonida:old-pr/9836
ProjectLeonida:old-pr/9822
ProjectLeonida:old-pr/9783
ProjectLeonida:old-pr/9833
ProjectLeonida:old-pr/9890
ProjectLeonida:old-pr/9770
ProjectLeonida:old-pr/9769
ProjectLeonida:old-pr/9772
ProjectLeonida:old-pr/9787
ProjectLeonida:old-pr/9852
ProjectLeonida:old-pr/9834
ProjectLeonida:old-pr/9845
ProjectLeonida:old-pr/9871
ProjectLeonida:old-pr/9771
ProjectLeonida:old-pr/9776
ProjectLeonida:old-pr/10005
ProjectLeonida:old-pr/9949
ProjectLeonida:old-pr/9923
ProjectLeonida:old-pr/9805
ProjectLeonida:old-pr/9829
ProjectLeonida:old-pr/9790
ProjectLeonida:old-pr/9827
ProjectLeonida:old-pr/9929
ProjectLeonida:old-pr/9855
ProjectLeonida:old-pr/9934
ProjectLeonida:old-pr/9907
ProjectLeonida:old-pr/9910
ProjectLeonida:old-pr/9779
ProjectLeonida:old-pr/9780
ProjectLeonida:old-pr/9885
ProjectLeonida:old-pr/9882
ProjectLeonida:old-pr/9877
ProjectLeonida:old-pr/9998
ProjectLeonida:old-pr/4251
ProjectLeonida:old-pr/9987
ProjectLeonida:old-pr/9989
ProjectLeonida:old-pr/9950
ProjectLeonida:old-pr/9777
ProjectLeonida:old-pr/10044
ProjectLeonida:old-pr/9884
ProjectLeonida:old-pr/2906
ProjectLeonida:old-pr/5076
ProjectLeonida:old-pr/9937
ProjectLeonida:old-pr/9986
ProjectLeonida:old-pr/3014
ProjectLeonida:old-pr/9943
ProjectLeonida:old-pr/9939
ProjectLeonida:old-pr/4682
ProjectLeonida:old-pr/4765
No reviewers
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Reference
ProjectLeonida/mandy!964
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/964"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ubiquitarianism/leonida. Originally posted by adrianmjim on 2026-11-24T15:56:50Z.
Claimed in the coordination issue as: D3D-TILES-AMD-BYTE-OFFSET
What and why
d3d12_texture_tilesfails on AMD Windows (RX 7900 XT, AMD 26.11.2 / 32.0.32029.2010):row-major alias tile 0 at (0,0): got 0x20000cc, expected 0xcc020000. It is one of the fivectestfailures #787 lists for RDNA3 on Windows.The half that fails is native D3D12, not the Vulkan layer. The layer's
256 x 240, linear offset 1replay had already passed. Buffered stdout printed its progress line after the native failure on stderr, which made it look like the layer's failure.AMD's driver behaves as if
CopyTilesroundedBufferStartOffsetInBytesdown to a multiple of 4, in both directions:0x020000cc, which is the bytes at offset 0 instead of offset 1, and the texels that straddle a tile seam.The other implementations disagree with AMD:
CopyTilesdocuments no alignment for that offset.This is inferred from the texel values. I did not run the D3D12 debug layer (not installed on this machine).
Update: an Intel Iris Xe host (Intel 32.0.101.7092), measured in this PR by @MalexAson, rounds the offset only in the tiles-to-buffer copies; its upload honours the offset. The test now accepts that pattern as a second model.
Change (test and docs only, no runtime change):
CopyTilesfrommodelled_readback(). Both round the offset down to a multiple of 4: AMD's in both directions, Intel's only in the tiles-to-buffer copies. The NOTE names the model, and every diverging case on a device must match the same one. Any other divergence still fails and prints, for each model, how many reads it leaves unexplained and the first one. Every byte-offset case first checks that the model with the true offset reproduces the test's expectations. The precedent for a NOTE on a measured driver divergence isd3d12_bundle_test.256x240and240x240at offset 4: native stays strict on clipped tiles on every GPU.host_wine.h), as in the other host-comparison tests. stdout is unbuffered.docs/testing.md: new Known problems row.docs/d3d12_vulkan.md: describes the driver behaviour.Tested
AMD Radeon RX 7900 XT, driver 32.0.32029.2010, Windows 11, MSVC (VS 2022), Vulkan SDK 1.4.363.0, base
23c459644.LEONIDA_VK_VALIDATION=1and 3 without. After: passed 6/6 in a row, with no validation messages, and a passing run prints nogot ... expectedlines. The one exception is the handoff case described below.83aea690a: pass, with the tiles-to-buffer-only NOTE at offsets 1 and 3 (https://github.com/ubiquitarianism/leonida/pull/964#issuecomment-7144284362).ctest: only the 4 failuresmainalready has on this GPU (vk_queue_query_sync,d3d12_execute_indirect_validation#504,d3d12_clear#516/#787,d3d12_pipeline_library_host).Still intermittent on AMD, separate issue: the native half of the COPY-to-DIRECT case (offset 4) sometimes reads zeros through the aliased tiles on this GPU. It failed 5 of 30 runs under a parallel
ctestand once in 3 single-test runs.mainthis case is never reached on AMD, because the offset-1 case fails first. This PR therefore turns a deterministic red into an occasional one on AMD.GPUs tested: AMD Radeon RX 7900 XT (RDNA3), AMD driver 26.11.2 (32.0.32029.2010), Windows 11; Intel Iris Xe (Raptor Lake-P), Intel 32.0.101.7092, Windows 11 24H2 (by @MalexAson)
AI-assisted: yes (Claude Code; the change went through three independent review passes before opening)
Checklist
mainand merges cleanly (written on23c459644, merges cleanly ontoa28927849).docs/design.md, with how it was confirmed. (n/a: no translator change)🤖 Generated with Claude Code
Imported from ubiquitarianism/leonida. Originally posted by Copilot on 2026-11-24T16:16:08Z.
Code review location:
runtime/test/d3d12_texture_tiles_test.cpp; line 102height - first_yandwidth - first_xare unsigned subtractions. If a future case uses a texture smaller than a tile (or otherwise makesfirst_* > *), this will underflow and produce a hugerows/columns, leading to out-of-bounds offset calculations. Make this robust by guardingif (first_y >= height || first_x >= width) continue;(or by computing remaining extents with conditional logic before subtracting).Imported from ubiquitarianism/leonida. Originally posted by Copilot on 2026-11-24T16:16:08Z.
Code review location:
runtime/test/d3d12_texture_tiles_test.cpp; line 201For the byte-unaligned cases, the advisory model assumes deterministic bytes in the upload buffer prior to
tile_copy_offset(e.g., when modelling a rounded-down offset). In the real test, only the region starting attile_copy_offsetis written, leaving earlier bytes undefined (dependent on heap/page reuse). To keep the model comparison stable and avoid flakiness on systems where the upload heap isn't zero-filled, initialize the entire mapped upload range used by the test (at least[rounded_offset, tile_copy_offset), or simply the full upload allocation) to a known value before callingfill_tiles().Imported from ubiquitarianism/leonida. Originally posted by Copilot on 2026-11-24T16:16:08Z.
Code review location:
docs/testing.md; line 668This row hard-codes an example NOTE mentioning only offset 1→0 (and offset 3). The test output is parameterized and can also produce NOTE lines for other byte-unaligned offsets (e.g., 5→4, 7→4) if cases expand in the future, and the prose in the same row already mentions offsets 1–8. Consider generalizing the example NOTE text to use placeholders like
linear offset X rounded down to Yso the Known problems entry stays consistent with the test’s actual output format.Imported from ubiquitarianism/leonida. Originally posted by Copilot on 2026-11-24T16:16:08Z.
Code review location:
runtime/test/d3d12_texture_tiles_test.cpp; line 312The
!advisory->unmodelled++idiom is hard to read and easy to misinterpret when revisiting this code. Consider rewriting this as an explicitif (actual != modelled) { if (advisory->unmodelled == 0) ...; ++advisory->unmodelled; }so the 'first unmodelled' capture and the counter increment are unambiguous.Imported from ubiquitarianism/leonida. Originally posted by copilot-pull-request-reviewer[bot] on 2026-11-24T16:16:09Z.
Review: COMMENTED
Copilot review overview
4 open issues
height - first_yandwidth - first_xare unsigned subtractions. If a future case uses a texture… · New!advisory->unmodelled++idiom is hard to read and easy to misinterpret when revisiting this… · NewWhat changed in this PR
Updates the
d3d12_texture_tilestest to treat a specific AMD WindowsCopyTilesbyte-offset divergence as a non-fatal NOTE (when it matches a CPU model), and documents the behavior.Changes:
CopyTilesoffsets; adds WARP confirmation; skips native/WARP comparisons under Wine; unbuffers stdoutCopyTilesrounding behaviorReview effort: Lite
Imported from ubiquitarianism/leonida. Originally posted by adrianmjim on 2026-11-24T16:46:44Z.
Addressed the four review comments in
e4f040332::102):for_each_checkednow skips a tile that starts past the texture edge. No current case reaches it, but a case smaller than the tile grid can no longer underflow.:201): the upload buffer is now zeroed over[0, tile_copy_offset)beforefill_tiles. Those bytes were already zero in practice, since it is a committed resource withoutD3D12_HEAP_FLAG_CREATE_NOT_ZEROED. The model reads them when it rounds the offset down, though, so it should not depend on that.!advisory->unmodelled++: now an explicitifwith a separate increment.Re-run on the RX 7900 XT (driver 32.0.32029.2010): builds without warnings,
d3d12_texture_tilespasses 3/3, one of them withLEONIDA_VK_VALIDATION=1(no validation messages). AI-assisted.Imported from ubiquitarianism/leonida. Originally posted by MalexAson on 2026-11-24T19:24:20Z.
Tested
e4f0403323applied onmain6293c1c4f, on Intel Iris Xe (Raptor Lake-P, 8086:a7a0), Intel 32.0.101.7092, Windows 11 24H2 (26100.6584):d3d12_texture_tilesstill fails. This driver breaks the expectations too, but in a different pattern from the AMD one.The native device the test picks here is the Iris Xe (tiled resources tier 3). The result is the same with the layer on the Iris Xe and on the RTX 4060 Laptop GPU (NVIDIA 616.92). The three offset-4 cases match natively, the layer passes every case and WARP is found (tier 3). Then:
On unchanged
mainthe same run stops at line 239 withalias tile 0 at (0,0): got 0x1cc0200, expected 0xcc020000.What this driver does, measured with a temporary local edit of
modelled_readback(not something to merge): it roundsBufferStartOffsetInBytesdown to a multiple of 4 only in the tiles-to-buffer direction, and honours it in the buffer-to-tiles direction. With the model rounding only the three readback copies, every diverging read is explained, 94208 of 245760 at offset 1 and 84480 of 222720 at offset 3, and the test passes with its NOTE on both layer GPUs. Rounding only the upload direction leaves the same 155648 reads unexplained as rounding both.So a second accepted model, rounded in the readback direction only, would cover this driver. I can rerun here if you push one.
Built with MSVC 19.50 + Ninja, RelWithDebInfo. AI-assisted: this run was made with a coding agent.
Imported from ubiquitarianism/leonida. Originally posted by adrianmjim on 2026-11-24T20:44:14Z.
@MalexAson thanks, that was exactly what was missing. Pushed
83aea690a: a second accepted model, rounded only in the tiles-to-buffer copies.modelled_readback()now takes the upload and the readback offsets separately. A native run at a byte-unaligned offset is a NOTE when every checked read matches one of the two models: both directions (AMD) or tiles-to-buffer only (Intel). The NOTE says which one matched.Checked on the RX 7900 XT, without Intel hardware:
LEONIDA_VK_VALIDATION=1).Could you rerun
d3d12_texture_tileson the Iris Xe at83aea690a? It should print... rounded down to 0 only in the tiles-to-buffer copiesat offsets 1 and 3.Imported from ubiquitarianism/leonida. Originally posted by MalexAson on 2026-11-24T20:57:30Z.
Tested
83aea690aapplied onmain6293c1c4f, on Intel Iris Xe (Raptor Lake-P, 8086:a7a0), Intel 32.0.101.7092, Windows 11 24H2 (26100.6584): pass, with the NOTE you predicted at both offsets.ctest -R "^d3d12_texture_tiles$": 3 of 3 runs pass with the layer on the Iris Xe, and 3 of 3 with the layer on the RTX 4060 Laptop GPU (NVIDIA 621.40; it was 616.92 for my first report). The native device is the Iris Xe in both. With the layer on the RTX 4060 the COPY-to-DIRECT case runs as well and matches natively (262144 pixels).The counts are the ones from my first measurement, and both diverging cases report the same model, so the one-model-per-device rule holds here.
AI-assisted: this run was made with a coding agent.
Imported from ubiquitarianism/leonida. Originally posted by efeekrb on 2026-11-25T16:35:10Z.
Tested on a two-GPU Windows laptop: the layer on an NVIDIA GeForce RTX 4060 Laptop GPU (NVIDIA 610.78), Windows 11 build 26300. The test's native D3D12 side is the Intel UHD Graphics iGPU (Windows driver 31.0.101.4255, tiled resources tier 3), the first hardware adapter.
mainat24a29f8, RelWithDebInfo,LEONIDA_VK_DEVICE=4060. This PR's diff applied cleanly, and onlyd3d12_texture_tiles_testwas rebuilt.main:d3d12_texture_tilesfails 3 of 3 reruns, in the 256 x 240, linear offset 1 case:alias tile 0 at (0,0): got 0x1cc0200, expected 0xcc020000.CopyTileswould with the offset rounded down to 0 only in the tiles-to-buffer copies, and WARP meets the expectations at both.So the Iris Xe pattern also holds on an Intel UHD Graphics. A side note: the test picks its native adapter itself and ignores
LEONIDA_HOST_ADAPTER(finding: https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7166810805), so on a two-GPU PC the native side is the iGPU even when the layer runs on the NVIDIA GPU. No game files; counts and pass/fail lines only. AI-assisted (Claude Code).Imported from ubiquitarianism/leonida. Originally posted by adrianmjim on 2026-11-27T20:43:07Z.
Code review location:
runtime/test/d3d12_texture_tiles_test.cpp; line 102Done in
e4f040332: the loop skips a tile whose first row or column is outside the texture (if (first_y >= height || first_x >= width) continue;) before the subtractions.Imported from ubiquitarianism/leonida. Originally posted by adrianmjim on 2026-11-27T20:43:09Z.
Code review location:
runtime/test/d3d12_texture_tiles_test.cpp; line 201Done in
e4f040332: the upload range beforetile_copy_offsetis zeroed (std::memset(mapped, 0, tile_copy_offset)) beforefill_tiles(), so the rounded-down model reads known bytes.Imported from ubiquitarianism/leonida. Originally posted by adrianmjim on 2026-11-27T20:43:11Z.
Code review location:
docs/testing.md; line 668Done in
e4f040332: the row now quotes the note with placeholders (linear offset X rounded down to Y), says Y is X rounded down to a multiple of 4, and that the test runs X = 1 and 3.Imported from ubiquitarianism/leonida. Originally posted by adrianmjim on 2026-11-27T20:43:13Z.
Code review location:
runtime/test/d3d12_texture_tiles_test.cpp; line 312Done in
e4f040332: it is now an explicitif (... unmodelled == 0) { ... }followed by the increment on its own line (the field ismodel.unmodelledsince the second driver model was added).Imported from ubiquitarianism/leonida. Originally posted by adrianmjim on 2026-11-28T07:52:56Z.
Closing this to free a pull request slot for the memory leak fixes claimed in #1608. The change still applies: on current
main(c0276f15f),d3d12_texture_tilesstill fails on AMD and Intel, and this merges cleanly. The branch stays at07a204a9b, so anyone can pick it up, or I'll reopen it later. Thanks @MalexAson and @efeekrb for the Intel and laptop runs.Imported from ubiquitarianism/leonida. Originally posted by adrianmjim on 2026-11-28T07:54:13Z.
Reopening: closing it did not free anything after all, so it stays open for review.
Pull request closed