#include <stdio.h>
#include "pan_blend_shaders.h"
+#include "pan_util.h"
#include "midgard/midgard_compile.h"
#include "compiler/nir/nir_builder.h"
//#include "gallium/auxiliary/nir/nir_lower_blend.h"
/* Build a trivial blend shader */
nir_store_var(b, c_out, nir_blending_f(blend, b, s_src, s_dst, s_con), 0xFF);
- nir_print_shader(shader, stdout);
+ if (pan_debug & PAN_DBG_SHADERS)
+ nir_print_shader(shader, stdout);
/* Compile the built shader */