drm/i915: Move MOCS setup to intel_mocs.c
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Tue, 30 Jul 2019 18:04:07 +0000 (11:04 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Wed, 31 Jul 2019 14:40:35 +0000 (07:40 -0700)
commit1b6c3c6d4607784c83160cf7fb9c94fae5c117a1
tree719806d97ec2a78bf3dba82494d88f7e6d30c113
parenta7a7a0e6ebde34e05793d390cc9303e06e8f8dd1
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
drivers/gpu/drm/i915/gt/intel_mocs.c
drivers/gpu/drm/i915/gt/intel_mocs.h
drivers/gpu/drm/i915/i915_gem.c