render/gles2: replace wlr_gles2_texture.wl_format with drm_format

This commit is contained in:
Simon Ser 2021-02-16 19:17:18 +01:00
parent fab396f149
commit 549435aee5
4 changed files with 13 additions and 12 deletions

View file

@ -107,11 +107,10 @@ struct wlr_gles2_texture {
bool has_alpha;
// Only affects target == GL_TEXTURE_2D
enum wl_shm_format wl_format; // used to interpret upload data
uint32_t drm_format; // used to interpret upload data
};
const struct wlr_gles2_pixel_format *get_gles2_format_from_wl(
enum wl_shm_format fmt);
const struct wlr_gles2_pixel_format *get_gles2_format_from_drm(uint32_t fmt);
const struct wlr_gles2_pixel_format *get_gles2_format_from_gl(
GLint gl_format, GLint gl_type, bool alpha);
const enum wl_shm_format *get_gles2_wl_formats(size_t *len);