Measure mesh shader -Od pipeline creation across D3D12 adapters #804

Closed
opened 2026-11-23 06:34:40 +00:00 by R0Y00 · 2 comments
R0Y00 commented 2026-11-23 06:34:40 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T06:34:40Z.


Refs #775 and #801. Local triage of 77 archive records previously blocked by DXC timeouts recovered DXIL for 63 with -Od. WARP created pipelines for those 63 after a separate host-stack diagnostic. RTX still showed time and memory limits. This issue covers cross-adapter mesh pipeline measurements.

Claim an adapter and driver in a comment. Use a source-built mesh shader with known output and a generated stress variant that preserves that output. Identify the source revision, target profile and tools. Compile the same input with default optimization and -Od. Where both compile, feed each exact DXIL blob into the same PSO harness with identical descriptors and pipeline state. Compare WARP and at least one physical adapter. Reports for additional vendors are welcome.

  • Record DXC version, flags, compile time and outcome separately from pipeline time, peak process memory and outcome. Include the adapter, driver, Windows build and debug-layer status.
  • Distinguish unsupported mesh capability, compiler diagnostics, time or memory limits, driver/process exit and returned HRESULT. Report any changed watchdog, memory or host stack setting as a separate run.
  • If both variants execute, compare their readback to the same independent reference, with a deliberately wrong reference or binding that the test catches. If only pipeline creation is reached, report that milestone and the next blocker.
  • Share source-built inputs and aggregate results. Keep #801 as the existing DXC timing-tool review. The archive-wide follow-up belongs to the aggregate acceptance run.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6553751244 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/810). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T06:34:40Z. --- Refs #775 and #801. Local triage of 77 archive records previously blocked by DXC timeouts recovered DXIL for 63 with -Od. WARP created pipelines for those 63 after a separate host-stack diagnostic. RTX still showed time and memory limits. This issue covers cross-adapter mesh pipeline measurements. Claim an adapter and driver in a comment. Use a source-built mesh shader with known output and a generated stress variant that preserves that output. Identify the source revision, target profile and tools. Compile the same input with default optimization and -Od. Where both compile, feed each exact DXIL blob into the same PSO harness with identical descriptors and pipeline state. Compare WARP and at least one physical adapter. Reports for additional vendors are welcome. - Record DXC version, flags, compile time and outcome separately from pipeline time, peak process memory and outcome. Include the adapter, driver, Windows build and debug-layer status. - Distinguish unsupported mesh capability, compiler diagnostics, time or memory limits, driver/process exit and returned HRESULT. Report any changed watchdog, memory or host stack setting as a separate run. - If both variants execute, compare their readback to the same independent reference, with a deliberately wrong reference or binding that the test catches. If only pipeline creation is reached, report that milestone and the next blocker. - Share source-built inputs and aggregate results. Keep #801 as the existing DXC timing-tool review. The archive-wide follow-up belongs to the aggregate acceptance run.
alvaroolt commented 2026-11-24 06:49:08 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by alvaroolt on 2026-11-23T11:37:52Z.


Results for the RTX 5080 (32.0.16.2124), the AMD Radeon iGPU of a Ryzen 7 9800X3D (1002:13c0, 32.0.11034.2) and WARP 10.0.26100.9818 on Windows 11 build 26300.9974. DXC was 1.9.2602.17 from SDK 10.0.26100, and the debug layer was unavailable. The tool, fixture and full table are in #842.

The mesh shader is source-built and has a known draw: one triangle that is visible only when a generated integer computation on a constant-buffer seed matches a Python reference. Each variant was compiled with default optimization and with -Od (ms_6_5). Both blobs went through the same --mesh-entry pipeline stream. Pipeline creation is timed inside the renderer. The first creation per run uses a fresh seed, so the driver cache starts cold. The timeout policy was 300 s.

