From dcc5d7f67220bc93aa7a351658649877c7e4cf69 Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Thu, 9 Sep 2010 12:09:44 +0100 Subject: gallivm: Add a new debug flag to warn about performance issues. --- src/gallium/auxiliary/gallivm/lp_bld_format_soa.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/gallium/auxiliary/gallivm/lp_bld_format_soa.c') diff --git a/src/gallium/auxiliary/gallivm/lp_bld_format_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_format_soa.c index c724a4453e..ce7e54afc7 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_format_soa.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_format_soa.c @@ -37,6 +37,7 @@ #include "lp_bld_conv.h" #include "lp_bld_swizzle.h" #include "lp_bld_gather.h" +#include "lp_bld_debug.h" #include "lp_bld_format.h" @@ -387,6 +388,11 @@ lp_build_fetch_rgba_soa(LLVMBuilderRef builder, unsigned k, chan; struct lp_type tmp_type; + if (gallivm_debug & GALLIVM_DEBUG_PERF) { + debug_printf("%s: scalar unpacking of %s\n", + __FUNCTION__, format_desc->short_name); + } + tmp_type = type; tmp_type.length = 4; -- cgit v1.2.3