zink: really fix direct image mapping offset (I mean it this time)
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Sat, 12 Dec 2020 16:59:40 +0000 (11:59 -0500)
committerMarge Bot <eric+marge@anholt.net>
Mon, 14 Dec 2020 14:30:42 +0000 (14:30 +0000)
commitdfd0f042e0d8faa374629ea0a67422edff6d48c3
tree3a2f53f5f6a897bfe334ff83cdf67d5a4f581c73
parentab79e6b8e33689857509c417c37f34c40f72ad45
zink: really fix direct image mapping offset (I mean it this time)

I got confused and:
* used the vkformat instead of the pipe format for getting format description
* incorrectly calculated bpp

but this time it's definitely 100% fixed I promise

Fixes: 456b57802ea ("zink: fix direct image mapping offset")

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8074>
src/gallium/drivers/zink/zink_resource.c