v3dv: add an assert to catch applications trying to clear invalid aspects
authorIago Toral Quiroga <itoral@igalia.com>
Mon, 17 Feb 2020 15:07:32 +0000 (16:07 +0100)
committerMarge Bot <eric+marge@anholt.net>
Tue, 13 Oct 2020 21:21:27 +0000 (21:21 +0000)
commit06fa2928b8953e2f6163178c19b9974464c547b2
tree3ba323ece4e2aed0d338655f06bddf51d23d7ce6
parent9a2d6cca76100c6607034e0d0fbccaeae01db7a5
v3dv: add an assert to catch applications trying to clear invalid aspects

I accidentally tried to clear D+S of a depth-only image which was not caught
by the validation layers in my environment. This made the simulator crash, but
tracking down the crash to the actual error was not trivial. This should make
it immediately obvious.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
src/broadcom/vulkan/v3dv_meta_copy.c