Skip to content

ext_egl_image_storage: test invalid dmabuf target storage

Simon Zeni requested to merge bl4ckb0ne/piglit:gl-ext-egl-image-storage into main

https://registry.khronos.org/OpenGL/extensions/EXT/EXT_EGL_image_storage.txt

If the EGL image was created using EGL_EXT_image_dma_buf_import, then the following applies:

  • must be GL_TEXTURE_2D or GL_TEXTURE_EXTERNAL_OES. Otherwise, the error INVALID_OPERATION is generated.
  • if is GL_TEXTURE_2D, then the resultant texture must have a sized internal format which is colorspace and size compatible with the dma-buf. If the GL is unable to determine such a format, the error INVALID_OPERATION is generated.
  • if is GL_TEXTURE_EXTERNAL_OES, the internal format of the texture is implementation defined.

See mesa!18673 (merged)

Merge request reports