mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 06:10:13 +01:00
compiler/spirv: The spirv shader is binary, should write in binary mode
Fixes: 53265c8798 ("spirv: Add a mechanism for dumping failing shaders")
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26775>
This commit is contained in:
parent
1593caf610
commit
fd11818828
1 changed files with 1 additions and 1 deletions
|
|
@ -156,7 +156,7 @@ vtn_dump_shader(struct vtn_builder *b, const char *path, const char *prefix)
|
|||
if (len < 0 || len >= sizeof(filename))
|
||||
return;
|
||||
|
||||
FILE *f = fopen(filename, "w");
|
||||
FILE *f = fopen(filename, "wb");
|
||||
if (f == NULL)
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue