mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-09 13:29:46 -05:00
render/pixel_format: make wlr_pixel_format_info part of the public API
This commit is contained in:
parent
4a4c8ca320
commit
ae43cf93dd
16 changed files with 67 additions and 59 deletions
|
|
@ -12,9 +12,9 @@
|
|||
#include <xf86drmMode.h>
|
||||
#include <wlr/backend.h>
|
||||
#include <wlr/backend/session.h>
|
||||
#include <wlr/render/pixel_format.h>
|
||||
|
||||
#include "render/allocator/drm_dumb.h"
|
||||
#include "render/pixel_format.h"
|
||||
|
||||
static const struct wlr_buffer_impl buffer_impl;
|
||||
|
||||
|
|
@ -52,7 +52,7 @@ static struct wlr_drm_dumb_buffer *create_buffer(
|
|||
wl_list_insert(&alloc->buffers, &buffer->link);
|
||||
|
||||
const struct wlr_pixel_format_info *info =
|
||||
drm_get_pixel_format_info(format->format);
|
||||
wlr_pixel_format_info_from_drm(format->format);
|
||||
if (info == NULL) {
|
||||
wlr_log(WLR_ERROR, "DRM format 0x%"PRIX32" not supported",
|
||||
format->format);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue