| @@ -212,7 +212,7 @@ static int spawn_cursor(struct vo_wayland_state *wl); · 211 unmodified lines |
| 212 | 212 | static void add_feedback(struct vo_wayland_feedback_pool *fback_pool, |
| 213 | 213 | struct wp_presentation_feedback *fback); |
| 214 | 214 | static void apply_keepaspect(struct vo_wayland_state *wl, int *width, int *height); |
| 215 | | −static void get_gpu_drm_formats(struct vo_wayland_state *wl); |
| 215 | +static void get_planar_drm_formats(struct vo_wayland_state *wl); |
| 216 | 216 | static void get_shape_device(struct vo_wayland_state *wl, struct vo_wayland_seat *s); |
| 217 | 217 | static void guess_focus(struct vo_wayland_state *wl); |
| 218 | 218 | static void handle_key_input(struct vo_wayland_seat *s, uint32_t key, uint32_t state, bool no_emit); |
| @@ -1406,7 +1406,7 @@ static void tranche_target_device(void *data, · 1187 unmodified lines |
| 1406 | 1406 | memcpy(&wl->target_device_id, id, sizeof(dev_t)); |
| 1407 | 1407 | break; |
| 1408 | 1408 | } |
| 1409 | | − get_gpu_drm_formats(wl); |
| 1409 | + get_planar_drm_formats(wl); |
| 1410 | 1410 | } |
| 1411 | 1411 | } |
| 1412 | 1412 | |
| @@ -1828,7 +1828,7 @@ static char **get_displays_spanned(struct vo_wayland_state *wl) · 415 unmodified lines |
| 1828 | 1828 | return names; |
| 1829 | 1829 | } |
| 1830 | 1830 | |
| 1831 | | −static void get_gpu_drm_formats(struct vo_wayland_state *wl) |
| 1831 | +static void get_planar_drm_formats(struct vo_wayland_state *wl) |
| 1832 | 1832 | { |
| 1833 | 1833 | #if HAVE_DRM |
| 1834 | 1834 | drmDevice *device = NULL; |
| @@ -1913,15 +1913,15 @@ static void get_gpu_drm_formats(struct vo_wayland_state *wl) · 78 unmodified lines |
| 1913 | 1913 | } |
| 1914 | 1914 | |
| 1915 | 1915 | plane = drmModeGetPlane(fd, res->planes[index]); |
| 1916 | | − wl->num_gpu_formats = plane->count_formats; |
| 1916 | + wl->num_planar_formats = plane->count_formats; |
| 1917 | 1917 | |
| 1918 | | − if (wl->gpu_formats) |
| 1919 | | − talloc_free(wl->gpu_formats); |
| 1918 | + if (wl->planar_formats) |
| 1919 | + talloc_free(wl->planar_formats); |
| 1920 | 1920 | |
| 1921 | | − wl->gpu_formats = talloc_zero_array(wl, int, wl->num_gpu_formats); |
| 1922 | | − for (int i = 0; i < wl->num_gpu_formats; ++i) { |
| 1921 | + wl->planar_formats = talloc_zero_array(wl, int, wl->num_planar_formats); |
| 1922 | + for (int i = 0; i < wl->num_planar_formats; ++i) { |
| 1923 | 1923 | MP_DBG(wl, "DRM primary plane supports drm format: %s\n", mp_tag_str(plane->formats[i])); |
| 1924 | | − wl->gpu_formats[i] = plane->formats[i]; |
| 1924 | + wl->planar_formats[i] = plane->formats[i]; |
| 1925 | 1925 | } |
| 1926 | 1926 | |
| 1927 | 1927 | done: |