anv: work around improper buffer usage in hitman3
authorMark Janes <markjanes@swizzler.org>
Mon, 29 Aug 2022 23:25:30 +0000 (16:25 -0700)
committerMarge Bot <emma+marge@anholt.net>
Wed, 19 Oct 2022 03:24:36 +0000 (03:24 +0000)
commit141703f906cda0e1c624abe68b522a15e56602a9
treeb0d4aeebe8e65571dfbdcb917740bd95073ef655
parenta31e8a756825b7ff11cef55045c69617c5cfdbb6
anv: work around improper buffer usage in hitman3

Avoid memory errors by returning an error immediately instead of
attempting to allocate the buffer view with an unsupported format.

Fixes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6998

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17972>
src/intel/vulkan/layers/anv_hitman3.c