aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-05-29 22:38:00 +0100
committeremersion <contact@emersion.fr>2018-05-30 09:29:12 +0100
commit28020ff57728d07ae0715fc15696b8fe40337b3d (patch)
tree9cbc288ea690b5a038ac0ad7cf198c04d992c89f /backend
parent8c9d0f15ce416029256ebb437c99b93f34edba18 (diff)
Only allow one modifier per DMA-BUF, split attributes struct in render/
Diffstat (limited to 'backend')
-rw-r--r--backend/drm/renderer.c4
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);