Skip to content

microsoft/spirv_to_dxil: Fix spirv2dxil I/O to use binary mode

Michael Tang requested to merge tangm/mesa:binary-io into master

The spirv2dxil binary currently incorrectly reads its input and writes its output in text mode. This causes it to both not read SPIR-V input past the first NUL character and erroneously add carriage returns (\r) before every 0x0A byte (i.e. line feed \n), resulting in misread SPIR-V and invalid DXIL output.

Edited by Michael Tang

Merge request reports