tests: native_fixed_mesh57_waterfall_fine_hardware fails on main (mip 1 colour read where mip 0 is expected) #3489

Closed
opened 2026-11-29 17:31:30 +00:00 by Leyukaka · 0 comments
Leyukaka commented 2026-11-29 17:31:30 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-29T17:31:30Z.


native_fixed_mesh57_waterfall_fine_hardware fails on main at c4b8a41b on one hardware adapter. native_fixed_mesh57_waterfall_fine_warp passes on the same build.

pixel (0,0) got 0xff0000ff expected 0xffff0000, 4 pixels
  • Deterministic: 3/3 reruns.
  • Measured with unmodified c4b8a41b sources. Not remeasured at 26df1826; CMakeLists.txt and tests/startup_indirect_draw_indexed.cpp are unchanged between the two.
  • Host: Windows 11 Pro 10.0.26300, NVIDIA GeForce RTX 5080, driver 32.0.16.2101. The D3D12 debug layer is not installed on that host, so there is no validation output.

The test is registered at CMakeLists.txt:1961-1963 with X2W_TEST_NATIVE_MESH57_WATERFALL=1 and X2W_TEST_NATIVE_MESH57_FINE_LOD=1.

In tests/startup_indirect_draw_indexed.cpp, the textures at slots 32 and 36 are 2x2 with two mips: mip 0 is cleared to blue, mip 1 to red (slot 32) or green (slot 36), and the views cover both mips. With FINE_LOD the pixel shader uses constant coordinates and the test expects mip 0 on every pixel (0xffff0000). Without it, the test expects mip 1: 0xff0000ff on even x, 0xff00ff00 on odd x.

The value read at (0,0), 0xff0000ff, is the mip 1 colour of slot 32.

Hypothesis: on this adapter the fine variant still samples mip 1, as the non-fine variant does.

I'm looking into this.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6681861485 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3489). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-11-29T17:31:30Z. --- `native_fixed_mesh57_waterfall_fine_hardware` fails on main at c4b8a41b on one hardware adapter. `native_fixed_mesh57_waterfall_fine_warp` passes on the same build. ``` pixel (0,0) got 0xff0000ff expected 0xffff0000, 4 pixels ``` - Deterministic: 3/3 reruns. - Measured with unmodified c4b8a41b sources. Not remeasured at 26df1826; `CMakeLists.txt` and `tests/startup_indirect_draw_indexed.cpp` are unchanged between the two. - Host: Windows 11 Pro 10.0.26300, NVIDIA GeForce RTX 5080, driver 32.0.16.2101. The D3D12 debug layer is not installed on that host, so there is no validation output. The test is registered at `CMakeLists.txt:1961-1963` with `X2W_TEST_NATIVE_MESH57_WATERFALL=1` and `X2W_TEST_NATIVE_MESH57_FINE_LOD=1`. In `tests/startup_indirect_draw_indexed.cpp`, the textures at slots 32 and 36 are 2x2 with two mips: mip 0 is cleared to blue, mip 1 to red (slot 32) or green (slot 36), and the views cover both mips. With `FINE_LOD` the pixel shader uses constant coordinates and the test expects mip 0 on every pixel (`0xffff0000`). Without it, the test expects mip 1: `0xff0000ff` on even x, `0xff00ff00` on odd x. The value read at (0,0), `0xff0000ff`, is the mip 1 colour of slot 32. Hypothesis: on this adapter the fine variant still samples mip 1, as the non-fine variant does. I'm looking into this.
Sign in to join this conversation.
No labels
No milestone
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
R0Y00/Xbox2Windows#3489
No description provided.