v3dv: add an assert to catch applications trying to clear invalid aspects

Graphics / Mesa 3D Graphics Library / Mesa - Iago Toral Quiroga [igalia.com] - 13 October 2020 21:21 UTC

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:

06fa2928b89 v3dv: add an assert to catch applications trying to clear invalid aspects
src/broadcom/vulkan/v3dv_meta_copy.c | 5 +++++
1 file changed, 5 insertions(+)

Upstream: cgit.freedesktop.org


  • Share