diff options
author | Tvrtko Ursulin <tvrtko.ursulin@intel.com> | 2019-07-30 20:04:07 +0200 |
---|---|---|
committer | Lucas De Marchi <lucas.demarchi@intel.com> | 2019-07-31 16:40:35 +0200 |
commit | 1b6c3c6d4607784c83160cf7fb9c94fae5c117a1 (patch) | |
tree | 719806d97ec2a78bf3dba82494d88f7e6d30c113 /drivers/gpu/drm/i915/i915_gem.c | |
parent | drm/i915/tgl: Tigerlake only has global MOCS registers (diff) | |
download | linux-1b6c3c6d4607784c83160cf7fb9c94fae5c117a1.tar.xz linux-1b6c3c6d4607784c83160cf7fb9c94fae5c117a1.zip |
drm/i915: Move MOCS setup to intel_mocs.c
Hide the details of MOCS setup from i915_gem by moving both current calls
into one in intel_mocs_init.
Cc: Stuart Summers <stuart.summers@intel.com>
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Stuart Summers <stuart.summers@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190713010940.17711-21-lucas.demarchi@intel.com
Link: https://patchwork.freedesktop.org/patch/msgid/20190730180407.5993-6-lucas.demarchi@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index 295702ab99e1..62eefe860bcd 100644 --- a/drivers/gpu/drm/i915/i915_gem.c +++ b/drivers/gpu/drm/i915/i915_gem.c @@ -1247,8 +1247,7 @@ int i915_gem_init_hw(struct drm_i915_private *i915) goto out; } - intel_mocs_init_global(gt); - intel_mocs_init_l3cc_table(gt); + intel_mocs_init(gt); intel_engines_set_scheduler_caps(i915); |