summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/xe/xe_lrc.h
diff options
context:
space:
mode:
authorMatt Roper <matthew.d.roper@intel.com>2023-10-25 08:17:34 -0700
committerRodrigo Vivi <rodrigo.vivi@intel.com>2023-12-21 11:43:22 -0500
commitb1543a494c52102f9f5ad29d3dc38d29c7fcfcc4 (patch)
tree27978e44ab6b9b9d008b57411701ac65abbe4aca /drivers/gpu/drm/xe/xe_lrc.h
parent0d0dda27cf066d1e7537a815fb3990be04cff6bd (diff)
downloadlwn-b1543a494c52102f9f5ad29d3dc38d29c7fcfcc4.tar.gz
lwn-b1543a494c52102f9f5ad29d3dc38d29c7fcfcc4.zip
drm/xe: Prepare to emit non-register state while recording default LRC
On some platforms we need to emit some non-register state while recording an engine class' default LRC. Add the infrastructure to support this; actual per-platform tables will be added in future patches. v2: - Checkpatch whitespace fix - Add extra assertion to ensure num_dw != 0. (Bala) Reviewed-by: Balasubramani Vivekanandan <balasubramani.vivekanandan@intel.com> Link: https://lore.kernel.org/r/20231025151732.3461842-6-matthew.d.roper@intel.com Signed-off-by: Matt Roper <matthew.d.roper@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_lrc.h')
-rw-r--r--drivers/gpu/drm/xe/xe_lrc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/xe/xe_lrc.h b/drivers/gpu/drm/xe/xe_lrc.h
index a7056eda5e0c..28b1d3f404d4 100644
--- a/drivers/gpu/drm/xe/xe_lrc.h
+++ b/drivers/gpu/drm/xe/xe_lrc.h
@@ -8,6 +8,7 @@
#include "xe_lrc_types.h"
struct drm_printer;
+struct xe_bb;
struct xe_device;
struct xe_exec_queue;
enum xe_engine_class;
@@ -52,4 +53,6 @@ void xe_lrc_dump_default(struct drm_printer *p,
struct xe_gt *gt,
enum xe_engine_class);
+void xe_lrc_emit_hwe_state_instructions(struct xe_exec_queue *q, struct xe_bb *bb);
+
#endif