diff options
Diffstat (limited to 'graphics/mesa/patches/patch-src_util_disk_cache_c')
-rw-r--r-- | graphics/mesa/patches/patch-src_util_disk_cache_c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/graphics/mesa/patches/patch-src_util_disk_cache_c b/graphics/mesa/patches/patch-src_util_disk_cache_c new file mode 100644 index 0000000..785798e --- /dev/null +++ b/graphics/mesa/patches/patch-src_util_disk_cache_c @@ -0,0 +1,15 @@ +Index: src/util/disk_cache.c +--- src/util/disk_cache.c.orig ++++ src/util/disk_cache.c +@@ -80,6 +80,11 @@ disk_cache_create(const char *gpu_name, const char *dr + uint8_t cache_version = CACHE_VERSION; + size_t cv_size = sizeof(cache_version); + ++#ifdef __OpenBSD__ ++ /* default to no disk shader cache to avoid pledge violations in chromium */ ++ return NULL; ++#endif ++ + if (!disk_cache_enabled()) + return NULL; + |