The dmabuf stride has a defined meaning only for linear buffers
The EGL_EXT_image_dma_buf_import states that: "EGL_DMA_BUF_PLANE0_PITCH_EXT: The number of bytes between the start of subsequent rows of samples in plane 0. May have special meaning for non-linear formats."
The GL renderer sanity check for dmabuf (offset + stride * height >= size) is therefore only valid for DRM_FORMAT_MOD_LINEAR.