mesa/src/gbm
Daniel Stone a33bd78a54 gbm: Support fixed-rate compression allocation
Add the fixed-rate compression ratios exposed by GL and Vulkan to the
flags for gbm_bo and gbm_surface creation, and intersect these with the
list of supplied modifiers to add another filter.

Although gbm_surface could support this by the EGLSurface flags in
EGL_EXT_surface_compression, gbm_bo cannot: it allocates a buffer first
and then imports it into the consuming API post-hoc, after the modifier
is already (must be) known. It seems more important to keep the
gbm_surface and gbm_bo APIs in sync, so keep the responsibility for
filtering on the GBM side.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27109>
2024-06-12 21:20:06 +00:00
..
backends/dri gbm: Support fixed-rate compression allocation 2024-06-12 21:20:06 +00:00
main gbm: Support fixed-rate compression allocation 2024-06-12 21:20:06 +00:00
gbm-symbols.txt gbm: add gbm_{bo,surface}_create_with_modifiers2 2021-10-01 00:02:32 +02:00
meson.build gbm: drop unnecessary vulkan dependency 2023-02-23 18:31:22 +00:00