vrend: fix build with gbm allocation

It should be VIRGL_RENDERER_MAP_*, not VIRGL_MAP_*.

Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
macos/master
Gurchetan Singh 4 years ago committed by Lepton Wu
parent a861e9dff4
commit f292af8983
  1. 4
      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; gr->storage_bits |= VREND_STORAGE_GBM_BUFFER;
/* This is true so far, but maybe gbm_bo_get_caching_type is needed in the future. */ /* 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")) 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 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)) if (!virgl_gbm_gpu_import_required(gr->base.bind))
return; return;

Loading…
Cancel
Save