D3D12: Enable IEEE strictness
Bug: tint:976 Change-Id: I4e2d625adad89402774584ccff72b5e33dc69957 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/58724 Commit-Queue: Corentin Wallez <cwallez@chromium.org> Auto-Submit: Ben Clayton <bclayton@google.com> Reviewed-by: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
parent
cfd5ebb2f2
commit
67035040f6
|
@ -343,6 +343,10 @@ namespace dawn_native { namespace d3d12 {
|
||||||
// SPRIV-cross does matrix multiplication expecting row major matrices
|
// SPRIV-cross does matrix multiplication expecting row major matrices
|
||||||
compileFlags |= D3DCOMPILE_PACK_MATRIX_ROW_MAJOR;
|
compileFlags |= D3DCOMPILE_PACK_MATRIX_ROW_MAJOR;
|
||||||
|
|
||||||
|
// FXC can miscompile code that depends on special float values (NaN, INF, etc) when IEEE
|
||||||
|
// strictness is not enabled. See crbug.com/tint/976.
|
||||||
|
compileFlags |= D3DCOMPILE_IEEE_STRICTNESS;
|
||||||
|
|
||||||
D3D12_GRAPHICS_PIPELINE_STATE_DESC descriptorD3D12 = {};
|
D3D12_GRAPHICS_PIPELINE_STATE_DESC descriptorD3D12 = {};
|
||||||
|
|
||||||
PerStage<const char*> entryPoints;
|
PerStage<const char*> entryPoints;
|
||||||
|
|
Loading…
Reference in New Issue