最近在配置qml运行环境时,遇到了一个OpenGL相关的报错:
EGL Error : Could not create the egl surface: error = 0x3003
解决办法参考下文:
I am currently using a 24bit parallel display, so in the .dtsi file inside fb@0, I set the default_bpp to 24. This needs to always be 16 regardless of the display. So I set default_bpp to 16 and I no longer get eglCreateWindowSurface() errors anymore!
mxcfb1: fb@0 {
compatible = "fsl,mxc_sdc_fb";
disp_dev = "ldb";
interface_pix_fmt = "RGB666";
mode_str ="LDB-XGA";
default_bpp = <16>;
int_clk = <0>;
late_init = <0>;
status = "okay";
};
可以在uboot里设置(写死的办法是可以在uboot源码或者设备树里改写):
setenv video "video=mxcfb0:dev=ldb,LDB-XGA,if=RGB24,bpp=16 fbpix=RGB24 video=mxcfb1:off video=mxcfb2:off video=mxcfb3:off consoleblank=0 fbmem=28M ldb=dul0"
参考:https://community.nxp.com/message/587654#587654