From a6a2d6dd288c56de9747e1cb0fbe90ae81ec5f51 Mon Sep 17 00:00:00 2001 From: David Stevens Date: Tue, 19 May 2020 17:59:35 +0900 Subject: [PATCH] virgl/gbm: use minigbm gbm_bo_map2 function Minigbm's gbm_bo_map signature has diverged from gbm. Update to minigbm signature, since virglrenderer now explicitly targets minigbm. Reviewed-by: Gert Wollny --- src/virgl_gbm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/virgl_gbm.c b/src/virgl_gbm.c index c2746f7..7a0499e 100644 --- a/src/virgl_gbm.c +++ b/src/virgl_gbm.c @@ -326,7 +326,7 @@ int virgl_gbm_transfer(struct gbm_bo *bo, uint32_t direction, const struct iovec host_map_stride0 = 0; uint32_t map_flags = (direction == VIRGL_TRANSFER_TO_HOST) ? GBM_BO_TRANSFER_WRITE : GBM_BO_TRANSFER_READ; - void *addr = gbm_bo_map(bo, 0, 0, width, height, map_flags, &host_map_stride0, &map_data); + void *addr = gbm_bo_map2(bo, 0, 0, width, height, map_flags, &host_map_stride0, &map_data, 0); if (!addr) return -1;