diff options
author | Ben Skeggs <skeggsb@gmail.com> | 2007-03-07 21:17:45 +1100 |
---|---|---|
committer | Ben Skeggs <skeggsb@gmail.com> | 2007-03-07 21:17:45 +1100 |
commit | 1b3a6d47751018c75e4333ee3ab8ba21dbd55bdd (patch) | |
tree | e858b106d38800f08732b333ad89ec8f7a8d8930 | |
parent | 5bd0e52dbacb9f492433cbfa1e66c73faf67dcd5 (diff) |
nouveau: remove a hack that's not needed since the last interface change.
-rw-r--r-- | shared-core/nouveau_reg.h | 2 | ||||
-rw-r--r-- | shared-core/nv40_graph.c | 9 |
2 files changed, 0 insertions, 11 deletions
diff --git a/shared-core/nouveau_reg.h b/shared-core/nouveau_reg.h index 95de558b..e7ab3804 100644 --- a/shared-core/nouveau_reg.h +++ b/shared-core/nouveau_reg.h @@ -96,8 +96,6 @@ #define NV10_PGRAPH_CTX_CACHE4 0x004001C0 #define NV04_PGRAPH_CTX_CACHE4 0x004001E0 #define NV10_PGRAPH_CTX_CACHE5 0x004001E0 -#define NV40_PGRAPH_UNK220 0x00400220 -# define NV40_PGRAPH_UNK220_FB_INSTANCE 0xFFFFFFFF #define NV03_PGRAPH_ABS_X_RAM 0x00400400 #define NV03_PGRAPH_ABS_Y_RAM 0x00400480 #define NV03_PGRAPH_X_MISC 0x00400500 diff --git a/shared-core/nv40_graph.c b/shared-core/nv40_graph.c index 082849d9..5e0d8d77 100644 --- a/shared-core/nv40_graph.c +++ b/shared-core/nv40_graph.c @@ -924,15 +924,6 @@ nv40_graph_init(drm_device_t *dev) /* No context present currently */ NV_WRITE(0x40032C, 0x00000000); - /* No idea what this is for.. */ - dev_priv->fb_obj = nouveau_dma_object_create(dev, - NV_CLASS_DMA_IN_MEMORY, - 0, nouveau_mem_fb_amount(dev), - NV_DMA_ACCESS_RW, NV_DMA_TARGET_VIDMEM); - pg0220_inst = nouveau_chip_instance_get(dev, - dev_priv->fb_obj->instance); - NV_WRITE(NV40_PGRAPH_UNK220, pg0220_inst); - return 0; } |