diff options
author | Christoph Bumiller <[email protected]> | 2013-03-29 16:30:58 +0100 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2013-04-03 12:54:43 +0200 |
commit | 198f514aa6f08bc43a3002519843b0fe94f340bd (patch) | |
tree | 1f9a3038e554dceadcd27ddc1b829815206f7432 /src/gallium/drivers/nvc0/nvc0_transfer.c | |
parent | 7628cc247feecfb31aff97f47f039ebe476f0ca8 (diff) |
nvc0: add some driver statistics queries
Diffstat (limited to 'src/gallium/drivers/nvc0/nvc0_transfer.c')
-rw-r--r-- | src/gallium/drivers/nvc0/nvc0_transfer.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/nvc0/nvc0_transfer.c b/src/gallium/drivers/nvc0/nvc0_transfer.c index 16467cee489..bdba83d90fb 100644 --- a/src/gallium/drivers/nvc0/nvc0_transfer.c +++ b/src/gallium/drivers/nvc0/nvc0_transfer.c @@ -447,7 +447,10 @@ nvc0_miptree_transfer_unmap(struct pipe_context *pctx, tx->rect[0].base += mt->layer_stride; tx->rect[1].base += tx->nblocksy * tx->base.stride; } + NOUVEAU_DRV_STAT(&nvc0->screen->base, tex_transfers_wr, 1); } + if (tx->base.usage & PIPE_TRANSFER_READ) + NOUVEAU_DRV_STAT(&nvc0->screen->base, tex_transfers_rd, 1); nouveau_bo_ref(NULL, &tx->rect[1].bo); pipe_resource_reference(&transfer->resource, NULL); @@ -464,6 +467,9 @@ nvc0_cb_push(struct nouveau_context *nv, struct nouveau_bufctx *bctx = nvc0_context(&nv->pipe)->bufctx; struct nouveau_pushbuf *push = nv->pushbuf; + NOUVEAU_DRV_STAT(nv->screen, constbuf_upload_count, 1); + NOUVEAU_DRV_STAT(nv->screen, constbuf_upload_bytes, words * 4); + assert(!(offset & 3)); size = align(size, 0x100); |