Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 269599
b: refs/heads/master
c: 95f0de3
h: refs/heads/master
i:
  269597: 68f07d6
  269595: c49afe8
  269591: 573062c
  269583: 3499824
  269567: 551d3ab
v: v3
  • Loading branch information
Ben Skeggs committed Sep 20, 2011
1 parent 615ebca commit 8d8d3b1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cec2a270dbaafba7e2340e9489a5658c67960962
refs/heads/master: 95f0de3a0ae52bbe11f285ae46b5319bb2a2360d
6 changes: 6 additions & 0 deletions trunk/drivers/gpu/drm/nouveau/nv50_grctx.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@
#define CP_FLAG_UNK0B ((0 * 32) + 0xb)
#define CP_FLAG_UNK0B_CLEAR 0
#define CP_FLAG_UNK0B_SET 1
#define CP_FLAG_STATE ((0 * 32) + 0x1c)
#define CP_FLAG_STATE_STOPPED 0
#define CP_FLAG_STATE_RUNNING 1
#define CP_FLAG_UNK1D ((0 * 32) + 0x1d)
#define CP_FLAG_UNK1D_CLEAR 0
#define CP_FLAG_UNK1D_SET 1
Expand Down Expand Up @@ -194,6 +197,8 @@ nv50_grctx_init(struct nouveau_grctx *ctx)
"the devs.\n");
return -ENOSYS;
}

cp_set (ctx, STATE, RUNNING);
/* decide whether we're loading/unloading the context */
cp_bra (ctx, AUTO_SAVE, PENDING, cp_setup_save);
cp_bra (ctx, USER_SAVE, PENDING, cp_setup_save);
Expand Down Expand Up @@ -260,6 +265,7 @@ nv50_grctx_init(struct nouveau_grctx *ctx)
cp_name(ctx, cp_exit);
cp_set (ctx, USER_SAVE, NOT_PENDING);
cp_set (ctx, USER_LOAD, NOT_PENDING);
cp_set (ctx, STATE, STOPPED);
cp_out (ctx, CP_END);
ctx->ctxvals_pos += 0x400; /* padding... no idea why you need it */

Expand Down

0 comments on commit 8d8d3b1

Please sign in to comment.