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

Commit 5d079298 authored by Ben Skeggs's avatar Ben Skeggs
Browse files

drm/nvc0/grctx: correct an off-by-one



Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 34311c73
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1830,7 +1830,7 @@ nvc0_grctx_generate(struct nouveau_channel *chan)

	for (tp = 0, id = 0; tp < 4; tp++) {
		for (gpc = 0; gpc < priv->gpc_nr; gpc++) {
			if (tp <= priv->tp_nr[gpc]) {
			if (tp < priv->tp_nr[gpc]) {
				nv_wr32(dev, TP_UNIT(gpc, tp, 0x698), id);
				nv_wr32(dev, TP_UNIT(gpc, tp, 0x4e8), id);
				nv_wr32(dev, GPC_UNIT(gpc, 0x0c10 + tp * 4), id);