mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-22 06:59:44 -05:00
render: drop wlr_renderer_get_dmabuf_texture_formats()
wlr_renderer_get_texture_formats() with WLR_BUFFER_CAP_DMABUF is the replacement.
This commit is contained in:
parent
85c1eda721
commit
0686666cf5
6 changed files with 6 additions and 16 deletions
|
|
@ -62,11 +62,6 @@ const struct wlr_drm_format_set *wlr_renderer_get_texture_formats(
|
|||
return r->impl->get_texture_formats(r, buffer_caps);
|
||||
}
|
||||
|
||||
const struct wlr_drm_format_set *wlr_renderer_get_dmabuf_texture_formats(
|
||||
struct wlr_renderer *r) {
|
||||
return wlr_renderer_get_texture_formats(r, WLR_BUFFER_CAP_DMABUF);
|
||||
}
|
||||
|
||||
const struct wlr_drm_format_set *wlr_renderer_get_render_formats(
|
||||
struct wlr_renderer *r) {
|
||||
if (!r->impl->get_render_formats) {
|
||||
|
|
@ -90,7 +85,7 @@ bool wlr_renderer_init_wl_display(struct wlr_renderer *r,
|
|||
return false;
|
||||
}
|
||||
|
||||
if (wlr_renderer_get_dmabuf_texture_formats(r) != NULL &&
|
||||
if (wlr_renderer_get_texture_formats(r, WLR_BUFFER_CAP_DMABUF) != NULL &&
|
||||
wlr_renderer_get_drm_fd(r) >= 0 &&
|
||||
wlr_linux_dmabuf_v1_create_with_renderer(wl_display, 4, r) == NULL) {
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue