-
Notifications
You must be signed in to change notification settings - Fork 123
WIP cl_ext_image_drm_format_modifier #1019
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Change-Id: I6c391b5ecaa203f7db566db68a7e3d124d6038a2 Signed-off-by: Kevin Petit <[email protected]>
Change-Id: I30630ac1232026301356e0265b074b8b41668cb2 Signed-off-by: Kevin Petit <[email protected]>
Sharing some initial feedback.
|
{CL_MEM_IMAGE_DRM_FORMAT_MODIFIER_EXT} can be passed as part of the _properties_ | ||
parameter to *clCreateImageWithProperties* to provide the DRM format modifier | ||
that describes the layout of image data when an image is created with | ||
{CL_IMAGE_TILING_DRM_FORMAT_MODIFIER_EXT}. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At least for Vulkan, there are two ways to create an image with a DRM format modifier:
- Using VkImageDrmFormatModifierExplicitCreateInfoEXT, which requires creating the image with the exact DRM format modifier specified. This is analogous to the
CL_MEM_IMAGE_DRM_FORMAT_MODIFIER_EXT
property added by this extension. - Using VkImageDrmFormatModifierListCreateInfoEXT, which allows creating the image from a set of specified DRM format modifiers. This provides the implementation with some freedom to choose what it considers to be the best DRM format modifier.
Should we support (2) and add the ability to pass a list of viable DRM format modifiers as well?
Note, if we added this functionality, then the application should still be able to query CL_IMAGE_DRM_FORMAT_MODIFIER_EXT
to determine which of the DRM format modifiers in the set was chosen.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Discussed in the 2025/04/15 memory TSG teleconference: another way of allowing implementations to express a preferred DRM modifier (which is what we'd really get with (2)) would be to state that the list of supported DRM modifiers reported by the implementation is ordered by preference. No strong preference for one or the other approach expressed on the call.
Just wondering if there is a way in ARM libMali to import AFBC compressed images? I came across this draft by accident while searching. In my use case the hardware video decoder is able to produce images with the |
@nyanmisaka Yes, this is supported in shipping drivers using this extension. I'm happy to help you get going with it. Feel free to reach out at [email protected]. |
Uh oh!
There was an error while loading. Please reload this page.