mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-22 06:47:12 -04:00
Merge branch 'github/fork/emersion/renderer-get-texture-formats' into 'master'
render: unify texture format enumeration See merge request wlroots/wlroots!3112
This commit is contained in:
commit
43b4f9e446
12 changed files with 55 additions and 74 deletions
|
|
@ -161,7 +161,7 @@ static void drm_bind(struct wl_client *client, void *data,
|
|||
wl_drm_send_capabilities(resource, WL_DRM_CAPABILITY_PRIME);
|
||||
|
||||
const struct wlr_drm_format_set *formats =
|
||||
wlr_renderer_get_dmabuf_texture_formats(drm->renderer);
|
||||
wlr_renderer_get_texture_formats(drm->renderer, WLR_BUFFER_CAP_DMABUF);
|
||||
if (formats == NULL) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -880,8 +880,8 @@ static void linux_dmabuf_send_modifiers(struct wl_resource *resource,
|
|||
|
||||
static void linux_dmabuf_send_formats(struct wlr_linux_dmabuf_v1 *linux_dmabuf,
|
||||
struct wl_resource *resource) {
|
||||
const struct wlr_drm_format_set *formats =
|
||||
wlr_renderer_get_dmabuf_texture_formats(linux_dmabuf->renderer);
|
||||
const struct wlr_drm_format_set *formats = wlr_renderer_get_texture_formats(
|
||||
linux_dmabuf->renderer, WLR_BUFFER_CAP_DMABUF);
|
||||
if (formats == NULL) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue