From c8e4e1a919a447094802664698257a599ec80526 Mon Sep 17 00:00:00 2001 From: Gurchetan Singh Date: Mon, 5 Oct 2020 14:57:42 -0700 Subject: [PATCH] vrend: disable GL_EXT_external_object_fd path on non-Intel boards When running some traces, we see the following on AMD. file:dmabuf fault:ttm_bo_vm_fault mmap:dma_buf_mmap_internal readpage:0x0 Disable for now. Reviewed-By: David Riley --- src/vrend_renderer.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c index ffe6d58..e6baa8f 100644 --- a/src/vrend_renderer.c +++ b/src/vrend_renderer.c @@ -10096,8 +10096,10 @@ static void vrend_renderer_fill_caps_v2(int gl_ver, int gles_ver, union virgl_c } #ifdef ENABLE_MINIGBM_ALLOCATION - if (has_feature(feat_memory_object) && has_feature(feat_memory_object_fd)) - caps->v2.capability_bits |= VIRGL_CAP_ARB_BUFFER_STORAGE; + if (has_feature(feat_memory_object) && has_feature(feat_memory_object_fd)) { + if (!strcmp(gbm_device_get_backend_name(gbm->device), "i915")) + caps->v2.capability_bits |= VIRGL_CAP_ARB_BUFFER_STORAGE; + } #endif if (has_feature(feat_blend_equation_advanced))