/* Build a trivial blend shader */
nir_store_var(b, c_out, nir_blending_f(blend, b, s_src, s_dst, s_con), 0xFF);
- if (pan_debug & PAN_DBG_SHADERS)
- nir_print_shader(shader, stdout);
-
/* Compile the built shader */
midgard_program program;
midgard_compile_shader_nir(shader, &program, true);
-
/* Upload the shader */
int size = program.compiled.size;
static const struct debug_named_value debug_options[] = {
{"msgs", PAN_DBG_MSGS, "Print debug messages"},
- {"shaders", PAN_DBG_SHADERS, "Dump shaders in NIR"},
DEBUG_NAMED_VALUE_END
};