Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 185499
b: refs/heads/master
c: 2ccb04e
h: refs/heads/master
i:
  185497: affdf1b
  185495: f936d96
v: v3
  • Loading branch information
Ben Skeggs committed Feb 25, 2010
1 parent aae6fe9 commit 667b4f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 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: 9a391ad8a2cdd7e5be9b6aabb56f4a46683ba377
refs/heads/master: 2ccb04ecc704618d9cd2e26aad067dbb2a057366
10 changes: 4 additions & 6 deletions trunk/drivers/gpu/drm/nouveau/nouveau_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -614,8 +614,6 @@ nouveau_gem_ioctl_pushbuf(struct drm_device *dev, void *data,
return ret;
}

#define PUSHBUF_CAL (dev_priv->card_type >= NV_20)

int
nouveau_gem_ioctl_pushbuf_call(struct drm_device *dev, void *data,
struct drm_file *file_priv)
Expand Down Expand Up @@ -703,7 +701,7 @@ nouveau_gem_ioctl_pushbuf_call(struct drm_device *dev, void *data,
/* If presumed return address doesn't match, we need to map the
* push buffer and fix it..
*/
if (!PUSHBUF_CAL) {
if (dev_priv->card_type < NV_20) {
uint32_t retaddy;

if (chan->dma.free < 4 + NOUVEAU_DMA_SKIPS) {
Expand Down Expand Up @@ -741,7 +739,7 @@ nouveau_gem_ioctl_pushbuf_call(struct drm_device *dev, void *data,
req->offset / 4,
pbvirt, is_iomem);

if (!PUSHBUF_CAL) {
if (dev_priv->card_type < NV_20) {
nouveau_bo_wr32(pbbo,
req->offset / 4 + req->nr_dwords - 2,
req->suffix0);
Expand All @@ -763,7 +761,7 @@ nouveau_gem_ioctl_pushbuf_call(struct drm_device *dev, void *data,

nv50_dma_push(chan, pbbo, req->offset, req->nr_dwords);
} else
if (PUSHBUF_CAL) {
if (dev_priv->card_type >= NV_20) {
ret = RING_SPACE(chan, 2);
if (ret) {
NV_ERROR(dev, "cal_space: %d\n", ret);
Expand Down Expand Up @@ -805,7 +803,7 @@ nouveau_gem_ioctl_pushbuf_call(struct drm_device *dev, void *data,
req->suffix0 = 0x00000000;
req->suffix1 = 0x00000000;
} else
if (PUSHBUF_CAL) {
if (dev_priv->card_type >= NV_20) {
req->suffix0 = 0x00020000;
req->suffix1 = 0x00000000;
} else {
Expand Down

0 comments on commit 667b4f2

Please sign in to comment.