Mesa (master): freedreno: debug cleanup

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Nov 10 18:27:27 UTC 2020


Module: Mesa
Branch: master
Commit: a8b9860a974117771f79faa6d4f7c9af0e585d4f
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a8b9860a974117771f79faa6d4f7c9af0e585d4f

Author: Rob Clark <robdclark at chromium.org>
Date:   Thu Oct 22 14:43:10 2020 -0700

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 <robdclark at chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7342>

---

 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;
 }
 



More information about the mesa-commit mailing list