vrend: Disable transfer in both directions with minigbm

Currently the read_from_host code path is not implemented
for this configuration.

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Corentin Noël <corentin.noel@collabora.com>
macos/master
Gert Wollny 3 years ago
parent 66f93d3e61
commit eee4f5658f
  1. 2
      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()) if (vrend_winsys_different_gpu())
caps->v2.capability_bits_v2 |= VIRGL_CAP_V2_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 use capability bits (not a version of protocol), because
// we disable this on client side if virglrenderer is used under // we disable this on client side if virglrenderer is used under
// vtest. vtest can't support this, because size of resource // 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 // size of drm resource (bo) is not passed to virglrenderer and
// we can pass "1" as size on drm path, but not on vtest. // 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; caps->v2.capability_bits_v2 |= VIRGL_CAP_V2_COPY_TRANSFER_BOTH_DIRECTIONS;
#endif
if (has_feature(feat_anisotropic_filter)) { if (has_feature(feat_anisotropic_filter)) {
float max_aniso; float max_aniso;

Loading…
Cancel
Save