Skip to content
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

EGL_EXT_image_dma_buf_import: advertise which hints are supported #173

Open
emersion opened this issue Sep 28, 2022 · 3 comments
Open

EGL_EXT_image_dma_buf_import: advertise which hints are supported #173

emersion opened this issue Sep 28, 2022 · 3 comments
Assignees

Comments

@emersion
Copy link

emersion commented Sep 28, 2022

EGL_EXT_image_dma_buf_import has a number of hints:

        EGL_YUV_COLOR_SPACE_HINT_EXT    0x327B
        EGL_SAMPLE_RANGE_HINT_EXT       0x327C
        EGL_YUV_CHROMA_HORIZONTAL_SITING_HINT_EXT  0x327D
        EGL_YUV_CHROMA_VERTICAL_SITING_HINT_EXT    0x327E

However there is no way for an EGL client to figure out which hints will be taken into account by the driver, and which will be ignored. It would be nice to allow EGL clients to query this information.

Ref https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/153

@stonesthrow
Copy link
Contributor

Sounds interesting. Whatever you work out with freedesktop will have that support. From that I guess you can decide if a new EGL extension is needed or a version 2 of EGL_EXT_image_dma_buf_import_modifiers?

@emersion
Copy link
Author

emersion commented Oct 5, 2022

Right. The naive solution would be to just add a new empty EGL_MESA_image_dma_buf_import_hints extension with the only purpose of indicating that the hints are supported and taken into account by the driver.

@stonesthrow
Copy link
Contributor

Sounds like a start to a proposal. Bounce a proposal off MESA/FreeDesktop people since its your expertise. I and Jon will review for a good extension. thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants