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.

How to count the vram size

Dear all

I see CONFIG_OMAP2_VRAM_SIZE=4  in Linux Kernel 

How to count the size  with LCD panel resolution 640*480?

If i use 1280x800 LCD panel. What is the vram size? 

Jason

  • Hi Jason,

    Normally the configuration is like this, depending on your application buffer requirements.

    CONFIG_OMAP2_VRAM_SIZE = (w * l * bpp) * num_of_bufs / (1024*1024)

    What is the use case? What is you environment variables?

    AnilKumar

    Please mark this Forum post as answered via the Verify Answer button below if it helps answer your question.  Thanks!

  • Hi Anil

    CONFIG_OMAP2_VRAM_SIZE = (w * l * bpp) * num_of_bufs / (1024*1024)

    >>So TI EVM board set the vram size is 4MB. Equivalent to 640*480*18 *2/(1024*1024)=10.54Mbit, 10.54/8=1.32 MByte.So this is less than 4MB?

    Above, whether there is any cognitive error?

     

    My environment variables.(Android OS)

    -----------------------------------------------------------------

    setenv bootargs 'console=ttyO2,115200n8 androidboot.console=ttyO2 mem=512M root=/dev/mmcblk0p2 rw rootfstype=ext3 rootdelay=1 init=/init ip=off omap_vout.vid1_static_vrfb_alloc=y omapdss.def_disp=lcd omapfb.mode=lcd:800x480MR-16 vram=8M omapfb.vram=0:8M mpurate=1000'

    -----------------------------------------------------------------

    Thank you

     

  • Hi Jason,

    jason58860 said:

    >>So TI EVM board set the vram size is 4MB. Equivalent to 640*480*18 *2/(1024*1024)=10.54Mbit, 10.54/8=1.32 MByte.So this is less than 4MB?

    Above, whether there is any cognitive error?

    640*480*4*2/(1024*1024) = 2.34375M < 4M

    From the boot args I can say that you are passing vram=8M, which is more than (1280*800*4*2/(1024 * 1024) = 7.8125), so it won't be any problem

     Regards
    AnilKumar

    Please mark this Forum post as answered via the Verify Answer button below if it helps answer your question.  Thanks!

  • Hi Anil

    640*480*4*2/(1024*1024) = 2.34375M < 4M

    Why the red word is set to 4(32Bit)? I read 3715 and 3530 Technical Reference Manual is max 24bit in chapter 15.

    Thank you

    Jason

  • Hi Jason,

    8 more bits for Alpha content apart from RGB.

    Regards

    AnilKumar

    Please mark this Forum post as answered via the Verify Answer button below if it helps answer your question.  Thanks!