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

Author: Emma Anholt <[email protected]>
Date:   Fri Nov  5 12:00:33 2021 -0700

freedreno/cffdump: Handle the TILE_ALL flag in unit test generation.

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

---

 src/freedreno/decode/scripts/texturator-to-unit-test.lua | 4 ++++
 src/freedreno/fdl/fd_layout_test.c                       | 1 +
 src/freedreno/fdl/fd_layout_test.h                       | 1 +
 3 files changed, 6 insertions(+)

diff --git a/src/freedreno/decode/scripts/texturator-to-unit-test.lua 
b/src/freedreno/decode/scripts/texturator-to-unit-test.lua
index 2a6ec23bbcc..dad65834d82 100644
--- a/src/freedreno/decode/scripts/texturator-to-unit-test.lua
+++ b/src/freedreno/decode/scripts/texturator-to-unit-test.lua
@@ -146,6 +146,10 @@ function A6XX_TEX_CONST(pkt, size)
   printf("               {\n");
   printf("                  .tile_mode = %s,\n", pkt[0].TILE_MODE)
   printf("                  .ubwc = %s,\n", tostring(pkt[3].FLAG))
+  if (pkt[3].TILE_ALL) then
+    printf("                  .tile_all = true,\n")
+  end
+
 
   if (tostring(pkt[0].SAMPLES) == "MSAA_ONE") then
     -- Ignore it, 1 is the default
diff --git a/src/freedreno/fdl/fd_layout_test.c 
b/src/freedreno/fdl/fd_layout_test.c
index 0a2f78ab4ec..4918c4ceb03 100644
--- a/src/freedreno/fdl/fd_layout_test.c
+++ b/src/freedreno/fdl/fd_layout_test.c
@@ -35,6 +35,7 @@ fdl_test_layout(const struct testcase *testcase, int gpu_id)
    struct fdl_layout layout = {
       .ubwc = testcase->layout.ubwc,
       .tile_mode = testcase->layout.tile_mode,
+      .tile_all = testcase->layout.tile_all,
    };
    bool ok = true;
 
diff --git a/src/freedreno/fdl/fd_layout_test.h 
b/src/freedreno/fdl/fd_layout_test.h
index 9dda6c2e6a1..dafd0dd9a22 100644
--- a/src/freedreno/fdl/fd_layout_test.h
+++ b/src/freedreno/fdl/fd_layout_test.h
@@ -30,6 +30,7 @@ struct testcase {
    /* Partially filled layout of input parameters and expected results. */
    struct {
       uint32_t tile_mode : 2;
+      bool tile_all : 1;
       bool ubwc : 1;
       uint32_t width0, height0, depth0;
       uint32_t nr_samples;

Reply via email to