Issue 138997
Summary [DirectX] DXIL container shader flags are incorrect when using native low precision
Labels backend:DirectX
Assignees
Reporter bogner
    If we build any shader with `clang-dxc -enable-16bit-types`, we fail the validator.

Given `x.hlsl`:
```hlsl
RWBuffer<half> Out : register(u0);
[numthreads(1,1,1)] void main() {
  Out[0] = 0;
}
```

We see:
```
$ clang-dxc -enable-16bit-types -T cs_6_4 -Fo x.o x.hlsl
error: Container part 'Feature Info' does not match expected for module.
Validation failed.

clang-dxc: error: dxv command failed with exit code 1 (use -v to see invocation)
```

This looks like a problem with `NativeLowPrecision` vs `UseNativeLowPrecision` in `DXContainerConstants.def`
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to