radv: enable deviceFaultVendorBinary if RADV_DEBUG=hang is set

Ideally, if deviceFaultVendorBinary is enabled by the app,
RADV_DEBUG=hang should be enabled behind the scene, but this isn't
possible right now because CTS always enables the feature.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27293>
This commit is contained in:
Samuel Pitoiset 2024-01-26 14:47:36 +01:00
parent a778d5fd0d
commit 31e29f7304

View file

@ -1116,7 +1116,7 @@ radv_physical_device_get_features(const struct radv_physical_device *pdevice, st
/* VK_EXT_device_fault */
.deviceFault = true,
.deviceFaultVendorBinary = false,
.deviceFaultVendorBinary = pdevice->instance->debug_flags & RADV_DEBUG_HANG,
/* VK_EXT_depth_clamp_zero_one */
.depthClampZeroOne = true,