vkd3d-shader/hlsl: Dump processed function bodies.

This commit is contained in:
Francisco Casas
2025-07-04 01:55:23 -04:00
committed by Henri Verbeet
parent f420e25fd5
commit 844f33025e
Notes: Henri Verbeet 2025-07-23 17:30:00 +02:00
Approved-by: Francisco Casas (@fcasas)
Approved-by: Elizabeth Figura (@zfigura)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1471
3 changed files with 14 additions and 5 deletions

View File

@@ -5294,7 +5294,7 @@ static void dump_function(struct rb_entry *entry, void *context)
LIST_FOR_EACH_ENTRY(decl, &func->overloads, struct hlsl_ir_function_decl, entry)
{
if (decl->has_body)
hlsl_dump_function(ctx, decl);
hlsl_dump_function(ctx, decl, "function", NULL);
}
}
@@ -13957,7 +13957,12 @@ int hlsl_emit_bytecode(struct hlsl_ctx *ctx, struct hlsl_ir_function_decl *entry
}
if (TRACE_ON())
{
rb_for_each_entry(&ctx->functions, dump_function, ctx);
hlsl_dump_function(ctx, entry_func, "processed entry point", &body);
if (profile->type == VKD3D_SHADER_TYPE_HULL)
hlsl_dump_function(ctx, ctx->patch_constant_func, "processed patch-constant function", &patch_body);
}
if (ctx->result)
return ctx->result;