From c0d0c71a7cfdf157d702d521fafa9005f5f79417 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Mon, 17 Feb 2025 15:14:10 +0900 Subject: [PATCH] [qfcc] Support expr dot output for spirv --- tools/qfcc/source/target_spirv.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/qfcc/source/target_spirv.c b/tools/qfcc/source/target_spirv.c index 72419d418..094224826 100644 --- a/tools/qfcc/source/target_spirv.c +++ b/tools/qfcc/source/target_spirv.c @@ -38,6 +38,7 @@ #include "tools/qfcc/include/def.h" #include "tools/qfcc/include/defspace.h" #include "tools/qfcc/include/diagnostic.h" +#include "tools/qfcc/include/dot.h" #include "tools/qfcc/include/function.h" #include "tools/qfcc/include/glsl-lang.h" #include "tools/qfcc/include/image.h" @@ -883,6 +884,12 @@ spirv_function_ref (function_t *func, spirvctx_t *ctx) static unsigned spirv_function (function_t *func, spirvctx_t *ctx) { + if (options.block_dot.expr && func->exprs) { + auto cf = current_func; + current_func = func; + dump_dot ("expr", func->exprs, dump_dot_expr); + current_func = cf; + } unsigned ft_id = spirv_TypeFunction (func->sym, ctx); defspace_reset (ctx->code_space);