From eee4f5658f39f7e0760a49d96a289e74dea500c8 Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Tue, 18 Jan 2022 11:14:24 +0100 Subject: [PATCH] vrend: Disable transfer in both directions with minigbm MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently the read_from_host code path is not implemented for this configuration. Signed-off-by: Gert Wollny Reviewed-by: Corentin Noël --- src/vrend_renderer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c index 7e1c85b..75617c3 100644 --- a/src/vrend_renderer.c +++ b/src/vrend_renderer.c @@ -10983,6 +10983,7 @@ static void vrend_renderer_fill_caps_v2(int gl_ver, int gles_ver, union virgl_c if (vrend_winsys_different_gpu()) caps->v2.capability_bits_v2 |= VIRGL_CAP_V2_DIFFERENT_GPU; +#ifndef ENABLE_MINIGBM_ALLOCATION // we use capability bits (not a version of protocol), because // we disable this on client side if virglrenderer is used under // vtest. vtest can't support this, because size of resource @@ -10990,6 +10991,7 @@ static void vrend_renderer_fill_caps_v2(int gl_ver, int gles_ver, union virgl_c // size of drm resource (bo) is not passed to virglrenderer and // we can pass "1" as size on drm path, but not on vtest. caps->v2.capability_bits_v2 |= VIRGL_CAP_V2_COPY_TRANSFER_BOTH_DIRECTIONS; +#endif if (has_feature(feat_anisotropic_filter)) { float max_aniso;