Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 334408
b: refs/heads/master
c: df1b4b9
h: refs/heads/master
v: v3
  • Loading branch information
Max Filippov authored and Ben Skeggs committed Oct 16, 2012
1 parent 79983a5 commit b54bab7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5db4c6c5dd26f7737c1fa45ea73549b8aef6e395
refs/heads/master: df1b4b91e5dae04782f65f657d771b23ca3bdc99
2 changes: 2 additions & 0 deletions trunk/drivers/gpu/drm/nouveau/nouveau_bo.c
Original file line number Diff line number Diff line change
Expand Up @@ -456,13 +456,15 @@ static struct ttm_tt *
nouveau_ttm_tt_create(struct ttm_bo_device *bdev, unsigned long size,
uint32_t page_flags, struct page *dummy_read)
{
#if __OS_HAS_AGP
struct nouveau_drm *drm = nouveau_bdev(bdev);
struct drm_device *dev = drm->dev;

if (drm->agp.stat == ENABLED) {
return ttm_agp_tt_create(bdev, dev->agp->bridge, size,
page_flags, dummy_read);
}
#endif

return nouveau_sgdma_create_ttm(bdev, size, page_flags, dummy_read);
}
Expand Down

0 comments on commit b54bab7

Please sign in to comment.