]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe: Consolidate LRC offset calculations
authorTvrtko Ursulin <tvrtko.ursulin@igalia.com>
Mon, 30 Jun 2025 12:46:47 +0000 (13:46 +0100)
committerLucas De Marchi <lucas.demarchi@intel.com>
Tue, 1 Jul 2025 15:35:23 +0000 (08:35 -0700)
commita34ba68d0938687e56f442102b5f9e149af7a415
tree2b74625d8c7c4bc38e7f1dbc8ee25d8ac633db66
parent5ac5e191973920488cc9050dd12574d33b97eba4
drm/xe: Consolidate LRC offset calculations

Attempt to consolidate the LRC offsets calculations by aligning the
recently added wa_bb_offset with the naming scheme in the file and
also change the size stored in struct xe_lrc to not include the ring
buffer.

The former makes it somewhat visually easier to follow the layout of the
various logical blocks stored in the LRC bo, while the latter reduces the
number of sprinkled around calculations.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Cc: Matt Roper <matthew.d.roper@intel.com>
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://lore.kernel.org/r/20250630124711.8209-2-tvrtko.ursulin@igalia.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_lrc.c
drivers/gpu/drm/xe/xe_lrc_types.h