crocus/gen4: restrict memcpy mapping to gen5
authorDave Airlie <airlied@redhat.com>
Mon, 26 Jul 2021 05:27:52 +0000 (15:27 +1000)
committerMarge Bot <eric+marge@anholt.net>
Mon, 26 Jul 2021 20:28:37 +0000 (20:28 +0000)
commit5bf6ec31ccf6c24a407df9443a534f8036d26861
treeb451f33c06549677702686a95ad882594ecd8ef8
parent856e2b75291bf29ecdbce8879b3da1e8cad826c1
crocus/gen4: restrict memcpy mapping to gen5

This is due to gen4 + 4.5 having some rather strange swizzling
that we can't actually detect properly in userspace

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