Skip to contentSkip to conversation

drm/nvc0/gr: fix TP init for transform feedback offset queries

PATCH New Christoph Bumiller 1 participant 1 message Nov 11, 2011

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/gpu/drm/nouveau/nvc0_graph.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/gpu/drm/nouveau/nvc0_graph.c +2 -0
index d99b285..713975b 100644
@@ -357,6 +357,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);
+
 	/*
 	 *      TP      ROP UNKVAL(magic_not_rop_nr)
 	 * 450: 4/0/0/0 2        3
Signature · 1 line
1.7.3.4