mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader: Strip debug info after generating all code.
Signed-off-by: Józef Kucia <jkucia@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
82e2e4d1a6
commit
99a2daedb1
@ -6364,14 +6364,14 @@ int vkd3d_dxbc_compiler_generate_spirv(struct vkd3d_dxbc_compiler *compiler,
|
||||
{
|
||||
struct vkd3d_spirv_builder *builder = &compiler->spirv_builder;
|
||||
|
||||
if (compiler->options & VKD3D_SHADER_STRIP_DEBUG)
|
||||
vkd3d_spirv_stream_clear(&builder->debug_stream);
|
||||
|
||||
vkd3d_spirv_build_op_function_end(builder);
|
||||
|
||||
if (compiler->output_setup_function_id)
|
||||
vkd3d_dxbc_compiler_emit_output_setup_function(compiler);
|
||||
|
||||
if (compiler->options & VKD3D_SHADER_STRIP_DEBUG)
|
||||
vkd3d_spirv_stream_clear(&builder->debug_stream);
|
||||
|
||||
if (!vkd3d_spirv_compile_module(builder, spirv))
|
||||
return VKD3D_ERROR;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user