summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2016-10-28 01:55:17 +0200
committerMarek Olšák <[email protected]>2016-11-01 22:33:13 +0100
commit315eb0acb48a30f9a8defa73a78055e441b5ee6c (patch)
tree2226b506790d3d78f5e214d40195ae7faa6dbfd6 /src/gallium/drivers/radeonsi
parentd268b7f95e0df35fe0e1e67bb6b6c146589dcc7d (diff)
radeonsi: add a driver query for counting CP DMA calls
CP DMA calls are synchronous with regard to shaders, but can be made asynchronous if needed. Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi')
-rw-r--r--src/gallium/drivers/radeonsi/si_cp_dma.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_cp_dma.c b/src/gallium/drivers/radeonsi/si_cp_dma.c
index 6667ae302b4..58093177b93 100644
--- a/src/gallium/drivers/radeonsi/si_cp_dma.c
+++ b/src/gallium/drivers/radeonsi/si_cp_dma.c
@@ -214,6 +214,8 @@ static void si_clear_buffer(struct pipe_context *ctx, struct pipe_resource *dst,
if (tc_l2_flag)
r600_resource(dst)->TC_L2_dirty = true;
+
+ sctx->b.num_cp_dma_calls++;
}
/**
@@ -338,6 +340,8 @@ void si_copy_buffer(struct si_context *sctx,
if (tc_l2_flag)
r600_resource(dst)->TC_L2_dirty = true;
+
+ sctx->b.num_cp_dma_calls++;
}
void si_init_cp_dma_functions(struct si_context *sctx)