From a8b9860a974117771f79faa6d4f7c9af0e585d4f Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Thu, 22 Oct 2020 14:43:10 -0700 Subject: [PATCH] freedreno: debug cleanup Fix an extra \n and remove a useless trace (I guess after 7yrs it is no longer actually TODO) Signed-off-by: Rob Clark Part-of: --- src/gallium/drivers/freedreno/freedreno_context.c | 2 +- src/gallium/drivers/freedreno/freedreno_surface.c | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/gallium/drivers/freedreno/freedreno_context.c b/src/gallium/drivers/freedreno/freedreno_context.c index 456800d58fc..20ee0191832 100644 --- a/src/gallium/drivers/freedreno/freedreno_context.c +++ b/src/gallium/drivers/freedreno/freedreno_context.c @@ -54,7 +54,7 @@ fd_context_flush(struct pipe_context *pctx, struct pipe_fence_handle **fencep, // TODO we want to lookup batch if it exists, but not create one if not. struct fd_batch *batch = fd_context_batch(ctx); - DBG("%p: flush: flags=%x\n", ctx->batch, flags); + DBG("%p: flush: flags=%x", ctx->batch, flags); /* In some sequence of events, we can end up with a last_fence that is * not an "fd" fence, which results in eglDupNativeFenceFDANDROID() diff --git a/src/gallium/drivers/freedreno/freedreno_surface.c b/src/gallium/drivers/freedreno/freedreno_surface.c index 602471b24b2..3a6617cd0ed 100644 --- a/src/gallium/drivers/freedreno/freedreno_surface.c +++ b/src/gallium/drivers/freedreno/freedreno_surface.c @@ -36,7 +36,6 @@ fd_create_surface(struct pipe_context *pctx, struct pipe_resource *ptex, const struct pipe_surface *surf_tmpl) { -// struct fd_resource* tex = fd_resource(ptex); struct fd_surface* surface = CALLOC_STRUCT(fd_surface); if (!surface) @@ -64,9 +63,6 @@ fd_create_surface(struct pipe_context *pctx, psurf->u.tex.last_layer = surf_tmpl->u.tex.last_layer; } - // TODO - DBG("TODO: %ux%u", psurf->width, psurf->height); - return &surface->base; }