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: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13733>
This commit is contained in:
Emma Anholt 2021-11-04 15:25:25 -07:00 committed by Marge Bot
parent 3ddefb4ae3
commit f63fd3425d

View File

@ -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