Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 260131
b: refs/heads/master
c: 9f9f51f
h: refs/heads/master
i:
  260129: 85aac9a
  260127: 6031063
v: v3
  • Loading branch information
Ben Skeggs committed Jun 23, 2011
1 parent b0327d9 commit 32a296f
Show file tree
Hide file tree
Showing 2 changed files with 7 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: d02836b4f5c24d2a38b3bdc10f05251e1f6e111d
refs/heads/master: 9f9f51fcb92ba3c1f395e0908407c8c1f5305a31
7 changes: 6 additions & 1 deletion trunk/drivers/gpu/drm/nouveau/nouveau_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,13 @@ nv50_dma_push(struct nouveau_channel *chan, struct nouveau_bo *bo,
int delta, int length)
{
struct nouveau_bo *pb = chan->pushbuf_bo;
uint64_t offset = bo->vma.offset + delta;
struct nouveau_vma *vma;
int ip = (chan->dma.ib_put * 2) + chan->dma.ib_base;
u64 offset;

vma = nouveau_bo_vma_find(bo, chan->vm);
BUG_ON(!vma);
offset = vma->offset + delta;

BUG_ON(chan->dma.ib_free < 1);
nouveau_bo_wr32(pb, ip++, lower_32_bits(offset));
Expand Down

0 comments on commit 32a296f

Please sign in to comment.