Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ffe2dee4 authored by Christoph Bumiller's avatar Christoph Bumiller Committed by Ben Skeggs
Browse files

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: default avatarBen Skeggs <bskeggs@redhat.com>
parent 33dbc27f
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -381,6 +381,8 @@ nvc0_graph_init_gpc_0(struct drm_device *dev)
	u8  tpnr[GPC_MAX];
	u8  tpnr[GPC_MAX];
	int i, gpc, tpc;
	int i, gpc, tpc;


	nv_wr32(dev, TP_UNIT(0, 0, 0x5c), 1); /* affects TFB offset queries */

	/*
	/*
	 *      TP      ROP UNKVAL(magic_not_rop_nr)
	 *      TP      ROP UNKVAL(magic_not_rop_nr)
	 * 450: 4/0/0/0 2        3
	 * 450: 4/0/0/0 2        3