<?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>i.MX GraphicsのトピックRe: IMX8 SDL hardware accelerated renderer</title>
    <link>https://community.nxp.com/t5/i-MX-Graphics/IMX8-SDL-hardware-accelerated-renderer/m-p/1462050#M296</link>
    <description>&lt;P&gt;Why you add sdl to qemu?&lt;/P&gt;
&lt;P&gt;&lt;A href="https://lists.yoctoproject.org/g/poky/message/11727" target="_blank"&gt;https://lists.yoctoproject.org/g/poky/message/11727&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If you want to use sdl in rootfs , you should use&amp;nbsp;&lt;STRONG&gt;image_install_append&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 23 May 2022 02:35:53 GMT</pubDate>
    <dc:creator>Zhiming_Liu</dc:creator>
    <dc:date>2022-05-23T02:35:53Z</dc:date>
    <item>
      <title>IMX8 SDL hardware accelerated renderer</title>
      <link>https://community.nxp.com/t5/i-MX-Graphics/IMX8-SDL-hardware-accelerated-renderer/m-p/1458266#M293</link>
      <description>&lt;P&gt;I'm using the NXP IMX8X from Compulab with a custom Yocto build.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Linux cl-som-imx8 4.14.98-cl-som-imx8-1.1+g5d6cbeafb80c #1 SMP PREEMPT Fri May 13 01:24:54 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux&lt;/LI-CODE&gt;&lt;P&gt;While trying to get an Hardware Accelerated Renderer SDL fails. In the software we use:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SDL_CreateRenderer(window, -1, SDL_RENDERER_ACCELERATED)&lt;/LI-CODE&gt;&lt;P&gt;And this results in an error:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Can't find a matching driver to create a renderer&lt;/LI-CODE&gt;&lt;P&gt;Which as I gather means that no accelerated video driver is available for SDL rendering.&lt;/P&gt;&lt;P&gt;Do you support SDL accelerated rendering?&lt;BR /&gt;Otherwise SDL seems unusable, can you recommend something?&lt;/P&gt;&lt;P&gt;Any and all advice is welcome, thank you.&lt;/P&gt;</description>
      <pubDate>Sun, 15 May 2022 22:41:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Graphics/IMX8-SDL-hardware-accelerated-renderer/m-p/1458266#M293</guid>
      <dc:creator>serra_software</dc:creator>
      <dc:date>2022-05-15T22:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8 SDL hardware accelerated renderer</title>
      <link>https://community.nxp.com/t5/i-MX-Graphics/IMX8-SDL-hardware-accelerated-renderer/m-p/1461191#M294</link>
      <description>&lt;P&gt;Can you share your bb file about SDL?&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 01:49:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Graphics/IMX8-SDL-hardware-accelerated-renderer/m-p/1461191#M294</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2022-05-20T01:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8 SDL hardware accelerated renderer</title>
      <link>https://community.nxp.com/t5/i-MX-Graphics/IMX8-SDL-hardware-accelerated-renderer/m-p/1461676#M295</link>
      <description>&lt;P&gt;I just added the sdl2 package to my local.conf file.&lt;/P&gt;&lt;P&gt;my bblayers file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LCONF_VERSION = "7"

BBPATH = "${TOPDIR}"
BSPDIR := "${@os.path.abspath(os.path.dirname(d.getVar('FILE', True)) + '/../..')}"

BBFILES ?= ""
BBLAYERS = " \
  ${BSPDIR}/sources/poky/meta \
  ${BSPDIR}/sources/poky/meta-poky \
  \
  ${BSPDIR}/sources/meta-openembedded/meta-oe \
  ${BSPDIR}/sources/meta-openembedded/meta-multimedia \
  \
  ${BSPDIR}/sources/meta-freescale \
  ${BSPDIR}/sources/meta-freescale-3rdparty \
  ${BSPDIR}/sources/meta-freescale-distro \
"

# i.MX Yocto Project Release layers
BBLAYERS += " ${BSPDIR}/sources/meta-fsl-bsp-release/imx/meta-bsp "
BBLAYERS += " ${BSPDIR}/sources/meta-fsl-bsp-release/imx/meta-sdk "

BBLAYERS += " ${BSPDIR}/sources/meta-browser "
BBLAYERS += " ${BSPDIR}/sources/meta-openembedded/meta-gnome "
BBLAYERS += " ${BSPDIR}/sources/meta-openembedded/meta-networking "
BBLAYERS += " ${BSPDIR}/sources/meta-openembedded/meta-python "
BBLAYERS += " ${BSPDIR}/sources/meta-openembedded/meta-filesystems "
BBLAYERS += " ${BSPDIR}/sources/meta-qt5 "
BBLAYERS += " \
	${BSPDIR}/sources/meta-compulab \
	${BSPDIR}/sources/meta-compulab-bsp/meta-desktop \
	${BSPDIR}/sources/meta-compulab-bsp/meta-multimedia \
	${BSPDIR}/sources/meta-bsp-imx8mq \
"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My local.conf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;MACHINE ??= 'cl-som-imx8'
DISTRO ?= 'fsl-imx-xwayland'
PACKAGE_CLASSES ?= "package_rpm"
EXTRA_IMAGE_FEATURES ?= "debug-tweaks dev-pkgs tools-sdk tools-debug tools-profile tools-testapps"
USER_CLASSES ?= "buildstats image-mklibs image-prelink"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS ??= "\
    STOPTASKS,${TMPDIR},1G,100K \
    STOPTASKS,${DL_DIR},1G,100K \
    STOPTASKS,${SSTATE_DIR},1G,100K \
    STOPTASKS,/tmp,100M,100K \
    ABORT,${TMPDIR},100M,1K \
    ABORT,${DL_DIR},100M,1K \
    ABORT,${SSTATE_DIR},100M,1K \
    ABORT,/tmp,10M,1K"
PACKAGECONFIG_append_pn-qemu-native = " sdl"
PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl"
CONF_VERSION = "1"

DL_DIR ?= "${BSPDIR}/downloads/"
ACCEPT_FSL_EULA = "1"
CORE_IMAGE_EXTRA_INSTALL += " dhcp-client imx-gpu-viv-demos  cl-uboot cl-deploy cl-stest cl-launcher cl-camera u-boot-fw-utils  memtester htop iotop tmux iperf3 "
IMAGE_FEATURES += " package-management ssh-server-openssh "
LICENSE_FLAGS_WHITELIST = "commercial"
PREFERRED_RPROVIDER_u-boot-fw-utils = "u-boot-fw-utils"
BBMASK += "meta-compulab/recipes-xfce"

# Users' Configurations
UBOOT_CONFIG = "cfg"
# Add packages
IMAGE_INSTALL_append = " git ffmpeg python3-flask python3-bcrypt python3-jinja2 python3-lxml python3-beautifulsoup4 python3-pyalsaaudio python3-smbus python3-urllib3 libsdl2 libsdl2-mixer libsdl2-image libsdl2-ttf "&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 13:36:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Graphics/IMX8-SDL-hardware-accelerated-renderer/m-p/1461676#M295</guid>
      <dc:creator>serra_software</dc:creator>
      <dc:date>2022-05-20T13:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8 SDL hardware accelerated renderer</title>
      <link>https://community.nxp.com/t5/i-MX-Graphics/IMX8-SDL-hardware-accelerated-renderer/m-p/1462050#M296</link>
      <description>&lt;P&gt;Why you add sdl to qemu?&lt;/P&gt;
&lt;P&gt;&lt;A href="https://lists.yoctoproject.org/g/poky/message/11727" target="_blank"&gt;https://lists.yoctoproject.org/g/poky/message/11727&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If you want to use sdl in rootfs , you should use&amp;nbsp;&lt;STRONG&gt;image_install_append&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2022 02:35:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Graphics/IMX8-SDL-hardware-accelerated-renderer/m-p/1462050#M296</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2022-05-23T02:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8 SDL hardware accelerated renderer</title>
      <link>https://community.nxp.com/t5/i-MX-Graphics/IMX8-SDL-hardware-accelerated-renderer/m-p/1462438#M297</link>
      <description>&lt;P&gt;This is the default in the configurations from Compulab.&lt;BR /&gt;See: &lt;A href="https://github.com/compulab-yokneam/meta-bsp-imx8mq" target="_blank"&gt;https://github.com/compulab-yokneam/meta-bsp-imx8mq&lt;/A&gt;&lt;/P&gt;&lt;P&gt;To be clear: I added the libsdl2 package to the 'local.conf' file by adding it to&amp;nbsp;IMAGE_INSTALL_append. I need the libsdl2 package working with an hardware accelerated renderer. So I already added 'libsdl2' to IMAGE_INSTALL_append. Are you saying I should also add 'sdl' to IMAGE_INSTALL_append?&lt;/P&gt;&lt;P&gt;Compulab has added the part with: PACKAGECONFIG_append_pn-qemu-native = " sdl"&lt;BR /&gt;I don't know why compulab has done this.&lt;/P&gt;&lt;P&gt;Do you think that accelerated rendering is not working due to Compulab's configuration or is it not supported?&lt;/P&gt;&lt;P&gt;Thank you for your quick response&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2022 12:29:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Graphics/IMX8-SDL-hardware-accelerated-renderer/m-p/1462438#M297</guid>
      <dc:creator>serra_software</dc:creator>
      <dc:date>2022-05-23T12:29:57Z</dc:date>
    </item>
  </channel>
</rss>

