summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLauri Peltonen <lpeltonen@nvidia.com>2015-02-17 15:55:42 +0900
committerBen Skeggs <bskeggs@redhat.com>2015-03-17 09:45:11 +1000
commitc277a90eca5bcb315f6459ffc05583285879b631 (patch)
treeac1d7954561488ca946a61befe4ebf560ba12db2
parent2554d7a3d6cb044ecba39f2f81fd3b83ce65b83d (diff)
downloadnouveau-c277a90eca5bcb315f6459ffc05583285879b631.tar.gz
graph/nvc0: Fix engine pointer retrieval
Other methods in this file suggest this is the correct way to retrieve the engine pointer. Signed-off-by: Lauri Peltonen <lpeltonen@nvidia.com> Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
-rw-r--r--drm/nouveau/nvkm/engine/gr/gf100.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drm/nouveau/nvkm/engine/gr/gf100.c b/drm/nouveau/nvkm/engine/gr/gf100.c
index 1dd482e9d..9707870a5 100644
--- a/drm/nouveau/nvkm/engine/gr/gf100.c
+++ b/drm/nouveau/nvkm/engine/gr/gf100.c
@@ -236,7 +236,7 @@ static int
gf100_gr_set_shader_exceptions(struct nvkm_object *object, u32 mthd,
void *pdata, u32 size)
{
- struct gf100_gr_priv *priv = (void *)nv_engine(object);
+ struct gf100_gr_priv *priv = (void *)object->engine;
if (size >= sizeof(u32)) {
u32 data = *(u32 *)pdata ? 0xffffffff : 0x00000000;
nv_wr32(priv, 0x419e44, data);