weston_buffer: Add pixel format and modifier info

Promote these to weston_buffer rather than burying them in the renderers
and backends.

Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
Daniel Stone
2022-01-14 01:55:50 +00:00
parent fef8bb275c
commit 6dcf3eac1f
3 changed files with 56 additions and 1 deletions
+3
View File
@@ -1193,6 +1193,9 @@ struct weston_buffer {
uint32_t busy_count;
int y_inverted;
void *backend_private;
const struct pixel_format_info *pixel_format;
uint64_t format_modifier;
};
struct weston_buffer_reference {