diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-07-04 07:06:28 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-07-05 17:56:18 -0400 |
commit | 190d6cd5cd3606dd13a3ca5bf0c23dc520659c15 (patch) | |
tree | 7a70d5382d09114d95b1eaf085334d8015814162 /drivers/gpu/drm/i915/i915_drv.h | |
parent | d94ab068277bda17bfeb0e976049035153299a1a (diff) |
drm/i915: less magic for stolen preallocated objects w/o gtt offset
A magic -1 is a obscure, especially since it's actually passed as an
unsigned, so depends upon the magic sign extension rules in C. This has
been added in
commit 3727d55e4d85836aa6cb759a965daaef88074150
Author: Jesse Barnes <jbarnes@virtuousgeek.org>
Date: Wed May 8 10:45:14 2013 -0700
drm/i915: allow stolen, pre-allocated objects to avoid GTT allocation v2
Use a proper #define instead. Spotted while reviewing Ben's
drm_mm_create_block changes.
v2: Cast the constant to u32 since otherwise we again have a type
mismatch. Suggested by Chris Wilson.
Cc: Ben Widawsky <ben@bwidawsk.net>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index a7c2cfb3ee97..0a91554e0aa1 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h | |||
@@ -1202,6 +1202,7 @@ enum hdmi_force_audio { | |||
1202 | }; | 1202 | }; |
1203 | 1203 | ||
1204 | #define I915_GTT_RESERVED ((struct drm_mm_node *)0x1) | 1204 | #define I915_GTT_RESERVED ((struct drm_mm_node *)0x1) |
1205 | #define I915_GTT_OFFSET_NONE ((u32)-1) | ||
1205 | 1206 | ||
1206 | struct drm_i915_gem_object_ops { | 1207 | struct drm_i915_gem_object_ops { |
1207 | /* Interface between the GEM object and its backing storage. | 1208 | /* Interface between the GEM object and its backing storage. |