diff options
author | Christoph Bumiller <e0425955@student.tuwien.ac.at> | 2011-11-11 20:47:58 +0100 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2011-11-30 14:40:16 +0100 |
commit | ffe2dee49023c2a47ef7e177ceb22ec6bcaecc11 (patch) | |
tree | b10f771344b8af076b6be89eae2caeb55e55a84f /drivers/gpu | |
parent | drm/nouveau: add dumb ioctl support (diff) | |
download | linux-ffe2dee49023c2a47ef7e177ceb22ec6bcaecc11.tar.xz linux-ffe2dee49023c2a47ef7e177ceb22ec6bcaecc11.zip |
drm/nvc0/gr: fix TP init for transform feedback offset queries
Without this, they return bytes written since the last update of
the offset, but we want the full offset.
Trace shows setting this on GPC[0]/TP[0] is enough.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/nouveau/nvc0_graph.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nvc0_graph.c b/drivers/gpu/drm/nouveau/nvc0_graph.c index a74e501afd25..ecfafd70cf0e 100644 --- a/drivers/gpu/drm/nouveau/nvc0_graph.c +++ b/drivers/gpu/drm/nouveau/nvc0_graph.c @@ -381,6 +381,8 @@ nvc0_graph_init_gpc_0(struct drm_device *dev) u8 tpnr[GPC_MAX]; int i, gpc, tpc; + nv_wr32(dev, TP_UNIT(0, 0, 0x5c), 1); /* affects TFB offset queries */ + /* * TP ROP UNKVAL(magic_not_rop_nr) * 450: 4/0/0/0 2 3 |