From f63fd3425d7ad7996274f3a7b4930dc28929eccf Mon Sep 17 00:00:00 2001 From: Emma Anholt Date: Thu, 4 Nov 2021 15:25:25 -0700 Subject: [PATCH] freedreno: Fix the texturator unit test script. We no longer have reg defs for the HI fields, so all we can access from lua is the low 32 bits. LUA has only double-precision floats for numbers, so we can't fix that. However, the high bits are almost always the same, so it's not that big of a deal to be ignoring them for this script. Part-of: --- src/freedreno/decode/scripts/texturator-to-unit-test.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/freedreno/decode/scripts/texturator-to-unit-test.lua b/src/freedreno/decode/scripts/texturator-to-unit-test.lua index 5371a28370e..e08f29a35ea 100644 --- a/src/freedreno/decode/scripts/texturator-to-unit-test.lua +++ b/src/freedreno/decode/scripts/texturator-to-unit-test.lua @@ -64,16 +64,16 @@ 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_PITCH - blit.addr = r.RB_2D_DST_LO | (r.RB_2D_DST_HI << 32) - blit.ubwc_addr = r.RB_2D_DST_FLAGS_LO | (r.RB_2D_DST_FLAGS_HI << 32) + blit.addr = r.RB_2D_DST + blit.ubwc_addr = r.RB_2D_DST_FLAGS blit.ubwc_pitch = r.RB_2D_DST_FLAGS_PITCH type="blit"; else blit.width = r.GRAS_SC_WINDOW_SCISSOR_BR.X + 1 blit.height = r.GRAS_SC_WINDOW_SCISSOR_BR.Y + 1 blit.pitch = r.RB_MRT[0].PITCH - blit.addr = r.RB_MRT[0].BASE_LO | (r.RB_MRT[0].BASE_HI << 32); - blit.ubwc_addr = r.RB_MRT_FLAG_BUFFER[0].ADDR_LO | (r.RB_MRT_FLAG_BUFFER[0].ADDR_HI << 32) + blit.addr = r.RB_MRT[0].BASE + blit.ubwc_addr = r.RB_MRT_FLAG_BUFFER[0].ADDR blit.ubwc_pitch = r.RB_MRT_FLAG_BUFFER[0].PITCH.PITCH type="draw" end