drm: fix missing flag in drmModeAddFB2WithModifiers call

That's a nice footgun right here.
This commit is contained in:
Simon Ser 2021-03-05 16:04:45 +01:00
parent 7633401874
commit 36c8b983ee

View file

@ -739,7 +739,7 @@ uint32_t drm_fbid_from_dmabuf( struct drm_t *drm, struct wlr_buffer *buf, struct
return 0; return 0;
} }
if ( drmModeAddFB2WithModifiers( drm->fd, dma_buf->width, dma_buf->height, dma_buf->format, handles, dma_buf->stride, dma_buf->offset, modifiers, &fb_id, 0 ) != 0 ) if ( drmModeAddFB2WithModifiers( drm->fd, dma_buf->width, dma_buf->height, dma_buf->format, handles, dma_buf->stride, dma_buf->offset, modifiers, &fb_id, DRM_MODE_FB_MODIFIERS ) != 0 )
{ {
perror("drmModeAddFB2WithModifiers failed"); perror("drmModeAddFB2WithModifiers failed");
return 0; return 0;