Mesa (main): v3d: report the correct unsupported blit format

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Apr 19 08:48:38 UTC 2022


Module: Mesa
Branch: main
Commit: 18f8e3e7bdfc149962fc4b39295b1ad31fb9f1fe
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=18f8e3e7bdfc149962fc4b39295b1ad31fb9f1fe

Author: Juan A. Suarez Romero <jasuarez at igalia.com>
Date:   Wed Apr 13 14:32:19 2022 +0200

v3d: report the correct unsupported blit format

We were reporting the resource format instead of the surface format for
unsupported render blit formats.

Signed-off-by: Juan A. Suarez Romero <jasuarez at igalia.com>
Reviewed-by: Iago Toral Quiroga <itoral at igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15693>

---

 src/gallium/drivers/v3d/v3d_blit.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/v3d/v3d_blit.c b/src/gallium/drivers/v3d/v3d_blit.c
index b44b6cd78ec..83af380b9d2 100644
--- a/src/gallium/drivers/v3d/v3d_blit.c
+++ b/src/gallium/drivers/v3d/v3d_blit.c
@@ -103,8 +103,8 @@ v3d_render_blit(struct pipe_context *ctx, struct pipe_blit_info *info)
 
         if (!util_blitter_is_blit_supported(v3d->blitter, info)) {
                 fprintf(stderr, "blit unsupported %s -> %s\n",
-                    util_format_short_name(info->src.resource->format),
-                    util_format_short_name(info->dst.resource->format));
+                    util_format_short_name(info->src.format),
+                    util_format_short_name(info->dst.format));
                 return;
         }
 



More information about the mesa-commit mailing list