Mention to the debug log if the kernel scheduler is enabled; and in
particular if it has preemption enabled.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Ben Widawsky <ben@bwidawsk.net>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
intel_screen_init_surface_formats(screen);
+ if (INTEL_DEBUG & (DEBUG_BATCH | DEBUG_SUBMIT)) {
+ unsigned int caps = intel_get_integer(screen, I915_PARAM_HAS_SCHEDULER);
+ if (caps) {
+ fprintf(stderr, "Kernel scheduler detected: %08x\n", caps);
+ if (caps & I915_SCHEDULER_CAP_PRIORITY)
+ fprintf(stderr, " - User priority sorting enabled\n");
+ if (caps & I915_SCHEDULER_CAP_PREEMPTION)
+ fprintf(stderr, " - Preemption enabled\n");
+ }
+ }
+
return (const __DRIconfig**) intel_screen_make_configs(dri_screen);
}