llvm / llvm/offload-test-suite
[DirectX] Invalid initialization of DescriptorSets on graphic pipelines
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 18
- Forks
- 39
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 40
Description
Seems like the DirectX code to setup the descriptor sets is not valid on graphic pipelines:
```
D3D: CGraphicsCommandList::SetGraphicsRootDescriptorTable: No root signature has been set, so setting a descriptor table doesn't make sense and is invalid.
```
Switching the position of the `SetGraphicsRootDescriptor` before the call to `SetGraphicsRootDescriptorTable` seems to fix the error and allow the pipeline to run, but still some resources seem to not be bound (a write to a RWStructuredBuffer in a pixel shader is not visible in the pipeline state at the end for ex)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the DirectX graphics-pipeline descriptor setup around SetGraphicsRootDescriptor and SetGraphicsRootDescriptorTable. Reproduce the reported missing-root-signature validation error, then verify descriptor binding and RWStructuredBuffer visibility after changing the call order. Done means graphics pipelines initialize without the validation error and resources are correctly visible in the pipeline state.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100