return -1;
}
+static void
+iris_shader_debug_log(void *data, const char *fmt, ...)
+{
+ // XXX: is data ice?
+ struct iris_context *ice = data;
+ struct pipe_debug_callback *dbg = &ice->dbg;
+ unsigned msg_id = 0;
+ va_list args;
+
+ if (!dbg->debug_message)
+ return;
+
+ va_start(args, fmt);
+ dbg->debug_message(ice, &msg_id, PIPE_DEBUG_TYPE_SHADER_INFO, fmt, args);
+ va_end(args);
+}
+
struct pipe_screen *
iris_screen_create(int fd)
{
isl_device_init(&screen->isl_dev, &screen->devinfo, hw_has_swizzling);
screen->compiler = brw_compiler_create(screen, &screen->devinfo);
+ screen->compiler->shader_debug_log = iris_shader_debug_log;
struct pipe_screen *pscreen = &screen->base;