drm/i915/guc: Don't repeat CTB layout calculations
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Thu, 3 Jun 2021 05:16:20 +0000 (22:16 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 3 Jun 2021 21:36:08 +0000 (23:36 +0200)
commit480c6fe1209a07f5c816b00b4b70f8f9437df708
tree7729f0534f9a68b4010cf61d61fe48ad2e5e81de
parent99b2f5f51c6bcf311df2ee992942b6b1b463225d
drm/i915/guc: Don't repeat CTB layout calculations

We can retrieve offsets to cmds buffers and descriptor from
actual pointers that we already keep locally.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20210603051630.2635-11-matthew.brost@intel.com
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c