screen-gles2-tools

Generate shader binaries

Syntax:

screen-gles2-tools
            

Runs on:

QNX Neutrino

Options:

None.

Description:

The screen-gles2-tools utility is a command-line tool for generating shader binaries. This utility puts the compiled shader binaries in your current directory.

The screen process must be already running when you use this utility because it uses the GPU stack.

After generating the shader binaries, take advantage of Screen's boot optimization strategy by copying these binaries to /usr/lib/graphics/platform on your target, where platform is the name of your platform (e.g., imx6x). On the next start of screen, Screen loads the binaries it finds without having to first compile the source before loading them.

The savings in time is seen only if the shader binaries exist before screen starts. To reap the advantages that the precompiled shader binaries give you, we recommend copying these binaries to your host, and include them in your OS image , so that they are already available immediately after booting up your platform.

The binaries, on your host, must be copied to $QNX_TARGET/cpu/usr/lib/graphics/platform (where cpu is the CPU architecture of your platform and platform is the name of your platform) so that they can be built into your OS image .

Note: These shader binaries can't be shared across platforms or GPU revisions. They are specific to a platform and to a GPU revision. If you change revisions of the GPU on your platform, you must generate new shader binaries.

Examples:

# screen-gles2-tools  
Dumping shader programs.

writing fill.pgm
writing blit.pgm
writing blita.pgm
writing blitx.pgm
writing test.pgm
writing nv12.pgm
writing uyvy.pgm
writing uber.pgm

# ls -l
total 36
-rw-rw-rw-  2 root      root           1376 Dec 02 11:10 blit.pgm
-rw-rw-rw-  2 root      root           1508 Dec 02 11:10 blita.pgm
-rw-rw-rw-  2 root      root           1464 Dec 02 11:10 blitx.pgm
-rw-rw-rw-  2 root      root           1108 Dec 02 11:10 fill.pgm
-rw-rw-rw-  2 root      root           2472 Dec 02 11:10 nv12.pgm
-rw-rw-rw-  2 root      root           1656 Dec 02 11:10 test.pgm
-rw-rw-rw-  2 root      root           2212 Dec 02 11:10 uber.pgm
-rw-rw-rw-  2 root      root           3004 Dec 02 11:10 uyvy.pgm