GithubHelp home page GithubHelp logo

Comments (8)

fooishbar avatar fooishbar commented on July 22, 2024 2

I have a very strong preference for #1. Now that all the modifier entrypoints accept (and queries advertise) DRM_FORMAT_MOD_INVALID, and we've all gone out and typed out support for that exact usecase, I don't see what benefit #2 would bring us.

Suggested addition to EGL_EXT_image_dma_buf_import_modifiers question section:

  1. What if my implementation does not support DRM format modifiers?
    It is strongly recommended that every implementation supporting dmabuf import also implements this extension. DRM_FORMAT_MOD_INVALID is a special modifier token indicating that the exact layout is not known and will be determined by implementation-defined semantics. Platforms not supporting modifiers should implement this extension, advertising only the DRM_FORMAT_MOD_INVALID modifier for every supported format, and accepting only the DRM_FORMAT_MOD_INVALID modifier for EGLImage import.

Suggested addition to EGL_EXT_image_dma_buf_import question section:

  1. How can clients discover the set of supported formats?
    Every driver supporting dmabuf import should implement the EGL_EXT_image_dma_buf_import_modifiers extension, even if they do not support modifiers. This extension adds format-advertisement entrypoints, and as detailed in that extension's question section, DRM_FORMAT_MOD_INVALID is used to implement the same behaviour as without that extension, i.e. that the exact buffer layout is not known and will be determined by implementation-defined semantics.

from egl-registry.

emersion avatar emersion commented on July 22, 2024 2

This looks like a good idea to me. This would let drivers return an external_only flag for implicit modifiers too, which is useful to know whether rendering to a buffer using this format is possible. This isn't possible if the driver returns zero modifiers.

I'll type up the Mesa patch for this.

from egl-registry.

stonesthrow avatar stonesthrow commented on July 22, 2024

Thanks @emersion , I will bring this to GLES/EGL WG , but we will need you/MESA people to craft the work/specs. Just not enough people and bandwidth to support linux platform properly.

from egl-registry.

cubanismo avatar cubanismo commented on July 22, 2024

Are there drivers that don't advertise EGL_EXT_image_dma_buf_import_modifiers but do advertise EXT_image_dma_buf_import? If not, I'd prefer stronger language, e.g., just updating EXT_image_dma_buf_import's dependency section to require EGL_EXT_image_dma_buf_import_modifiers, and modifying Daniel's proposed text above accordingly.

from egl-registry.

emersion avatar emersion commented on July 22, 2024

IIRC the Mali proprietary blob does this? @fooishbar probably knows more.

from egl-registry.

fooishbar avatar fooishbar commented on July 22, 2024

It depends on how the SoC vendor configures it (it’s not a single blob like NV), but a lot of them seem to ship it with dmabuf disabled entirely. I’ve yet to see a build with modifiers in the wild.

from egl-registry.

shutaozhenzhen avatar shutaozhenzhen commented on July 22, 2024

Are there drivers that don't advertise EGL_EXT_image_dma_buf_import_modifiers but do advertise EXT_image_dma_buf_import? If not, I'd prefer stronger language, e.g., just updating EXT_image_dma_buf_import's dependency section to require EGL_EXT_image_dma_buf_import_modifiers, and modifying Daniel's proposed text above accordingly.

I meet a soc which use mali G52, and support EXT_image_dma_buf_import, but do not support EGL_EXT_image_dma_buf_import_modifiers. eglQueryDmaBufFormatsEXT actually returns meanful fourcc codes, but only some of the return values are truely supported.

from egl-registry.

fooishbar avatar fooishbar commented on July 22, 2024

I assume this is using the proprietary Mali driver? Exposing the entrypoint without advertising the extension is not something that’s expected to work - and the driver can be trivially modified to work with the modifier extension by exposing only DRM_FORMAT_MOD_INVALID.

from egl-registry.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.