nouveau: Init global gpuobj list early, unbreaks sgdma code.

main
Ben Skeggs 2007-08-07 01:51:46 +10:00
parent ac24f328ec
commit 66f5232d93
2 changed files with 2 additions and 2 deletions

View File

@ -270,8 +270,6 @@ nouveau_gpuobj_init(struct drm_device *dev)
struct drm_nouveau_private *dev_priv = dev->dev_private;
int ret;
INIT_LIST_HEAD(&dev_priv->gpuobj_list);
if (dev_priv->card_type < NV_50) {
if ((ret = nouveau_gpuobj_new_fake(dev, dev_priv->ramht_offset,
dev_priv->ramht_size,

View File

@ -299,6 +299,8 @@ nouveau_card_init(struct drm_device *dev)
ret = drm_irq_install(dev);
if (ret) return ret;
INIT_LIST_HEAD(&dev_priv->gpuobj_list);
/* Initialise instance memory, must happen before mem_init so we
* know exactly how much VRAM we're able to use for "normal"
* purposes.