projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33dbc27
)
drm/nvc0/gr: fix TP init for transform feedback offset queries
author
Christoph Bumiller
<
[email protected]
>
Fri, 11 Nov 2011 19:47:58 +0000
(20:47 +0100)
committer
Ben Skeggs
<
[email protected]
>
Wed, 30 Nov 2011 13:40:16 +0000
(23:40 +1000)
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 <
[email protected]
>
drivers/gpu/drm/nouveau/nvc0_graph.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/nouveau/nvc0_graph.c
b/drivers/gpu/drm/nouveau/nvc0_graph.c
index a74e501afd25b44b7315d497f8ca30908dcb3995..ecfafd70cf0ed2b6f9ee0b51c74031caa337de27 100644
(file)
--- 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