This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/DRA746: Wayland/DRM Feature Support

Part Number: DRA746

Tool/software: Linux

Hi, 

We are trying to develop  wayland/weston applications on PSDKLA K4.4 based linux on J6, but have some Graphics issues need supported by TI:

1. we want to use drm dumb buffer to share memory between client and weston, but wl_drm protocol only support wl_drm version 1st; Any way to get  support if   want to use  wl_drm version 2 ?

2. drm_handle_format only provided WL_DRM_FORMAT_ARGB8888 & WL_DRM_FORMAT_XRGB8888 in rgb color space, but some applications usual using  RGBA  format. Any planing to support WL_DRM_FORMAT_ABGR8888?

3. In order to convert RGB to YUV with GPU,  we tried to bind texture to fbo and render rgb texture to fbo target, but fbo color attachment only support RGB format, is there any extensions to support  fbo yuv color attachment on TI platform, such as EXT_YUV_target?

Thanks,

Tao

  • Hi Tao,

    I have forwarded your question to an expert for comment.

    Regards,
    Yordan
  • hello,

    1. TI has no plans to support wl_drm V2 interface in the future.
    2. TI has no plans to support other formats in wl_drm
    3. TI provided DDK does not support rendering on a YUV buffer as color attachment.

    you can try to convert the buffer format using DSS writeback pipeline. If you describe your usecase briefly, I can suggest you how to go ahead with DSS WB

    Regards,
    Subhajit
  • Hi Subhajit,

    I want to do color conversion from rgba8888 to nv12, both input and output data exist as dma_buf.
    And the rgb source is weston composition result, so I prefer to do the conversion by GPU.
    Where can i find the DSS usage sampler?

    Thanks,
    Tao

  • Tao,

    I assume you can modify weston source code so that you get the rendered gbm_bo after composition. you can call gbm_bo_get_fd to get the composited buffer dma-buf in argb8888 format.

    An example application showing how to use dss writeback pipeline to convert buffer format can be found here

    git://git.ti.com/glsdk/example-applications.git [branch : master]

    you can look into the file v4l2-m2m/test-v4l2-m2m.c

    Regards,

    Subhajit