radeonsi: don't count fast clears and prefetches into CP DMA stats
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
@@ -234,6 +234,8 @@ static void si_clear_buffer(struct pipe_context *ctx, struct pipe_resource *dst,
|
|||||||
if (tc_l2_flag)
|
if (tc_l2_flag)
|
||||||
rdst->TC_L2_dirty = true;
|
rdst->TC_L2_dirty = true;
|
||||||
|
|
||||||
|
/* If it's not a framebuffer fast clear... */
|
||||||
|
if (coher == R600_COHERENCY_SHADER)
|
||||||
sctx->b.num_cp_dma_calls++;
|
sctx->b.num_cp_dma_calls++;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -360,6 +362,8 @@ void si_copy_buffer(struct si_context *sctx,
|
|||||||
if (tc_l2_flag)
|
if (tc_l2_flag)
|
||||||
r600_resource(dst)->TC_L2_dirty = true;
|
r600_resource(dst)->TC_L2_dirty = true;
|
||||||
|
|
||||||
|
/* If it's not a prefetch... */
|
||||||
|
if (dst_offset != src_offset)
|
||||||
sctx->b.num_cp_dma_calls++;
|
sctx->b.num_cp_dma_calls++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user