Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 228601
b: refs/heads/master
c: 5f6fdca
h: refs/heads/master
i:
  228599: daced3f
v: v3
  • Loading branch information
Ben Skeggs committed Dec 8, 2010
1 parent ff48d43 commit 3903eb1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bfd83aca5a1c4cc07fb18d96ed8660f2c338a8f3
refs/heads/master: 5f6fdca570b13a8a2c9cab9ab6edfc17487049cf
6 changes: 5 additions & 1 deletion trunk/drivers/gpu/drm/nouveau/nouveau_mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -713,10 +713,14 @@ nouveau_vram_manager_new(struct ttm_mem_type_manager *man,
struct drm_device *dev = dev_priv->dev;
struct nouveau_bo *nvbo = nouveau_bo(bo);
struct nouveau_vram *vram;
u32 size_nc = 0;
int ret;

if (nvbo->tile_flags & NOUVEAU_GEM_TILE_NONCONTIG)
size_nc = 1 << nvbo->vma.node->type;

ret = nv50_vram_new(dev, mem->num_pages << PAGE_SHIFT,
mem->page_alignment << PAGE_SHIFT, 0,
mem->page_alignment << PAGE_SHIFT, size_nc,
(nvbo->tile_flags >> 8) & 0x7f, &vram);
if (ret)
return ret;
Expand Down

0 comments on commit 3903eb1

Please sign in to comment.