drm/nouveau: store vram/gart object handles for each channel

This commit is contained in:
Ben Skeggs 2009-02-10 08:43:07 +10:00
parent 417c2c411f
commit 933995b1da
2 changed files with 2 additions and 1 deletions

View file

@ -293,6 +293,8 @@ nouveau_fifo_alloc(struct drm_device *dev, struct nouveau_channel **chan_ret,
chan->id = channel;
chan->file_priv = file_priv;
chan->pushbuf_mem = pushbuf;
chan->vram_handle = vram_handle;
chan->gart_handle = tt_handle;
DRM_INFO("Allocating FIFO number %d\n", channel);

View file

@ -161,7 +161,6 @@ nv50_graph_create_context(struct nouveau_channel *chan)
struct drm_nouveau_private *dev_priv = dev->dev_private;
struct nouveau_gpuobj *ramin = chan->ramin->gpuobj;
struct nouveau_gpuobj *ctx;
struct nouveau_engine *engine = &dev_priv->Engine;
uint32_t *ctxvals = NULL;
int grctx_size = 0x70000, hdr;
int ret, pos;