Skip to content

Commit

Permalink
drm/nvc0/gr: fix TP init for transform feedback offset queries
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christoph Bumiller authored and Ben Skeggs committed Nov 30, 2011
1 parent 33dbc27 commit ffe2dee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/gpu/drm/nouveau/nvc0_graph.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ffe2dee

Please sign in to comment.