diff options
author | Chris Wilson <[email protected]> | 2017-09-27 16:14:33 +0100 |
---|---|---|
committer | Chris Wilson <[email protected]> | 2017-10-20 11:28:17 +0100 |
commit | 21023954f898bf871696e6e0eae2848e019fb2f9 (patch) | |
tree | 1c94efcc7b11139ee35ef019c8b48e7a42f01838 /src/mesa/drivers/dri | |
parent | 98c2b7f9fa1748acb06321f74ec69361d4c8b57d (diff) |
i965: Record the presence of the kernel scheduler
Mention to the debug log if the kernel scheduler is enabled; and in
particular if it has preemption enabled.
Signed-off-by: Chris Wilson <[email protected]>
Cc: Joonas Lahtinen <[email protected]>
Cc: Ben Widawsky <[email protected]>
Reviewed-by: Joonas Lahtinen <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_screen.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/drivers/dri/i965/intel_screen.c index ea04a72e860..28e83cf9b21 100644 --- a/src/mesa/drivers/dri/i965/intel_screen.c +++ b/src/mesa/drivers/dri/i965/intel_screen.c @@ -2518,6 +2518,17 @@ __DRIconfig **intelInitScreen2(__DRIscreen *dri_screen) 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); } |