Mesa (master): freedreno/cffdec: Fix up texturator parsing scripts for XML changes.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Sep 10 00:25:19 UTC 2020


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

Author: Eric Anholt <eric at anholt.net>
Date:   Thu Sep  3 11:24:01 2020 -0700

freedreno/cffdec: Fix up texturator parsing scripts for XML changes.

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

---

 src/freedreno/decode/scripts/texturator-to-unit-test.lua | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/freedreno/decode/scripts/texturator-to-unit-test.lua b/src/freedreno/decode/scripts/texturator-to-unit-test.lua
index 8836d594545..195e515c88c 100644
--- a/src/freedreno/decode/scripts/texturator-to-unit-test.lua
+++ b/src/freedreno/decode/scripts/texturator-to-unit-test.lua
@@ -65,12 +65,12 @@ function draw(primtype, nindx)
 
   blit.width   = r.GRAS_2D_DST_BR.X + 1
   blit.height  = r.GRAS_2D_DST_BR.Y + 1
-  blit.pitch   = r.RB_2D_DST_SIZE.PITCH
+  blit.pitch   = r.RB_2D_DST_PITCH
   blit.addr    = r.RB_2D_DST_LO | (r.RB_2D_DST_HI << 32)
   blit.base    = bos.base(blit.addr)
   blit.ubwc_addr = r.RB_2D_DST_FLAGS_LO | (r.RB_2D_DST_FLAGS_HI << 32)
   blit.ubwc_base = bos.base(blit.uwbc_addr)
-  blit.ubwc_pitch = r.RB_2D_DST_FLAGS_PITCH.PITCH
+  blit.ubwc_pitch = r.RB_2D_DST_FLAGS_PITCH
   blit.endaddr = 0  -- filled in later
   printf("Found blit: 0x%x (0x%x) %dx%d UBWC 0x%x (0x%x)\n", blit.addr, blit.base, blit.width, blit.height, blit.ubwc_addr, blit.ubwc_base)
 



More information about the mesa-commit mailing list