Add render/allocator/ and include/render/allocator/ to hold everything allocator-related.master
parent
b37731cdbb
commit
3ce2ea9e16
@ -1,9 +1,8 @@
|
|||||||
#ifndef RENDER_ALLOCATOR
|
#ifndef RENDER_ALLOCATOR_ALLOCATOR_H
|
||||||
#define RENDER_ALLOCATOR
|
#define RENDER_ALLOCATOR_ALLOCATOR_H
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <wayland-server-core.h>
|
#include <wayland-server-core.h>
|
||||||
#include <wlr/render/dmabuf.h>
|
|
||||||
#include <wlr/render/drm_format_set.h>
|
#include <wlr/render/drm_format_set.h>
|
||||||
|
|
||||||
struct wlr_allocator;
|
struct wlr_allocator;
|
@ -1,9 +1,9 @@
|
|||||||
#ifndef RENDER_DRM_DUMB_ALLOCATOR_H
|
#ifndef RENDER_ALLOCATOR_DRM_DUMB_H
|
||||||
#define RENDER_DRM_DUMB_ALLOCATOR_H
|
#define RENDER_ALLOCATOR_DRM_DUMB_H
|
||||||
|
|
||||||
#include "render/allocator.h"
|
|
||||||
|
|
||||||
|
#include <wlr/render/dmabuf.h>
|
||||||
#include <wlr/types/wlr_buffer.h>
|
#include <wlr/types/wlr_buffer.h>
|
||||||
|
#include "render/allocator/allocator.h"
|
||||||
|
|
||||||
struct wlr_drm_dumb_buffer {
|
struct wlr_drm_dumb_buffer {
|
||||||
struct wlr_buffer base;
|
struct wlr_buffer base;
|
@ -1,9 +1,10 @@
|
|||||||
#ifndef RENDER_GBM_ALLOCATOR_H
|
#ifndef RENDER_ALLOCATOR_GBM_H
|
||||||
#define RENDER_GBM_ALLOCATOR_H
|
#define RENDER_ALLOCATOR_GBM_H
|
||||||
|
|
||||||
#include <gbm.h>
|
#include <gbm.h>
|
||||||
|
#include <wlr/render/dmabuf.h>
|
||||||
#include <wlr/types/wlr_buffer.h>
|
#include <wlr/types/wlr_buffer.h>
|
||||||
#include "render/allocator.h"
|
#include "render/allocator/allocator.h"
|
||||||
|
|
||||||
struct wlr_gbm_buffer {
|
struct wlr_gbm_buffer {
|
||||||
struct wlr_buffer base;
|
struct wlr_buffer base;
|
@ -1,8 +1,8 @@
|
|||||||
#ifndef RENDER_SHM_ALLOCATOR_H
|
#ifndef RENDER_ALLOCATOR_SHM_H
|
||||||
#define RENDER_SHM_ALLOCATOR_H
|
#define RENDER_ALLOCATOR_SHM_H
|
||||||
|
|
||||||
#include <wlr/types/wlr_buffer.h>
|
#include <wlr/types/wlr_buffer.h>
|
||||||
#include "render/allocator.h"
|
#include "render/allocator/allocator.h"
|
||||||
|
|
||||||
struct wlr_shm_buffer {
|
struct wlr_shm_buffer {
|
||||||
struct wlr_buffer base;
|
struct wlr_buffer base;
|
@ -0,0 +1,9 @@
|
|||||||
|
wlr_files += files(
|
||||||
|
'allocator.c',
|
||||||
|
'gbm.c',
|
||||||
|
'shm.c',
|
||||||
|
'drm_dumb.c',
|
||||||
|
)
|
||||||
|
|
||||||
|
has = cc.has_function('gbm_bo_get_fd_for_plane', dependencies: [gbm])
|
||||||
|
add_project_arguments('-DHAS_GBM_BO_GET_FD_FOR_PLANE=@0@'.format(has.to_int()), language: 'c')
|
Loading…
Reference in new issue