diff options
author | Dave Airlie <airlied@linux.ie> | 2007-04-03 19:04:48 +1000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2007-04-03 19:04:48 +1000 |
commit | e835820e2359952bd42a66137c6b7ab243a5a541 (patch) | |
tree | 2787987d3900b17b642dac7c81bf7427d1f19de8 /linux-core/radeon_buffer.c | |
parent | bdc5a8b62ef2f59e05f69da2150212c0243f6efb (diff) |
add initial PCIE GART framework for TTM
Diffstat (limited to 'linux-core/radeon_buffer.c')
-rw-r--r-- | linux-core/radeon_buffer.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/linux-core/radeon_buffer.c b/linux-core/radeon_buffer.c index b525ddfa..d5a1456a 100644 --- a/linux-core/radeon_buffer.c +++ b/linux-core/radeon_buffer.c @@ -36,7 +36,12 @@ drm_ttm_backend_t *radeon_create_ttm_backend_entry(drm_device_t * dev) { - return drm_agp_init_ttm(dev, NULL); + drm_radeon_private_t *dev_priv = dev->dev_private; + + if(dev_priv->flags & RADEON_IS_AGP) + return drm_agp_init_ttm(dev, NULL); + else + return ati_pcigart_init_ttm(dev, NULL); } int radeon_fence_types(drm_buffer_object_t *bo, uint32_t * class, uint32_t * type) |