Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 228585
b: refs/heads/master
c: 38cf189
h: refs/heads/master
i:
  228583: e579db8
v: v3
  • Loading branch information
Francisco Jerez committed Dec 8, 2010
1 parent 6871099 commit a219e9f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 16 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ca130c2267d0719c92ed188e15082d6baad6c046
refs/heads/master: 38cf189fa13e988f85efb6de26315e762cecc260
3 changes: 0 additions & 3 deletions trunk/drivers/gpu/drm/nouveau/nv04_graph.c
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,6 @@ nv04_graph_context_switch(struct drm_device *dev)
struct nouveau_channel *chan = NULL;
int chid;

pgraph->fifo_access(dev, false);
nouveau_wait_for_idle(dev);

/* If previous context is valid, we need to save it */
Expand All @@ -384,8 +383,6 @@ nv04_graph_context_switch(struct drm_device *dev)
chan = dev_priv->channels.ptr[chid];
if (chan)
nv04_graph_load_context(chan);

pgraph->fifo_access(dev, true);
}

static uint32_t *ctx_reg(struct graph_state *ctx, uint32_t reg)
Expand Down
12 changes: 0 additions & 12 deletions trunk/drivers/gpu/drm/nouveau/nv10_graph.c
Original file line number Diff line number Diff line change
Expand Up @@ -794,11 +794,9 @@ static void
nv10_graph_context_switch(struct drm_device *dev)
{
struct drm_nouveau_private *dev_priv = dev->dev_private;
struct nouveau_pgraph_engine *pgraph = &dev_priv->engine.graph;
struct nouveau_channel *chan = NULL;
int chid;

pgraph->fifo_access(dev, false);
nouveau_wait_for_idle(dev);

/* If previous context is valid, we need to save it */
Expand All @@ -809,8 +807,6 @@ nv10_graph_context_switch(struct drm_device *dev)
chan = dev_priv->channels.ptr[chid];
if (chan && chan->pgraph_ctx)
nv10_graph_load_context(chan);

pgraph->fifo_access(dev, true);
}

#define NV_WRITE_CTX(reg, val) do { \
Expand Down Expand Up @@ -980,8 +976,6 @@ nv17_graph_mthd_lma_window(struct nouveau_channel *chan,
struct drm_device *dev = chan->dev;
struct graph_state *ctx = chan->pgraph_ctx;
struct pipe_state *pipe = &ctx->pipe_state;
struct drm_nouveau_private *dev_priv = dev->dev_private;
struct nouveau_pgraph_engine *pgraph = &dev_priv->engine.graph;
uint32_t pipe_0x0040[1], pipe_0x64c0[8], pipe_0x6a80[3], pipe_0x6ab0[3];
uint32_t xfmode0, xfmode1;
int i;
Expand Down Expand Up @@ -1048,8 +1042,6 @@ nv17_graph_mthd_lma_window(struct nouveau_channel *chan,

nouveau_wait_for_idle(dev);

pgraph->fifo_access(dev, true);

return 0;
}

Expand All @@ -1058,8 +1050,6 @@ nv17_graph_mthd_lma_enable(struct nouveau_channel *chan,
u32 class, u32 mthd, u32 data)
{
struct drm_device *dev = chan->dev;
struct drm_nouveau_private *dev_priv = dev->dev_private;
struct nouveau_pgraph_engine *pgraph = &dev_priv->engine.graph;

nouveau_wait_for_idle(dev);

Expand All @@ -1068,8 +1058,6 @@ nv17_graph_mthd_lma_enable(struct nouveau_channel *chan,
nv_wr32(dev, 0x004006b0,
nv_rd32(dev, 0x004006b0) | 0x8 << 24);

pgraph->fifo_access(dev, true);

return 0;
}

Expand Down

0 comments on commit a219e9f

Please sign in to comment.