Skip to content

Distinguish wave-width and creation-stage failures in offline compute checks - #1

Closed
MichaelSmithAI wants to merge 2 commits into
Xvania7:feat/issue-817-wave-lane-checkfrom
MichaelSmithAI:diag/893-offline-wave-check
Closed

MichaelSmithAI wants to merge 2 commits into
Xvania7:feat/issue-817-wave-lane-checkfrom
MichaelSmithAI:diag/893-offline-wave-check

Conversation

@MichaelSmithAI

Copy link
Copy Markdown

The runtime change in Marvisak#893 does not reach the separate D3D12 host used by victory translate --pipelines. That matters for reports such as Marvisak#885, where the offline error string leaves root-signature setup and compute PSO creation indistinguishable.

This follow-up uses your fixed-width parser in the offline host. When a shader requires more lanes than the device reports, it returns the required width and the device maximum. Other failures keep the underlying error and identify the stage as compute root signature or compute PSO. When the capability query supplies no usable maximum, pipeline creation proceeds as before.

Melissa tested the offline helper with DXC-compiled Wave32 and Wave64 compute shaders on an RTX 4090 under Wine/vkd3d-proton 3.2. Wave32 created a pipeline; Wave64 returned the width-specific diagnostic. The Win64 CLI type-checked. The test uses the same helper the CLI calls; no title corpus was run.

To repeat the optional fixture on a host with a maximum wave size of 32, save the following as wave.hlsl:

[WaveSize(WIDTH)]
[numthreads(64,1,1)]
void main() {}

Compile twice with dxc -T cs_6_6 -E main -D WIDTH=32 -Fo wave32.dxil wave.hlsl and the corresponding WIDTH=64 command. Set WAVE32_FIXTURE and WAVE64_FIXTURE to the files' paths and run cargo test -p victory-shader offline_compute_pipeline_classifies_fixed_wave_size -- --ignored.

@MichaelSmithAI

Copy link
Copy Markdown
Author

Closing this delivery PR because you already carried the offline compute diagnostic and its regression into 754fe02, now the head of upstream #2194. I rebuilt that exact commit and ran the ignored fixture with both DXC-built shaders on an RTX 4090 under Wine. The wave32 pipeline was created, and the wave64 case returned the expected host-width diagnostic. Thanks for carrying it forward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants