};
}
+static void
+warn_non_conformant_implementation(void)
+{
+ if (env_var_as_boolean("TU_IGNORE_CONFORMANCE_WARNING", false))
+ return;
+ fprintf(stderr, "WARNING: tu is not a conformant vulkan implementation, "
+ "testing use only.\n");
+}
+
VkResult
tu_physical_device_init(struct tu_physical_device *device,
struct tu_instance *instance)
disk_cache_format_hex_id(buf, device->cache_uuid, VK_UUID_SIZE * 2);
device->disk_cache = disk_cache_create(device->name, buf, 0);
- fprintf(stderr, "WARNING: tu is not a conformant vulkan implementation, "
- "testing use only.\n");
+ warn_non_conformant_implementation();
fd_get_driver_uuid(device->driver_uuid);
fd_get_device_uuid(device->device_uuid, device->gpu_id);