mesa-drm/omap
Andrew Davis b71953a199 omap: fix omap_bo_size for tiled buffers
The buffer size is calculated using pixels, not bytes as it should. The
result is often correct, though, as the stride is aligned to page size,
but there are still many cases where the size ends up being wrong.

Fix this by not calculating the size at all, as in that case
DRM_OMAP_GEM_INFO ioctl is used to get the correct size from the kernel.
This is better in any case as then the userspace library doesn't need to
know how the tiled buffers need to be aligned.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Andrew Davis <afd@ti.com>
2025-12-04 09:39:10 +00:00
..
Android.bp Convert to Android.bp 2024-07-29 14:47:30 -04:00
Android.sources.bp Convert to Android.bp 2024-07-29 14:47:30 -04:00
libdrm_omap.pc.in omap: add omapdrm support 2012-03-28 23:00:14 +02:00
meson.build meson: Do not check for meson version >=0.54 2025-05-20 11:05:27 +02:00
omap-symbols.txt omap: convert to new symbols check 2019-11-11 22:57:14 +00:00
omap_drm.c omap: fix omap_bo_size for tiled buffers 2025-12-04 09:39:10 +00:00
omap_drm.h omap: include omap_drm.h independently 2012-08-23 14:21:01 -05:00
omap_drmif.h omap: add refcnting and handle tracking 2012-07-13 16:18:25 -05:00