mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-20 12:50:11 +01:00
nouveau: Init global gpuobj list early, unbreaks sgdma code.
This commit is contained in:
parent
ac24f328ec
commit
66f5232d93
2 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue