diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c index a105d18..a5f8549 100644 --- a/src/vrend_renderer.c +++ b/src/vrend_renderer.c @@ -7179,6 +7179,10 @@ static void vrend_resource_gbm_init(struct vrend_resource *gr, uint32_t format) else gr->map_info = VIRGL_RENDERER_MAP_CACHE_WC; + int num_planes = gbm_bo_get_plane_count(bo); + for (int plane = 0; plane < num_planes; plane++) + gr->size += gbm_bo_get_plane_size(bo, plane); + if (!virgl_gbm_gpu_import_required(gr->base.bind)) return;