Mesa (main): freedreno/fdl: Dump the generated layout when a layout test fails.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Nov 15 22:46:48 UTC 2021


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

Author: Emma Anholt <emma at anholt.net>
Date:   Fri Nov  5 11:46:23 2021 -0700

freedreno/fdl: Dump the generated layout when a layout test fails.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13733>

---

 src/freedreno/fdl/fd_layout_test.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/freedreno/fdl/fd_layout_test.c b/src/freedreno/fdl/fd_layout_test.c
index 457cd426036..b546ac36a06 100644
--- a/src/freedreno/fdl/fd_layout_test.c
+++ b/src/freedreno/fdl/fd_layout_test.c
@@ -106,8 +106,10 @@ fdl_test_layout(const struct testcase *testcase, int gpu_id)
       }
    }
 
-   if (!ok)
+   if (!ok) {
+      fdl_dump_layout(&layout);
       fprintf(stderr, "\n");
+   }
 
    return ok;
 }



More information about the mesa-commit mailing list