summaryrefslogtreecommitdiff
path: root/lib/mesa/src/gallium/drivers/iris/iris_fence.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mesa/src/gallium/drivers/iris/iris_fence.c')
-rw-r--r--lib/mesa/src/gallium/drivers/iris/iris_fence.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/lib/mesa/src/gallium/drivers/iris/iris_fence.c b/lib/mesa/src/gallium/drivers/iris/iris_fence.c
index 0d3144d61..288c43fb2 100644
--- a/lib/mesa/src/gallium/drivers/iris/iris_fence.c
+++ b/lib/mesa/src/gallium/drivers/iris/iris_fence.c
@@ -133,8 +133,7 @@ iris_fence_reference(struct pipe_screen *p_screen,
struct pipe_fence_handle **dst,
struct pipe_fence_handle *src)
{
- if (pipe_reference(*dst ? &(*dst)->ref : NULL,
- src ? &src->ref : NULL))
+ if (pipe_reference(&(*dst)->ref, &src->ref))
iris_fence_destroy(p_screen, *dst);
*dst = src;
@@ -157,10 +156,6 @@ iris_wait_syncpt(struct pipe_screen *p_screen,
return gen_ioctl(screen->fd, DRM_IOCTL_SYNCOBJ_WAIT, &args);
}
-#define CSI "\e["
-#define BLUE_HEADER CSI "0;97;44m"
-#define NORMAL CSI "0m"
-
static void
iris_fence_flush(struct pipe_context *ctx,
struct pipe_fence_handle **out_fence,
@@ -169,17 +164,6 @@ iris_fence_flush(struct pipe_context *ctx,
struct iris_screen *screen = (void *) ctx->screen;
struct iris_context *ice = (struct iris_context *)ctx;
- if (flags & PIPE_FLUSH_END_OF_FRAME) {
- ice->frame++;
-
- if (INTEL_DEBUG & DEBUG_SUBMIT) {
- fprintf(stderr, "%s ::: FRAME %-10u (ctx %p)%-35c%s\n",
- (INTEL_DEBUG & DEBUG_COLOR) ? BLUE_HEADER : "",
- ice->frame, ctx, ' ',
- (INTEL_DEBUG & DEBUG_COLOR) ? NORMAL : "");
- }
- }
-
/* XXX PIPE_FLUSH_DEFERRED */
for (unsigned i = 0; i < IRIS_BATCH_COUNT; i++)
iris_batch_flush(&ice->batches[i]);