backend/drm: parse TILE property

This commit is contained in:
EBADBEEF 2023-05-30 19:42:51 -07:00
parent cbf921ccbb
commit 2a697512d7
6 changed files with 54 additions and 0 deletions

View file

@ -10,6 +10,7 @@
#include <wlr/backend/session.h>
#include <wlr/render/drm_format_set.h>
#include <wlr/types/wlr_output_layer.h>
#include <wlr/types/wlr_output_group.h>
#include <xf86drmMode.h>
#include "backend/drm/iface.h"
#include "backend/drm/properties.h"
@ -219,6 +220,8 @@ struct wlr_drm_connector {
uint32_t hdr_output_metadata;
int32_t refresh;
struct wlr_output_group_tile_info tile_info;
};
struct wlr_drm_backend *get_drm_backend_from_backend(

View file

@ -22,6 +22,7 @@ struct wlr_drm_connector_props {
uint32_t panel_orientation; // not guaranteed to exist
uint32_t content_type; // not guaranteed to exist
uint32_t max_bpc; // not guaranteed to exist
uint32_t tile; // not guaranteed to exist
// atomic-modesetting only

View file

@ -14,6 +14,7 @@ enum wlr_output_mode_aspect_ratio get_picture_aspect_ratio(const drmModeModeInfo
const char *get_pnp_manufacturer(const char code[static 3]);
// Populates the make/model/phys_{width,height} of output from the edid data
void parse_edid(struct wlr_drm_connector *conn, size_t len, const uint8_t *data);
void parse_tile(struct wlr_drm_connector *conn, size_t len, const uint8_t *data);
const char *drm_connector_status_str(drmModeConnection status);
void generate_cvt_mode(drmModeModeInfo *mode, int hdisplay, int vdisplay,
float vrefresh);