summaryrefslogtreecommitdiff
path: root/drivers/gpu
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2010-02-12 02:05:42 +0300
committerBen Skeggs <bskeggs@redhat.com>2010-02-25 08:08:31 +0300
commit2ccb04ecc704618d9cd2e26aad067dbb2a057366 (patch)
tree6834723b3811b3b1d19476188e51aeff27f566ff /drivers/gpu
parent9a391ad8a2cdd7e5be9b6aabb56f4a46683ba377 (diff)
downloadlinux-2ccb04ecc704618d9cd2e26aad067dbb2a057366.tar.xz
drm/nouveau: remove PUSHBUF_CAL macro
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_gem.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_gem.c b/drivers/gpu/drm/nouveau/nouveau_gem.c
index 986b67099f6c..df72cd847025 100644
--- a/drivers/gpu/drm/nouveau/nouveau_gem.c
+++ b/drivers/gpu/drm/nouveau/nouveau_gem.c
@@ -614,8 +614,6 @@ out:
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)
@@ -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) {
@@ -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);
@@ -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);
@@ -805,7 +803,7 @@ out_next:
req->suffix0 = 0x00000000;
req->suffix1 = 0x00000000;
} else
- if (PUSHBUF_CAL) {
+ if (dev_priv->card_type >= NV_20) {
req->suffix0 = 0x00020000;
req->suffix1 = 0x00000000;
} else {