一,khronos配置配置简介
khronos部分的配置用于指定与Khronos相关的库和参数(例如EGL和WFD库)。
在graphics.conf配置文件中,khronos部分指定GPU和显示驱动程序。只有在系统需要这两种类型的驱动程序之一或两者时,才需要在配置文件中包含此部分。khronos部分由begin khronos和end khronos括起来。
如下:
begin khronosbegin egl display 1...end egl displaybegin wfd device 1...end wfd device
end khronos
...
khronos的配置包含两个小部分的配置,如下:
- egl display
与EGL显示相关的库和参数配置egl display部分,以begin egl display display_id开头,以end egl display结尾。
- wfd device
与WFD驱动程序相关的库和参数在本节中指定,该节以begin wfd device device_id开头,以end wfd device结尾。
在设备中上,配置文件的khronos部分中指定的所有库应与配置文件本身位于同一目录中。
二,配置egl display
egl display部分用于指定GPU库和参数。
此部分必须以 begin egl display display_id 开头并以 end egl display 结尾。仅当系统需要图形驱动程序时,才将此部分包含在配置文件中。
2.1 配置示例
通常,只有