Hi chih,
Thanks for the reply.
I have seen NV12 (420sp) code in Mesa platform_android.c under DRI image FourCC. If the pixel format is HAL_PIXEL_FORMAT_YCbCr_420_888 and chroma step is 2 then the format is __DRI_IMAGE_FOURCC_NV12.
If we use drm_gralloc it is using droid_create_image_from_name but the fourcc code gets used in droid_create_image_from_prime_fd.
In drm_gralloc #define GRALLOC_DRM_HANDLE_NUM_FDS 0, if it is zero it is going into droid_create_image_from_name, in which there is no support for YUV.
1). How to invoke FOURCC path droid_create_image_from_prime_fd ?
2). when do we use gbm_gralloc ? which one better compared to drm_gralloc ?
3). Does AMD Ryzen5 GPU uses/supports hw composition ?
Thanks,