1 /* 2 * Copyright 2024 Google LLC 3 * 4 * Use of this source code is governed by a BSD-style license that can be 5 * found in the LICENSE file. 6 */ 7 8 #include "include/core/SkTypes.h" 9 10 #if !defined(__has_feature) 11 #define __has_feature(x) 0 12 #endif 13 14 #if __has_feature(thread_sanitizer) && defined(SK_GRAPHITE) && defined(SK_VULKAN) 15 16 extern "C" { 17 18 const char* __tsan_default_suppressions(); __tsan_default_suppressions()19 const char* __tsan_default_suppressions() { 20 // b/373932392 (Precompile isn't thread safe on Native Vulkan) 21 return "race:anv_shader_bin_create"; // Intel Vulkan drivers (mesa-22.1.3). 22 } 23 24 } 25 26 #endif 27