Hello,
I'm trying to improve the performance of the conversion of data read from DRM. I'm currently reading data with drmPrimeHandleToFD + mmap and I then convert DRM_FORMAT_MOD_BROADCOM_VC4_T_TILED with C code. My conversion is still not completely OK, but I already see it is very slow. I still do not know how to handle DRM_FORMAT_MOD_BROADCOM_UIF.
By reading the forum (for example: viewtopic.php?t=368584), I was wondering if something like this may be possible:
I see something like this was asked already, but no answer: viewtopic.php?t=363499.
Thank you!
I'm trying to improve the performance of the conversion of data read from DRM. I'm currently reading data with drmPrimeHandleToFD + mmap and I then convert DRM_FORMAT_MOD_BROADCOM_VC4_T_TILED with C code. My conversion is still not completely OK, but I already see it is very slow. I still do not know how to handle DRM_FORMAT_MOD_BROADCOM_UIF.
By reading the forum (for example: viewtopic.php?t=368584), I was wondering if something like this may be possible:
- import the dma-buf into OpenGL by using eglCreateImageKHR;
- use glEGLImageTargetTexture2DOES to get a texture;
- draw the texture to a PBO;
- get pixels in some linear format like RGBA from the PBO.
I see something like this was asked already, but no answer: viewtopic.php?t=363499.
Thank you!
Statistics: Posted by luc4 — Mon Sep 16, 2024 8:15 am