crocus/blt: add pitch/offset checks to fix blt corruption
authorDave Airlie <airlied@gmail.com>
Wed, 11 Aug 2021 17:32:41 +0000 (13:32 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 11 Aug 2021 19:21:01 +0000 (19:21 +0000)
commit58e95f99bd5dde83eb2a7ab6d1ee2735eed432d9
tree43e088d1ed39291335322443f6d29c6fc197f428
parentcb2e712b9e42bcbd4b91ec598f3b286c6a00a4a8
crocus/blt: add pitch/offset checks to fix blt corruption

I lost these in my conversion from i965 but they are necessary.

This should fix corruption in qt fonts at seen in the minecraft
launcher.

Fixes: f3630548f1da ("crocus: initial gallium driver for Intel gfx 4-7")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12329>
src/gallium/drivers/crocus/crocus_blt.c