diff options
author | Lucas De Marchi <lucas.demarchi@intel.com> | 2023-03-01 01:31:06 -0800 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-12-19 18:29:46 -0500 |
commit | 4c128558fe16b77013a251bcc3af8caa77fb7732 (patch) | |
tree | a53869379a5e73bee675d4a51006a913b09d4f05 /drivers/gpu/drm/xe/xe_rtp.c | |
parent | 1415283befa0e47df1270d10356a074793664757 (diff) | |
download | lwn-4c128558fe16b77013a251bcc3af8caa77fb7732.tar.gz lwn-4c128558fe16b77013a251bcc3af8caa77fb7732.zip |
drm/xe/rtp: Move match function from wa to rtp
Match functions are generally useful for other parts of the code (e.g.
xe_tuning.c). Move and rename the single one available to create a place
where similar match functions can be added.
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-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_rtp.c')
-rw-r--r-- | drivers/gpu/drm/xe/xe_rtp.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/xe/xe_rtp.c b/drivers/gpu/drm/xe/xe_rtp.c index 5b1316b588d8..c04eca290ef0 100644 --- a/drivers/gpu/drm/xe/xe_rtp.c +++ b/drivers/gpu/drm/xe/xe_rtp.c @@ -154,3 +154,9 @@ void xe_rtp_process(const struct xe_rtp_entry *entries, struct xe_reg_sr *sr, } } } + +bool xe_rtp_match_even_instance(const struct xe_gt *gt, + const struct xe_hw_engine *hwe) +{ + return hwe->instance % 2 == 0; +} |