diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2010-09-01 01:24:29 -0400 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2010-09-24 02:20:00 -0400 |
commit | b3beb167af0de6d7cb03aed0687eca645cfd06a6 (patch) | |
tree | 2699384f75536511e57a862b206c83b4405fa197 /drivers/gpu/drm/nouveau/nv50_grctx.c | |
parent | 479dcaea09bf17e8de7005015345e4266723666d (diff) |
drm/nouveau: modify object accessors, offset in bytes rather than dwords
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nv50_grctx.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nv50_grctx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nv50_grctx.c b/drivers/gpu/drm/nouveau/nv50_grctx.c index 42a8fb20c1e6..ba6c033c8c95 100644 --- a/drivers/gpu/drm/nouveau/nv50_grctx.c +++ b/drivers/gpu/drm/nouveau/nv50_grctx.c | |||
@@ -995,7 +995,7 @@ xf_emit(struct nouveau_grctx *ctx, int num, uint32_t val) { | |||
995 | int i; | 995 | int i; |
996 | if (val && ctx->mode == NOUVEAU_GRCTX_VALS) | 996 | if (val && ctx->mode == NOUVEAU_GRCTX_VALS) |
997 | for (i = 0; i < num; i++) | 997 | for (i = 0; i < num; i++) |
998 | nv_wo32(ctx->dev, ctx->data, ctx->ctxvals_pos + (i << 3), val); | 998 | nv_wo32(ctx->data, (ctx->ctxvals_pos + (i << 3))*4, val); |
999 | ctx->ctxvals_pos += num << 3; | 999 | ctx->ctxvals_pos += num << 3; |
1000 | } | 1000 | } |
1001 | 1001 | ||