fb: Fix mapped gbm buffer stride

dmabuf-import
Andri Yngvason 2021-09-20 21:57:56 +00:00
parent 26ff812ea6
commit 10c0b9131c
1 changed files with 1 additions and 1 deletions

View File

@ -222,7 +222,7 @@ int nvnc_fb_map(struct nvnc_fb* fb)
uint32_t stride = 0;
fb->addr = gbm_bo_map(fb->bo, 0, 0, fb->width, fb->height,
GBM_BO_TRANSFER_READ, &stride, &fb->bo_map_handle);
fb->stride = stride;
fb->stride = stride / nvnc_fb_get_pixel_size(fb);
if (fb->addr)
return 0;