Skip to content

CL/GL sharing support more texture formats #667

@smunaut

Description

@smunaut

The support implemented in #166 has some limitations on the supported texture format. I have been discussing in that (now closed) issue the possibility to support more formats but I thought it'd be better to open a new issue rather than keep talking in a closed one.

I've so far removed the quick check that limit the "create memory" to the currently supported texture format and what I noticed is that the call then hangs if you use unsupported textures.

I dug a bit into that and noticed two things :

  • The hang I notice is probably some bug in the error path. _eglDestroyImageCommon is only called if eglExportDMABUFImageMESA failed. So it should definitely not hang and it should return the error code instead of hanging but it's also not the root of my problem, ideally that call should work.
  • eglExportDMABUFImageMESA fails because dri2_can_export_dma_buf_image returns FALSE. And that's the root of the issue.
  • And the above eventually falls to missing formats in dri2_format_table ... but I have no idea if I can just add format to that table or what it implies or whatever ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions