<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Gralloc and HWcomposer explanation and DRM buffer sharing in i.MX Graphics</title>
    <link>https://community.nxp.com/t5/i-MX-Graphics/Gralloc-and-HWcomposer-explanation-and-DRM-buffer-sharing/m-p/1843727#M561</link>
    <description>&lt;P&gt;Greetings to NXP support teams,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to confirm and understand two things in regards with your Android graphics workflow for i.mx8qm board&lt;/P&gt;&lt;P&gt;One clarification in advance, all materials I would refer to are from NXP official releases and github&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&lt;A href="https://www.nxp.com/design/design-center/software/embedded-software/i-mx-software/android-os-for-i-mx-applications-processors:IMXANDROID" target="_blank"&gt;https://www.nxp.com/design/design-center/software/embedded-software/i-mx-software/android-os-for-i-mx-applications-processors:IMXANDROID&lt;/A&gt;&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&lt;A href="https://github.com/nxp-imx-android" target="_blank"&gt;https://github.com/nxp-imx-android&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1) Gralloc and HWcomposer&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As far as I understood, gralloc.imx uses gralloc_viv.imx for acessing DRM modules. After flashing your Android demo image (Android Q10.0.0_2.6.0 in particular), I can see both of them loaded and utilized. On the other hand, I can see only hwcomposer.imx loaded and utilized, although hwcomposer_viv.imx prebuilt can also be found within materials provided by NXP.&lt;/P&gt;&lt;P&gt;What is the use of hwcomposer_viv.imx and is it actually needed in order to have Android graphics fully leveraging GPU?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2) DRM Buffer sharing&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In order to enable buffer sharing DRM principles, Gralloc and HWcomposer must share handle for particular graphics buffer. Is this handle provided by your Memory structure inheriting the native_handle or there is some more proprietary code used for this purpose which is not available as open source.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Dusan&lt;/P&gt;</description>
    <pubDate>Wed, 10 Apr 2024 07:53:27 GMT</pubDate>
    <dc:creator>dkenjic</dc:creator>
    <dc:date>2024-04-10T07:53:27Z</dc:date>
    <item>
      <title>Gralloc and HWcomposer explanation and DRM buffer sharing</title>
      <link>https://community.nxp.com/t5/i-MX-Graphics/Gralloc-and-HWcomposer-explanation-and-DRM-buffer-sharing/m-p/1843727#M561</link>
      <description>&lt;P&gt;Greetings to NXP support teams,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to confirm and understand two things in regards with your Android graphics workflow for i.mx8qm board&lt;/P&gt;&lt;P&gt;One clarification in advance, all materials I would refer to are from NXP official releases and github&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&lt;A href="https://www.nxp.com/design/design-center/software/embedded-software/i-mx-software/android-os-for-i-mx-applications-processors:IMXANDROID" target="_blank"&gt;https://www.nxp.com/design/design-center/software/embedded-software/i-mx-software/android-os-for-i-mx-applications-processors:IMXANDROID&lt;/A&gt;&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&lt;A href="https://github.com/nxp-imx-android" target="_blank"&gt;https://github.com/nxp-imx-android&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1) Gralloc and HWcomposer&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As far as I understood, gralloc.imx uses gralloc_viv.imx for acessing DRM modules. After flashing your Android demo image (Android Q10.0.0_2.6.0 in particular), I can see both of them loaded and utilized. On the other hand, I can see only hwcomposer.imx loaded and utilized, although hwcomposer_viv.imx prebuilt can also be found within materials provided by NXP.&lt;/P&gt;&lt;P&gt;What is the use of hwcomposer_viv.imx and is it actually needed in order to have Android graphics fully leveraging GPU?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2) DRM Buffer sharing&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In order to enable buffer sharing DRM principles, Gralloc and HWcomposer must share handle for particular graphics buffer. Is this handle provided by your Memory structure inheriting the native_handle or there is some more proprietary code used for this purpose which is not available as open source.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Dusan&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 07:53:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Graphics/Gralloc-and-HWcomposer-explanation-and-DRM-buffer-sharing/m-p/1843727#M561</guid>
      <dc:creator>dkenjic</dc:creator>
      <dc:date>2024-04-10T07:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Gralloc and HWcomposer explanation and DRM buffer sharing</title>
      <link>https://community.nxp.com/t5/i-MX-Graphics/Gralloc-and-HWcomposer-explanation-and-DRM-buffer-sharing/m-p/1846504#M563</link>
      <description>&lt;P&gt;FYI.&lt;/P&gt;
&lt;P&gt;More information about GPU and DPU in Chapter 5 and 6 in this document.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com.cn/docs/en/reference-manual/IMX_REFERENCE_MANUAL.pdf" target="_blank"&gt;https://www.nxp.com.cn/docs/en/reference-manual/IMX_REFERENCE_MANUAL.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Apr 2024 15:12:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Graphics/Gralloc-and-HWcomposer-explanation-and-DRM-buffer-sharing/m-p/1846504#M563</guid>
      <dc:creator>jimmychan</dc:creator>
      <dc:date>2024-04-13T15:12:25Z</dc:date>
    </item>
  </channel>
</rss>

