Skip to content

[Scenario] Validator testing #7397

@bob80905

Description

@bob80905

Is your feature request related to a problem? Please describe.
Currently, there does not exist an adequate infrastructure to test the validator that is chosen when validating a shader.
A user can manually test which validation version is used when validating a shader, but there's no automated way within the DXC repo to do this testing.

Describe the solution you'd like
Testing infrastructure should be added to the DXC repo to validate that the right validator is being used in all of the following 3 cases:
internal validation
external validation
<no option, aka default behavior (internal validation)>

The approach is to add an environment variable that will point to a DXIL.dll to use for validation, if external validation is desired. Then, a set of versioned DXIL.dlls can be added to the DXC repo, and a testing suite can be created with an environment variable that points to each of the stored DXIL.dlls. This way we can validate that the compiler, with the presence of this environment variable, selects the right dll to validate with.
The design should conform to the behavior described in https://github.com/microsoft/hlsl-specs/blob/main/proposals/infra/INF-0004-validator-hashing.md

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

Status
Triaged

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions