mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/d3d-asm: Rename vkd3d_shader_trace() to vsir_program_trace().
This commit is contained in:
parent
3428ed7a64
commit
1256b4f862
Notes:
Henri Verbeet
2024-10-08 22:12:06 +02:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1160
@ -2499,7 +2499,7 @@ enum vkd3d_result d3d_asm_compile(const struct vsir_program *program,
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
void vkd3d_shader_trace(const struct vsir_program *program)
|
void vsir_program_trace(const struct vsir_program *program)
|
||||||
{
|
{
|
||||||
const unsigned int flags = VSIR_ASM_FLAG_DUMP_TYPES | VSIR_ASM_FLAG_DUMP_ALL_INDICES;
|
const unsigned int flags = VSIR_ASM_FLAG_DUMP_TYPES | VSIR_ASM_FLAG_DUMP_ALL_INDICES;
|
||||||
struct vkd3d_shader_code code;
|
struct vkd3d_shader_code code;
|
||||||
|
@ -1390,7 +1390,7 @@ int d3dbc_parse(const struct vkd3d_shader_compile_info *compile_info, uint64_t c
|
|||||||
WARN("Failed to validate shader after parsing, ret %d.\n", ret);
|
WARN("Failed to validate shader after parsing, ret %d.\n", ret);
|
||||||
|
|
||||||
if (TRACE_ON())
|
if (TRACE_ON())
|
||||||
vkd3d_shader_trace(program);
|
vsir_program_trace(program);
|
||||||
|
|
||||||
vsir_program_cleanup(program);
|
vsir_program_cleanup(program);
|
||||||
return ret;
|
return ret;
|
||||||
|
@ -10594,7 +10594,7 @@ int dxil_parse(const struct vkd3d_shader_compile_info *compile_info, uint64_t co
|
|||||||
WARN("Failed to validate shader after parsing, ret %d.\n", ret);
|
WARN("Failed to validate shader after parsing, ret %d.\n", ret);
|
||||||
|
|
||||||
if (TRACE_ON())
|
if (TRACE_ON())
|
||||||
vkd3d_shader_trace(program);
|
vsir_program_trace(program);
|
||||||
|
|
||||||
sm6_parser_cleanup(&sm6);
|
sm6_parser_cleanup(&sm6);
|
||||||
vsir_program_cleanup(program);
|
vsir_program_cleanup(program);
|
||||||
|
@ -7149,7 +7149,7 @@ enum vkd3d_result vsir_program_transform(struct vsir_program *program, uint64_t
|
|||||||
vsir_transform(&ctx, vsir_program_insert_clip_planes);
|
vsir_transform(&ctx, vsir_program_insert_clip_planes);
|
||||||
|
|
||||||
if (TRACE_ON())
|
if (TRACE_ON())
|
||||||
vkd3d_shader_trace(program);
|
vsir_program_trace(program);
|
||||||
|
|
||||||
return ctx.result;
|
return ctx.result;
|
||||||
}
|
}
|
||||||
|
@ -2962,7 +2962,7 @@ int tpf_parse(const struct vkd3d_shader_compile_info *compile_info, uint64_t con
|
|||||||
WARN("Failed to validate shader after parsing, ret %d.\n", ret);
|
WARN("Failed to validate shader after parsing, ret %d.\n", ret);
|
||||||
|
|
||||||
if (TRACE_ON())
|
if (TRACE_ON())
|
||||||
vkd3d_shader_trace(program);
|
vsir_program_trace(program);
|
||||||
|
|
||||||
vsir_program_cleanup(program);
|
vsir_program_cleanup(program);
|
||||||
return ret;
|
return ret;
|
||||||
|
@ -1489,7 +1489,7 @@ static int vsir_program_scan(struct vsir_program *program, const struct vkd3d_sh
|
|||||||
descriptor_info1, combined_sampler_info, message_context);
|
descriptor_info1, combined_sampler_info, message_context);
|
||||||
|
|
||||||
if (TRACE_ON())
|
if (TRACE_ON())
|
||||||
vkd3d_shader_trace(program);
|
vsir_program_trace(program);
|
||||||
|
|
||||||
for (i = 0; i < program->instructions.count; ++i)
|
for (i = 0; i < program->instructions.count; ++i)
|
||||||
{
|
{
|
||||||
|
@ -1475,7 +1475,7 @@ struct vkd3d_shader_scan_descriptor_info1
|
|||||||
unsigned int descriptor_count;
|
unsigned int descriptor_count;
|
||||||
};
|
};
|
||||||
|
|
||||||
void vkd3d_shader_trace(const struct vsir_program *program);
|
void vsir_program_trace(const struct vsir_program *program);
|
||||||
|
|
||||||
const char *shader_get_type_prefix(enum vkd3d_shader_type type);
|
const char *shader_get_type_prefix(enum vkd3d_shader_type type);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user