Skip to content
  • Christopher Michael's avatar
    kmscube: Fix incorrect modifier check in create_framebuffer function · 6ab022fd
    Christopher Michael authored
    When importing an egl image from a linux dma buf fd, we need to pass
    the proper image attributes to eglCreateImageKHR. The modifier check
    here should not ignore DRM_FORMAT_MOD_LINEAR when setting
    EGL_DMA_BUF_PLANE0_MODIFIER_LO/HI_EXT else the ordering of
    samples within a plane will be incorrect, resulting in
    incorrect/garbled pixels being presented.
    
    v2: Update code changes to set EGL_DMA_BUF_PLANE0_MODIFIER_LO/HI
    whenever an extension exposes modifiers so that INVALID modifiers are
    accepted (Daniel Stone)
    6ab022fd