12.2.3 The gal_config File for i.MX DirectFB Driver
This is the configuration file for Vivante GFX plug-in driver. You can use this file to
control which primitive is accelerated with specific features.
For example, if you want to accelerate blit with alpha blending and rotate180 features,
add the following line to the file.
blit=alphachannel,coloralpha,rotate180
Then blit with other features (including xor and src_colorkey) are not accelerated by HW.
Even blit without any features is not accelerated.
"none" in the feature list means the rendering primitive without any features.
Following is the full matrix of the primitives and features:
drawline=none,xor,blend
drawrectangle=none,xor,blend
fillrectangle=none,xor,blend
filltriangle=none,xor,blend
blit=none,xor,alphachannel,coloralpha,src_colorkey,rotate180
stretchblit=none,xor,alphachannel,coloralpha,src_colorkey,rotate180
To use the configuration file, set environment variable GAL_CONFIG_FILE pointing to
this file. For example, for a bash user,
export GAL_CONFIG_FILE=/home/gfx/gal_config
If you don't set the environment variable, a default configuration matrix will be used. The
default configuration matrix is as follows:
fillrectangle=none,xor,blend
filltriangle=none,xor,blend
filltriangle=none,xor,blend
blit=none,xor,alphachannel,coloralpha,src_colorkey,rotate180
stretchblit=none,xor,alphachannel,coloralpha,src_colorkey,rotate180
Configuration file has higher priority.
Software Operation
i.MX 6Solo/6DualLite Linux Reference Manual, Rev. L3.0.35_4.1.0, 09/2013
108
Freescale Semiconductor, Inc.