It's not possible for the condition checking if we're running on platform without geometry pipeline to ever be true, since gt->fuse_topo.g_dss_mask is an array. It also breaks the build: ../drivers/gpu/drm/xe/xe_rtp.c:183:50: error: address of array 'gt->fuse_topo.g_dss_mask' will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion] Signed-off-by: Michał Winiarski <michal.winiarski@intel.com> Reviewed-by: Matt Roper <matthew.d.roper@intel.com> Link: https://lore.kernel.org/r/20230523135020.345596-2-michal@hardline.pl Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
26 lines
542 B
C
26 lines
542 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2022 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _XE_GT_TOPOLOGY_H_
|
|
#define _XE_GT_TOPOLOGY_H_
|
|
|
|
#include "xe_gt_types.h"
|
|
|
|
struct drm_printer;
|
|
|
|
void xe_gt_topology_init(struct xe_gt *gt);
|
|
|
|
void xe_gt_topology_dump(struct xe_gt *gt, struct drm_printer *p);
|
|
|
|
unsigned int
|
|
xe_dss_mask_group_ffs(const xe_dss_mask_t mask, int groupsize, int groupnum);
|
|
|
|
bool xe_dss_mask_empty(const xe_dss_mask_t mask);
|
|
|
|
bool
|
|
xe_gt_topology_has_dss_in_quadrant(struct xe_gt *gt, int quad);
|
|
|
|
#endif /* _XE_GT_TOPOLOGY_H_ */
|