variant RTX 5080 default / -Od Radeon default / -Od WARP default / -Od
loops_1024 5.35 / 5.16 s 8.67 / 1.28 s crash / mismatch after PSO
loops_4096 83.9 / 79.0 s, 3.1 / 3.2 GiB timeout / 17.6 s crash after PSO
loops_8192 timeout, 11.6 GiB / timeout timeout / 75.2 s, 15.4 GiB 28.5 / 28.4 s, then crash
  • Every blob that drew the reference also failed both negative controls on that adapter: one flipped seed bit, and a reference with the triangle missing.
  • No HRESULT failure, compiler diagnostic or unsupported mesh tier occurred.
  • The RTX limit here is pipeline time and memory, and -Od does not move it. On the Radeon, -Od turns two default timeouts into correct draws.
  • On WARP, pipeline creation always returned, but the draw then failed:
    • loops_768 gives a wrong image at both optimization levels. loops_640 matches.
    • Larger variants exit with 0xc0000005 or 0xc0000374 after CreatePipelineState.
    • The boundary follows the number of loops, not the iteration count. A single loop of 10^6 iterations matches.
    • I have not established the cause, and I did not change the host stack.

AI-assisted (Claude Code). I ran the measurements on the hardware above.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7099887741 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/810#issuecomment-7099887741). Originally posted by [alvaroolt](https://github.com/alvaroolt) on 2026-11-23T11:37:52Z. --- Results for the RTX 5080 (32.0.16.2124), the AMD Radeon iGPU of a Ryzen 7 9800X3D (`1002:13c0`, 32.0.11034.2) and WARP 10.0.26100.9818 on Windows 11 build 26300.9974. DXC was 1.9.2602.17 from SDK 10.0.26100, and the debug layer was unavailable. The tool, fixture and full table are in #842. The mesh shader is source-built and has a known draw: one triangle that is visible only when a generated integer computation on a constant-buffer seed matches a Python reference. Each variant was compiled with default optimization and with `-Od` (`ms_6_5`). Both blobs went through the same `--mesh-entry` pipeline stream. Pipeline creation is timed inside the renderer. The first creation per run uses a fresh seed, so the driver cache starts cold. The timeout policy was 300 s. | variant | RTX 5080 default / -Od | Radeon default / -Od | WARP default / -Od | |---|---|---|---| | `loops_1024` | 5.35 / 5.16 s | 8.67 / 1.28 s | crash / mismatch after PSO | | `loops_4096` | 83.9 / 79.0 s, 3.1 / 3.2 GiB | timeout / 17.6 s | crash after PSO | | `loops_8192` | timeout, 11.6 GiB / timeout | timeout / 75.2 s, 15.4 GiB | 28.5 / 28.4 s, then crash | - Every blob that drew the reference also failed both negative controls on that adapter: one flipped seed bit, and a reference with the triangle missing. - No HRESULT failure, compiler diagnostic or unsupported mesh tier occurred. - The RTX limit here is pipeline time and memory, and `-Od` does not move it. On the Radeon, `-Od` turns two default timeouts into correct draws. - On WARP, pipeline creation always returned, but the draw then failed: - `loops_768` gives a wrong image at both optimization levels. `loops_640` matches. - Larger variants exit with `0xc0000005` or `0xc0000374` after `CreatePipelineState`. - The boundary follows the number of loops, not the iteration count. A single loop of 10^6 iterations matches. - I have not established the cause, and I did not change the host stack. AI-assisted (Claude Code). I ran the measurements on the hardware above.
R0Y00 commented 2026-11-24 06:49:09 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T12:06:08Z.


#842 is merged and records the source-built default and -Od comparison on WARP, RTX 5080 and Radeon. The report separates compilation, pipeline creation and draw outcomes. Successful draws check the same reference and both negative controls. The larger WARP cases reached pipeline creation and then mismatched or crashed, which remains an observed limit of those variants. This completes the cross-adapter measurement requested here.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7100492646 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/810#issuecomment-7100492646). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T12:06:08Z. --- #842 is merged and records the source-built default and -Od comparison on WARP, RTX 5080 and Radeon. The report separates compilation, pipeline creation and draw outcomes. Successful draws check the same reference and both negative controls. The larger WARP cases reached pipeline creation and then mismatched or crashed, which remains an observed limit of those variants. This completes the cross-adapter measurement requested here.
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#804
No description provided.