glbench: add additional texture types to the texture upload tests

glbench already has a set of texture upload tests that vary the texture
size, API used for upload, and test different texture use cases

The texture format used by all of these tests, however, is GL_LUMINANCE,
which is an 8-bit-per-texel format.

In reality, however, Chrome uses several other texture types much more
often than 8-bit, in particular the 32-bit (RGBA/BGRA) formats.  At least
on some drivers, the 32-bit and 8-bit texture upload take significantly
different code paths with different performance characteristics, as do the
different component orderings.
Therefore, there is value in benchmarking all of the texture formats.

Note: this patch is much scarier than it appears because it changes the
names of the image files by inserting a 'format' is between test case and
gl command:

Signed-off-by: Daniel Kurtz <>

TEST=test_that graphics_GLBench

Change-Id: Ia34de4182fb29a70823d1eea718ba5906236afb7
Reviewed-by: Ilja Friedel <>
Commit-Queue: Daniel Kurtz <>
Tested-by: Daniel Kurtz <>
130 files changed
tree: 3ba78642a6f00fde2cb82482b535261586b7edec
  2. glbench_knownbad_images/
  3. glbench_reference_images/