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/nouveau_grctx.h | |
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/nouveau_grctx.h')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_grctx.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_grctx.h b/drivers/gpu/drm/nouveau/nouveau_grctx.h index 5d39c4ce8006..4a8ad1307fa4 100644 --- a/drivers/gpu/drm/nouveau/nouveau_grctx.h +++ b/drivers/gpu/drm/nouveau/nouveau_grctx.h | |||
@@ -126,7 +126,7 @@ gr_def(struct nouveau_grctx *ctx, uint32_t reg, uint32_t val) | |||
126 | reg = (reg - 0x00400000) / 4; | 126 | reg = (reg - 0x00400000) / 4; |
127 | reg = (reg - ctx->ctxprog_reg) + ctx->ctxvals_base; | 127 | reg = (reg - ctx->ctxprog_reg) + ctx->ctxvals_base; |
128 | 128 | ||
129 | nv_wo32(ctx->dev, ctx->data, reg, val); | 129 | nv_wo32(ctx->data, reg * 4, val); |
130 | } | 130 | } |
131 | #endif | 131 | #endif |
132 | 132 | ||