summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2016-07-15 23:16:08 +0200
committerMarek Olšák <[email protected]>2016-08-06 14:29:30 +0200
commit16d568d91166f800dc694510b7c455798bb3b1c0 (patch)
treeee38fbf0614d1fe06dfb0a8ec4f146f6fcfb5048 /src/gallium/drivers/r600
parentc5ff0d3e65d499dcb466c151ed48cdf67e43cdbb (diff)
gallium/radeon: count gfx IB flushes
This will be used as a counter for whether fence_finish needs to flush the IB. Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600')
-rw-r--r--src/gallium/drivers/r600/r600_hw_context.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_hw_context.c b/src/gallium/drivers/r600/r600_hw_context.c
index 113991ffbbe..444739315ed 100644
--- a/src/gallium/drivers/r600/r600_hw_context.c
+++ b/src/gallium/drivers/r600/r600_hw_context.c
@@ -286,6 +286,7 @@ void r600_context_gfx_flush(void *context, unsigned flags,
ws->cs_flush(cs, flags, &ctx->b.last_gfx_fence);
if (fence)
ws->fence_reference(fence, ctx->b.last_gfx_fence);
+ ctx->b.num_gfx_cs_flushes++;
r600_begin_new_cs(ctx);
}