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

Author: Emma Anholt <[email protected]>
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;
 }

Reply via email to