Skip to content

Commit a79d488

Browse files
author
Andi Shyti
committed
i915/drm/gt: Move the gt defines in the gt directory
Create a new intel_gt_defines.h inside the gt/ directory as a placeholder for all the generic GT based defines. As of now place only I915_MAX_GT. Co-developed-by: Chris Wilson <[email protected]> Signed-off-by: Chris Wilson <[email protected]> Signed-off-by: Andi Shyti <[email protected]> Reviewed-by: Mauro Carvalho Chehab <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 568a2e6 commit a79d488

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/* SPDX-License-Identifier: MIT */
2+
/*
3+
* Copyright © 2019 Intel Corporation
4+
*/
5+
6+
#ifndef __INTEL_GT_DEFINES__
7+
#define __INTEL_GT_DEFINES__
8+
9+
#define I915_MAX_GT 2
10+
11+
#endif

drivers/gpu/drm/i915/i915_drv.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
#include "gem/i915_gem_stolen.h"
4545

4646
#include "gt/intel_engine.h"
47+
#include "gt/intel_gt_defines.h"
4748
#include "gt/intel_gt_types.h"
4849
#include "gt/intel_region_lmem.h"
4950
#include "gt/intel_workarounds.h"
@@ -313,7 +314,6 @@ struct drm_i915_private {
313314
/*
314315
* i915->gt[0] == &i915->gt0
315316
*/
316-
#define I915_MAX_GT 2
317317
struct intel_gt *gt[I915_MAX_GT];
318318

319319
struct kobject *sysfs_gt;

0 commit comments

Comments
 (0)