diff options
-rw-r--r-- | drivers/gpu/drm/nouveau/nv50_grctx.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nv50_grctx.c b/drivers/gpu/drm/nouveau/nv50_grctx.c index e04fb4483c5..d05c2c3b244 100644 --- a/drivers/gpu/drm/nouveau/nv50_grctx.c +++ b/drivers/gpu/drm/nouveau/nv50_grctx.c | |||
@@ -40,6 +40,9 @@ | |||
40 | #define CP_FLAG_UNK0B ((0 * 32) + 0xb) | 40 | #define CP_FLAG_UNK0B ((0 * 32) + 0xb) |
41 | #define CP_FLAG_UNK0B_CLEAR 0 | 41 | #define CP_FLAG_UNK0B_CLEAR 0 |
42 | #define CP_FLAG_UNK0B_SET 1 | 42 | #define CP_FLAG_UNK0B_SET 1 |
43 | #define CP_FLAG_XFER_SWITCH ((0 * 32) + 0xe) | ||
44 | #define CP_FLAG_XFER_SWITCH_DISABLE 0 | ||
45 | #define CP_FLAG_XFER_SWITCH_ENABLE 1 | ||
43 | #define CP_FLAG_STATE ((0 * 32) + 0x1c) | 46 | #define CP_FLAG_STATE ((0 * 32) + 0x1c) |
44 | #define CP_FLAG_STATE_STOPPED 0 | 47 | #define CP_FLAG_STATE_STOPPED 0 |
45 | #define CP_FLAG_STATE_RUNNING 1 | 48 | #define CP_FLAG_STATE_RUNNING 1 |
@@ -199,6 +202,7 @@ nv50_grctx_init(struct nouveau_grctx *ctx) | |||
199 | } | 202 | } |
200 | 203 | ||
201 | cp_set (ctx, STATE, RUNNING); | 204 | cp_set (ctx, STATE, RUNNING); |
205 | cp_set (ctx, XFER_SWITCH, ENABLE); | ||
202 | /* decide whether we're loading/unloading the context */ | 206 | /* decide whether we're loading/unloading the context */ |
203 | cp_bra (ctx, AUTO_SAVE, PENDING, cp_setup_save); | 207 | cp_bra (ctx, AUTO_SAVE, PENDING, cp_setup_save); |
204 | cp_bra (ctx, USER_SAVE, PENDING, cp_setup_save); | 208 | cp_bra (ctx, USER_SAVE, PENDING, cp_setup_save); |
@@ -265,6 +269,7 @@ nv50_grctx_init(struct nouveau_grctx *ctx) | |||
265 | cp_name(ctx, cp_exit); | 269 | cp_name(ctx, cp_exit); |
266 | cp_set (ctx, USER_SAVE, NOT_PENDING); | 270 | cp_set (ctx, USER_SAVE, NOT_PENDING); |
267 | cp_set (ctx, USER_LOAD, NOT_PENDING); | 271 | cp_set (ctx, USER_LOAD, NOT_PENDING); |
272 | cp_set (ctx, XFER_SWITCH, DISABLE); | ||
268 | cp_set (ctx, STATE, STOPPED); | 273 | cp_set (ctx, STATE, STOPPED); |
269 | cp_out (ctx, CP_END); | 274 | cp_out (ctx, CP_END); |
270 | ctx->ctxvals_pos += 0x400; /* padding... no idea why you need it */ | 275 | ctx->ctxvals_pos += 0x400; /* padding... no idea why you need it */ |