summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
authorBen Skeggs <skeggsb@gmail.com>2007-03-23 13:45:29 +1100
committerBen Skeggs <skeggsb@gmail.com>2007-03-23 13:45:29 +1100
commit2bb9de96d5b58961ec2ff2e49e1e7260c8befa48 (patch)
treed1282f0a76311c8ef66b2fd72252102a1c7c306e /shared-core
parente22225416a12c2beab7a5bcb866d214ee212cbc4 (diff)
nouveau: remove unused cruft
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/nouveau_drv.h7
-rw-r--r--shared-core/nouveau_fifo.c15
2 files changed, 0 insertions, 22 deletions
diff --git a/shared-core/nouveau_drv.h b/shared-core/nouveau_drv.h
index 92aea31c..265479f8 100644
--- a/shared-core/nouveau_drv.h
+++ b/shared-core/nouveau_drv.h
@@ -110,13 +110,6 @@ typedef struct drm_nouveau_private {
drm_local_map_t *fb;
drm_local_map_t *ramin; /* NV40 onwards */
- //TODO: Remove me, I'm bogus :)
- int cur_fifo;
-
- struct nouveau_object *fb_obj;
- int cmdbuf_ch_size;
- struct mem_block* cmdbuf_alloc;
-
int fifo_alloc_count;
struct nouveau_fifo fifos[NV_MAX_FIFO_NUMBER];
diff --git a/shared-core/nouveau_fifo.c b/shared-core/nouveau_fifo.c
index fd5e46ac..707289a1 100644
--- a/shared-core/nouveau_fifo.c
+++ b/shared-core/nouveau_fifo.c
@@ -543,7 +543,6 @@ static int nouveau_fifo_alloc(drm_device_t* dev,drm_nouveau_fifo_alloc_t* init,
init->channel = i;
init->put_base = 0;
- dev_priv->cur_fifo = init->channel;
nouveau_wait_for_idle(dev);
@@ -709,20 +708,6 @@ void nouveau_fifo_cleanup(drm_device_t* dev, DRMFILE filp)
for(i=0;i<nouveau_fifo_number(dev);i++)
if (dev_priv->fifos[i].used && dev_priv->fifos[i].filp==filp)
nouveau_fifo_free(dev,i);
-
- /* check we still point at an active channel */
- if (dev_priv->fifos[dev_priv->cur_fifo].used == 0) {
- DRM_DEBUG("%s: cur_fifo is no longer owned.\n", __func__);
- for (i=0;i<nouveau_fifo_number(dev);i++)
- if (dev_priv->fifos[i].used) break;
- if (i==nouveau_fifo_number(dev))
- i=0;
- DRM_DEBUG("%s: new cur_fifo is %d\n", __func__, i);
- dev_priv->cur_fifo = i;
- }
-
-/* if (dev_priv->cmdbuf_alloc)
- nouveau_fifo_init(dev);*/
}
int