From f292af8983b68502b238066ae07509ffa38fe2d7 Mon Sep 17 00:00:00 2001 From: Gurchetan Singh Date: Fri, 7 Aug 2020 12:17:12 -0700 Subject: [PATCH] vrend: fix build with gbm allocation It should be VIRGL_RENDERER_MAP_*, not VIRGL_MAP_*. Reviewed-by: Chia-I Wu --- src/vrend_renderer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c index 89ef2a2..ab29f10 100644 --- a/src/vrend_renderer.c +++ b/src/vrend_renderer.c @@ -6596,9 +6596,9 @@ static void vrend_resource_gbm_init(struct vrend_resource *gr, uint32_t format) gr->storage_bits |= VREND_STORAGE_GBM_BUFFER; /* This is true so far, but maybe gbm_bo_get_caching_type is needed in the future. */ if (!strcmp(gbm_device_get_backend_name(gbm->device), "i915")) - gr->map_info = VIRGL_MAP_CACHE_CACHED; + gr->map_info = VIRGL_RENDERER_MAP_CACHE_CACHED; else - gr->map_info = VIRGL_MAP_CACHE_WC; + gr->map_info = VIRGL_RENDERER_MAP_CACHE_WC; if (!virgl_gbm_gpu_import_required(gr->base.bind)) return;