diff options
author | Jerome Glisse <jglisse@redhat.com> | 2009-12-07 09:52:58 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-12-10 00:09:02 -0500 |
commit | 312ea8da049a1830aa50c6e00002e50e30df476e (patch) | |
tree | 4fa21909c2fd227cd6491a2729aa5dd17ac1295a /drivers/gpu/drm/radeon/radeon.h | |
parent | ca262a9998d46196750bb19a9dc4bd465b170ff7 (diff) |
drm/radeon/kms: Convert radeon to new TTM validation API (V2)
This convert radeon to use new TTM validation API, it doesn't
really take advantage of it beside in the eviction case.
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon.h')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h index a15cf9ceb9a7..5941e7d2d7ff 100644 --- a/drivers/gpu/drm/radeon/radeon.h +++ b/drivers/gpu/drm/radeon/radeon.h | |||
@@ -208,6 +208,8 @@ struct radeon_bo { | |||
208 | /* Protected by gem.mutex */ | 208 | /* Protected by gem.mutex */ |
209 | struct list_head list; | 209 | struct list_head list; |
210 | /* Protected by tbo.reserved */ | 210 | /* Protected by tbo.reserved */ |
211 | u32 placements[3]; | ||
212 | struct ttm_placement placement; | ||
211 | struct ttm_buffer_object tbo; | 213 | struct ttm_buffer_object tbo; |
212 | struct ttm_bo_kmap_obj kmap; | 214 | struct ttm_bo_kmap_obj kmap; |
213 | unsigned pin_count; | 215 | unsigned pin_count; |
@@ -1012,6 +1014,7 @@ extern void radeon_surface_init(struct radeon_device *rdev); | |||
1012 | extern int radeon_cs_parser_init(struct radeon_cs_parser *p, void *data); | 1014 | extern int radeon_cs_parser_init(struct radeon_cs_parser *p, void *data); |
1013 | extern void radeon_legacy_set_clock_gating(struct radeon_device *rdev, int enable); | 1015 | extern void radeon_legacy_set_clock_gating(struct radeon_device *rdev, int enable); |
1014 | extern void radeon_atom_set_clock_gating(struct radeon_device *rdev, int enable); | 1016 | extern void radeon_atom_set_clock_gating(struct radeon_device *rdev, int enable); |
1017 | extern void radeon_ttm_placement_from_domain(struct radeon_bo *rbo, u32 domain); | ||
1015 | 1018 | ||
1016 | /* r100,rv100,rs100,rv200,rs200,r200,rv250,rs300,rv280 */ | 1019 | /* r100,rv100,rs100,rv200,rs200,r200,rv250,rs300,rv280 */ |
1017 | struct r100_mc_save { | 1020 | struct r100_mc_save { |