summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ilo/ilo_context.c
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2013-08-20 11:40:49 +0800
committerChia-I Wu <[email protected]>2013-08-20 13:54:39 +0800
commitce87c51e9ad131670fd8e4dcc0d023d0b057612b (patch)
tree4e6ff9fed3a0b47fc787dcbe8cb5cf2c2e4221e7 /src/gallium/drivers/ilo/ilo_context.c
parent216a576e111b85662eabd8d4c398149818adbf39 (diff)
ilo: add ILO_DEBUG=flush
When specified, ilo will print a line similar to cp flushed for render with 949+888 DWords (22.4%) because of frame end for every ilo_cp_flush() call.
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_context.c')
-rw-r--r--src/gallium/drivers/ilo/ilo_context.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/ilo/ilo_context.c b/src/gallium/drivers/ilo/ilo_context.c
index 7fd5ab6b524..1f8aa232a46 100644
--- a/src/gallium/drivers/ilo/ilo_context.c
+++ b/src/gallium/drivers/ilo/ilo_context.c
@@ -84,7 +84,8 @@ ilo_flush(struct pipe_context *pipe,
*f = (struct pipe_fence_handle *) fence;
}
- ilo_cp_flush(ilo->cp);
+ ilo_cp_flush(ilo->cp,
+ (flags & PIPE_FLUSH_END_OF_FRAME) ? "frame end" : "user request");
}
static void