d3d12: fix return-code without dxcompiler.dll
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Tue, 5 Apr 2022 06:40:42 +0000 (08:40 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 6 Apr 2022 14:56:39 +0000 (14:56 +0000)
commit837f781c9a4f909ac1ee0b3b8331af87301b5fc3
tree8ea25901c523065772a41bb2c21ff596252f1a51
parent0e14b674f1ca166a1e574f6471e6f801856c73b0
d3d12: fix return-code without dxcompiler.dll

When we don't have a good dxcompiler.dll that we can load IDxcLibrary
from to help with diagnostics, we currently return true for validation
even if the validation actually failed.

Let's fix that, and also add a debug-message explaining what went wrong
for those who are debugging and wondering what's up.

Fixes: 2ea15cd661c ("d3d12: introduce d3d12 gallium driver")
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15744>
src/gallium/drivers/d3d12/d3d12_compiler.cpp