<?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 Why does eglCreateContext allocate 9MB of video memory? in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Why-does-eglCreateContext-allocate-9MB-of-video-memory/m-p/311958#M40809</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On i.MX6Q with Linux BSP 4.1.0 I am seeing 9MB of video memory allocated when eglCreateContext is called.&amp;nbsp; This is true in my own applications and in the SimpleTriangle example GLES2.0 program.&amp;nbsp; It is allocated in five 1MB chunks and then one 4MB chunk.&amp;nbsp; I can see this memory allocation by monitoring calls to gckVIDMEM_AllocateLinear.&amp;nbsp; What is the purpose of this memory allocation?&amp;nbsp; Is it possible to reduce or eliminate it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Apr 2014 15:29:40 GMT</pubDate>
    <dc:creator>stephenminutill</dc:creator>
    <dc:date>2014-04-07T15:29:40Z</dc:date>
    <item>
      <title>Why does eglCreateContext allocate 9MB of video memory?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Why-does-eglCreateContext-allocate-9MB-of-video-memory/m-p/311958#M40809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On i.MX6Q with Linux BSP 4.1.0 I am seeing 9MB of video memory allocated when eglCreateContext is called.&amp;nbsp; This is true in my own applications and in the SimpleTriangle example GLES2.0 program.&amp;nbsp; It is allocated in five 1MB chunks and then one 4MB chunk.&amp;nbsp; I can see this memory allocation by monitoring calls to gckVIDMEM_AllocateLinear.&amp;nbsp; What is the purpose of this memory allocation?&amp;nbsp; Is it possible to reduce or eliminate it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2014 15:29:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Why-does-eglCreateContext-allocate-9MB-of-video-memory/m-p/311958#M40809</guid>
      <dc:creator>stephenminutill</dc:creator>
      <dc:date>2014-04-07T15:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Why does eglCreateContext allocate 9MB of video memory?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Why-does-eglCreateContext-allocate-9MB-of-video-memory/m-p/311959#M40810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Please check the board file for the GPU reserved memory? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;For example on sabreSD, the following code is used to reserve gpu memory which is limited under 1G address.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Arch/arm/mach-mx6/board-mx6q_sabresd.c&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt; if (imx6q_gpu_pdata.reserved_mem_size) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt; phys = memblock_alloc_base(imx6q_gpu_pdata.reserved_mem_size,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt; SZ_4K, &lt;/SPAN&gt;&lt;SPAN style="color: red;"&gt;SZ_1G&lt;/SPAN&gt;&lt;SPAN style="color: #1f497d;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt; memblock_remove(phys, imx6q_gpu_pdata.reserved_mem_size);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt; imx6q_gpu_pdata.reserved_mem_base = phys;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;FSL have some reserving memory for vpu and gpu in Android. Typically it should be 32M for VPU and 16-32M for gpu.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue;"&gt;One thing to note is you have to set the size of pmem_gpu to be any size of order of 2. It should be 1M, 2M, 4M, 8M, 16M, 32M,….&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue;"&gt;Hope it helps!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2014 14:52:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Why-does-eglCreateContext-allocate-9MB-of-video-memory/m-p/311959#M40810</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2014-04-08T14:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: Why does eglCreateContext allocate 9MB of video memory?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Why-does-eglCreateContext-allocate-9MB-of-video-memory/m-p/311960#M40811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By default on the SabreSD board imx6q_gpu_pdata.reserved_mem_size is 128M.&amp;nbsp; When using Wayland to run multiple graphical applications, that 9MB per process adds up quickly.&amp;nbsp; I would like to know what the purpose of the 9MB allocation is, and if it can be reduced?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2014 20:00:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Why-does-eglCreateContext-allocate-9MB-of-video-memory/m-p/311960#M40811</guid>
      <dc:creator>stephenminutill</dc:creator>
      <dc:date>2014-04-08T20:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Why does eglCreateContext allocate 9MB of video memory?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Why-does-eglCreateContext-allocate-9MB-of-video-memory/m-p/311961#M40812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/HugoOsornio"&gt;HugoOsornio&lt;/A&gt;​&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hugo,&lt;/P&gt;&lt;P&gt;Have you seen this issue and are you able to explain this allocation?&amp;nbsp; We are also see this on our design.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2015 19:45:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Why-does-eglCreateContext-allocate-9MB-of-video-memory/m-p/311961#M40812</guid>
      <dc:creator>davebailey</dc:creator>
      <dc:date>2015-07-02T19:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: Why does eglCreateContext allocate 9MB of video memory?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Why-does-eglCreateContext-allocate-9MB-of-video-memory/m-p/311962#M40813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I checked with the R &amp;amp; D team and they confirmed gpu-viv-bin-mx6q_4.0.0 will have the problem of using more memory just for creating context.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The latest driver(3.10.53_1.1.0 ) is 5.x based and supposed to take only 3MB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please test with the latest 5.x GPU driver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 20:10:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Why-does-eglCreateContext-allocate-9MB-of-video-memory/m-p/311962#M40813</guid>
      <dc:creator>asim_zaidi</dc:creator>
      <dc:date>2015-07-08T20:10:53Z</dc:date>
    </item>
  </channel>
</rss>

