Module: Mesa Branch: main Commit: 0105c2e2ebad80f2a8171f753b85a9f27783cb70 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0105c2e2ebad80f2a8171f753b85a9f27783cb70
Author: Rob Clark <[email protected]> Date: Sat Oct 28 08:12:36 2023 -0700 freedreno/layout: Add layout metadata Add a struct for communicating layout metadata between turnip and gallium driver. For now, all that is needed is the modifier, but we can extend it in the future if needed. Signed-off-by: Rob Clark <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25945> --- src/freedreno/fdl/freedreno_layout.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/freedreno/fdl/freedreno_layout.h b/src/freedreno/fdl/freedreno_layout.h index 087ebf12882..17b8e25bca1 100644 --- a/src/freedreno/fdl/freedreno_layout.h +++ b/src/freedreno/fdl/freedreno_layout.h @@ -92,6 +92,17 @@ struct fdl_explicit_layout { uint32_t pitch; }; +/** + * Metadata shared between vk and gallium driver for interop. + * + * NOTE: EXT_external_objects requires app to check device and driver + * UUIDs to ensure that the vk and gl driver are compatible. So for + * now we don't need any additional versioning of the metadata. + */ +struct fdl_metadata { + uint64_t modifier; +}; + /** * Encapsulates the layout of a resource, including position of given 2d * surface (layer, level) within. Or rather all the information needed
