diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2018-07-06 11:14:41 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2018-07-06 14:05:23 +0100 |
commit | 481827b441674b7f1d030c223decdb56266ff398 (patch) | |
tree | b3258982e42570a616a05f58b73c36c57f858399 /drivers/gpu/drm/i915/intel_device_info.h | |
parent | b79ebe74e1c4219e91940b637d40939b0c80c0f2 (diff) | |
download | linux-481827b441674b7f1d030c223decdb56266ff398.tar.gz linux-481827b441674b7f1d030c223decdb56266ff398.tar.bz2 linux-481827b441674b7f1d030c223decdb56266ff398.zip |
drm/i915: Record logical context support in driver caps
Avoid looking at the magical engines[RCS] to decide if the HW and driver
supports logical contexts, and instead record that knowledge during
initialisation.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180706101442.21279-1-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/intel_device_info.h')
-rw-r--r-- | drivers/gpu/drm/i915/intel_device_info.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_device_info.h b/drivers/gpu/drm/i915/intel_device_info.h index 933e31669557..633f9fbf72ea 100644 --- a/drivers/gpu/drm/i915/intel_device_info.h +++ b/drivers/gpu/drm/i915/intel_device_info.h @@ -186,6 +186,7 @@ struct intel_device_info { struct intel_driver_caps { unsigned int scheduler; + bool has_logical_contexts:1; }; static inline unsigned int sseu_subslice_total(const struct sseu_dev_info *sseu) |