zink: fix 32bit bo rewriting
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Fri, 20 May 2022 15:04:11 +0000 (11:04 -0400)
committerMarge Bot <emma+marge@anholt.net>
Fri, 10 Jun 2022 02:35:12 +0000 (02:35 +0000)
commitbbe5136658f048b6403f31f0d01dff856dd3ff81
tree19aae9acd12a6dccd0bd17b542e9c1e2c79bb513
parentea8fc23119063eb879aadd3360141226b6ac9287
zink: fix 32bit bo rewriting

this was correct for 64bit loads and manually converted 32bit loads (e.g., bindless),
but it was broken for the case where 64bit was not supported, as the offset wasn't
being correctly adjusted

break out the offset division to hopefully make this a little clearer

Fixes: 150d6ee97e3 ("zink: move all 64-32bit shader load rewriting to nir pass")

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16669>
src/gallium/drivers/zink/ci/zink-tu-a630-fails.txt
src/gallium/drivers/zink/zink_compiler.c