Carlos Eduardo Gallo Filho
451921e7bb
drm: Replace drm_framebuffer plane size functions with its equivalents
...
The functions drm_framebuffer_plane_{width,height} and
fb_plane_{width,height} do exactly the same job of its
equivalents drm_format_info_plane_{width,height} from drm_fourcc.
The only reason to have these functions on drm_framebuffer
would be if they would added a abstraction layer to call it just
passing a drm_framebuffer pointer and the desired plane index,
which is not the case, where these functions actually implements
just part of it. In the actual implementation, every call to both
drm_framebuffer_plane_{width,height} and fb_plane_{width,height} should
pass some drm_framebuffer attribute, which is the same as calling the
drm_format_info_plane_{width,height} functions.
The drm_format_info_pane_{width,height} functions are much more
consistent in both its implementation and its location on code. The
kind of calculation that they do is intrinsically derivated from the
drm_format_info struct and has not to do with drm_framebuffer, except
by the potential motivation described above, which is still not a good
justification to have drm_framebuffer functions to calculate it.
So, replace each drm_framebuffer_plane_{width,height} and
fb_plane_{width,height} call to drm_format_info_plane_{width,height}
and remove them.
Signed-off-by: Carlos Eduardo Gallo Filho <gcarlos@disroot.org >
Reviewed-by: André Almeida <andrealmeid@igalia.com >
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de >
Link: https://patchwork.freedesktop.org/patch/msgid/20230926141519.9315-3-gcarlos@disroot.org
2023-10-12 09:51:29 +02:00
..
2022-11-23 16:05:33 +02:00
2022-11-23 16:05:54 +02:00
2023-09-13 17:55:11 +03:00
2022-11-03 16:20:53 +02:00
2023-09-28 12:52:26 +03:00
2023-05-05 19:52:35 +03:00
2023-08-25 13:12:10 +03:00
2023-03-28 10:54:08 +03:00
2023-08-31 18:41:34 +03:00
2023-04-19 15:55:05 +03:00
2023-04-20 10:16:51 +03:00
2022-11-11 12:44:49 +02:00
2023-09-20 20:16:09 +03:00
2023-07-06 00:15:07 +03:00
2022-09-03 12:16:53 +02:00
2022-09-03 12:16:53 +02:00
2023-09-21 08:18:06 -07:00
2023-03-17 15:24:27 +02:00
2023-09-20 22:32:55 +03:00
2023-04-20 15:14:17 +03:00
2022-11-11 12:44:49 +02:00
2023-08-22 16:41:45 +03:00
2023-08-22 16:41:45 +03:00
2022-12-07 19:24:14 +02:00
2023-02-24 15:02:37 -05:00
2021-08-26 10:40:41 +03:00
2023-09-21 22:47:40 +03:00
2023-09-12 08:35:32 -04:00
2023-06-07 11:24:40 -07:00
2023-06-07 11:24:40 -07:00
2023-09-28 12:52:17 +03:00
2023-04-14 10:05:28 +03:00
2023-08-25 13:12:10 +03:00
2023-09-27 18:49:06 +03:00
2023-09-27 18:40:58 +03:00
2023-02-27 09:14:57 -08:00
2023-09-13 17:10:34 +03:00
2023-09-15 14:47:09 +03:00
2023-09-15 14:47:09 +03:00
2023-09-28 12:52:26 +03:00
2022-02-02 07:59:54 -08:00
2023-09-13 17:55:11 +03:00
2023-04-03 12:41:13 +05:30
2023-09-28 12:52:22 +03:00
2023-09-20 22:27:31 +03:00
2023-05-24 09:25:36 -07:00
2023-09-18 10:04:43 -07:00
2023-09-18 10:04:43 -07:00
2023-09-26 12:52:38 +03:00
2023-08-07 15:37:09 -07:00
2021-10-14 18:45:59 +03:00
2023-09-15 14:48:49 +03:00
2023-07-06 00:15:07 +03:00
2023-01-18 11:06:07 +02:00
2023-10-11 13:20:22 +03:00
2023-10-11 09:50:59 +02:00
2023-03-21 12:24:13 +02:00
2023-09-21 07:39:47 -07:00
2023-09-20 22:32:55 +03:00
2023-09-22 07:53:17 -07:00
2023-04-17 11:18:04 +03:00
2023-09-21 08:18:06 -07:00
2023-08-10 15:14:58 +03:00
2023-01-25 13:59:12 +02:00
2023-09-21 08:18:07 -07:00
2022-04-20 20:41:57 +03:00
2023-09-21 08:18:07 -07:00
2023-09-21 08:18:07 -07:00
2023-09-21 08:18:07 -07:00
2023-08-21 09:07:20 -07:00
2023-05-24 08:34:42 -07:00
2023-04-17 11:18:00 +03:00
2023-04-17 11:17:51 +03:00
2023-03-06 19:51:32 +02:00
2023-03-06 19:51:32 +02:00
2021-12-09 11:21:46 +02:00
2023-04-19 15:55:05 +03:00
2023-09-28 12:52:22 +03:00
2023-09-08 15:45:23 -07:00
2023-09-08 15:45:23 -07:00
2023-09-28 12:52:28 +03:00
2023-09-28 12:52:17 +03:00
2022-10-26 15:51:18 +03:00
2023-04-20 19:43:02 -07:00
2023-04-20 19:43:02 -07:00
2023-01-20 23:37:39 +02:00
2023-08-21 17:13:11 -07:00
2023-03-06 19:09:47 +02:00
2023-02-16 22:10:02 +02:00
2023-09-21 08:18:07 -07:00
2023-09-26 12:35:09 +03:00
2023-06-16 17:55:56 +03:00
2023-09-01 13:17:44 +05:30
2021-04-28 11:07:01 +03:00
2023-09-13 17:55:11 +03:00
2023-03-21 16:17:20 +02:00
2023-10-04 13:55:19 +10:00
2023-02-13 21:34:58 +02:00
2023-10-11 13:20:22 +03:00
2023-09-28 12:52:07 +03:00
2023-02-16 18:10:05 +02:00
2022-11-03 16:20:53 +02:00
2023-08-30 13:34:34 -07:00
2023-08-18 10:18:59 -07:00
2023-08-24 15:24:12 +03:00
2022-04-25 21:15:12 +03:00
2023-09-15 16:36:54 +03:00
2023-03-24 23:56:35 +02:00
2023-08-31 18:41:34 +03:00
2022-10-07 20:04:38 +03:00
2023-09-27 18:36:19 +03:00
2023-09-27 18:49:06 +03:00
2023-09-27 18:49:06 +03:00
2023-02-16 12:01:33 +02:00
2023-06-13 19:03:14 +03:00
2023-05-03 08:31:24 +03:00
2023-06-13 19:05:34 +03:00
2023-06-13 19:05:34 +03:00
2023-01-25 13:59:12 +02:00
2022-11-23 16:07:19 +02:00
2023-09-15 14:47:47 +03:00
2023-09-15 16:36:54 +03:00
2022-09-08 10:24:17 +01:00
2023-10-12 09:51:29 +02:00
2023-03-24 23:56:35 +02:00
2023-09-15 16:36:54 +03:00
2023-09-21 07:39:46 -07:00
2023-08-07 13:47:30 +10:00
2023-02-10 16:16:21 +01:00
2023-03-30 19:30:43 +03:00
2023-09-28 12:52:28 +03:00
2023-09-28 12:52:28 +03:00
2023-05-16 10:31:27 +03:00
2023-02-23 16:28:03 +02:00
2023-09-29 10:32:34 +03:00
2023-09-04 12:04:07 +03:00
2023-06-07 11:30:55 -07:00
2023-06-07 11:30:55 -07:00
2022-08-31 18:09:20 +03:00
2023-09-21 08:18:06 -07:00
2023-05-11 18:43:44 +03:00
2023-08-10 14:14:11 +02:00
2023-06-14 16:42:28 +05:30
2022-11-11 12:44:49 +02:00
2023-09-01 13:17:44 +05:30
2023-05-31 10:22:12 +05:30
2023-09-15 14:50:04 +03:00
2023-05-05 19:48:36 +03:00
2023-09-21 08:18:06 -07:00
2023-05-16 10:31:22 +03:00
2023-08-23 17:15:41 -04:00
2022-09-19 12:32:49 +03:00
2022-11-17 16:12:56 +02:00
2023-05-24 08:34:42 -07:00
2022-11-17 16:12:56 +02:00
2023-09-28 12:52:26 +03:00
2023-09-28 12:52:22 +03:00
2023-04-20 14:06:44 +03:00
2023-04-20 14:06:44 +03:00
2023-02-23 16:27:36 +02:00
2023-02-23 16:27:36 +02:00
2023-09-15 14:47:09 +03:00
2023-01-31 11:24:06 +02:00
2023-09-28 12:52:26 +03:00
2022-02-02 07:59:54 -08:00
2023-01-27 08:52:32 -08:00
2023-05-16 16:53:49 +03:00
2023-05-16 16:53:49 +03:00
2023-06-07 11:30:55 -07:00
2022-06-20 19:28:47 +03:00
2023-05-15 12:13:54 +03:00
2022-06-17 11:54:56 +03:00
2023-06-10 06:33:11 +03:00
2023-03-16 15:35:09 +02:00
2023-08-31 18:41:34 +03:00
2023-09-20 22:30:08 +03:00
2023-01-26 12:27:33 +02:00
2023-05-15 12:13:54 +03:00
2022-03-04 18:24:19 +02:00
2023-08-07 15:36:59 -07:00
2022-09-08 14:20:54 +03:00
2023-04-13 14:22:42 +03:00
2023-08-31 18:41:34 +03:00
2021-10-12 12:58:33 +03:00
2023-08-21 17:12:45 -07:00
2023-06-07 11:30:55 -07:00
2023-03-30 19:30:25 +03:00
2023-06-10 06:33:11 +03:00
2022-12-09 19:02:50 +02:00
2023-07-04 10:40:21 +01:00
2023-09-06 09:00:06 +03:00
2023-03-20 11:50:21 +02:00
2023-07-12 14:42:43 +05:30
2023-04-03 12:41:11 +05:30
2023-02-23 13:58:14 +02:00
2022-08-31 17:21:47 +03:00
2023-08-24 15:20:46 +03:00
2023-09-28 12:52:26 +03:00
2022-02-02 07:59:54 -08:00
2022-11-11 12:44:49 +02:00
2023-05-15 12:13:54 +03:00
2022-06-17 11:54:54 +03:00
2023-04-13 14:22:42 +03:00
2023-03-17 15:24:27 +02:00
2023-08-31 18:41:34 +03:00
2023-04-20 15:14:00 +03:00
2023-09-21 08:18:06 -07:00
2023-09-05 19:43:22 -07:00
2023-03-30 19:30:34 +03:00
2023-05-16 10:31:27 +03:00
2023-09-27 18:47:08 +03:00
2023-09-27 18:47:08 +03:00
2022-09-13 11:43:29 +03:00
2023-09-11 18:35:16 +03:00
2023-09-14 15:00:19 +05:30
2023-07-10 14:20:40 +03:00
2023-01-25 13:52:36 +02:00
2023-09-20 22:32:55 +03:00
2023-09-20 22:30:08 +03:00
2023-03-06 18:25:43 +02:00
2023-04-03 16:01:02 +03:00
2023-02-16 16:46:35 +02:00
2023-05-04 16:01:44 +03:00
2023-04-20 15:14:33 +03:00
2023-10-04 13:55:19 +10:00
2022-11-03 16:20:53 +02:00
2023-04-04 10:05:38 +03:00
2023-09-28 12:52:17 +03:00
2023-09-27 18:46:22 +03:00
2022-02-21 12:06:10 +02:00
2023-05-15 12:13:54 +03:00
2021-11-23 13:11:36 +02:00
2022-11-11 12:44:49 +02:00
2023-06-13 19:08:29 +03:00
2021-11-23 13:11:39 +02:00