diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-05-30 08:39:45 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-30 08:39:45 -0400 |
commit | 5d8e38702175fcc7cb991effeadca1f5a9308e6d (patch) | |
tree | 9cbc288ea690b5a038ac0ad7cf198c04d992c89f /backend | |
parent | 8c9d0f15ce416029256ebb437c99b93f34edba18 (diff) | |
parent | 28020ff57728d07ae0715fc15696b8fe40337b3d (diff) |
Merge pull request #1015 from emersion/dmabuf-single-modifier
Only allow one modifier per DMA-BUF, split attributes struct in render/
Diffstat (limited to 'backend')
-rw-r--r-- | backend/drm/renderer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/drm/renderer.c b/backend/drm/renderer.c index d5bcef2b..72a0254b 100644 --- a/backend/drm/renderer.c +++ b/backend/drm/renderer.c @@ -186,15 +186,15 @@ static struct wlr_texture *get_tex_for_bo(struct wlr_drm_renderer *renderer, return NULL; } - struct wlr_dmabuf_buffer_attribs attribs = { + struct wlr_dmabuf_attributes attribs = { .n_planes = 1, .width = gbm_bo_get_width(bo), .height = gbm_bo_get_height(bo), .format = gbm_bo_get_format(bo), + .modifier = DRM_FORMAT_MOD_LINEAR, }; attribs.offset[0] = 0; attribs.stride[0] = gbm_bo_get_stride_for_plane(bo, 0); - attribs.modifier[0] = DRM_FORMAT_MOD_LINEAR; attribs.fd[0] = gbm_bo_get_fd(bo); tex->tex = wlr_texture_from_dmabuf(renderer->wlr_rend, &attribs); |