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
(upload/update/reuse).

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:
    <test_case>_<format>_<texture_upload_command>_size.pixmd5-<md5>.png

Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>

BUG=none
TEST=test_that graphics_GLBench

Change-Id: Ia34de4182fb29a70823d1eea718ba5906236afb7
Reviewed-on: https://chromium-review.googlesource.com/202478
Reviewed-by: Ilja Friedel <ihf@chromium.org>
Commit-Queue: Daniel Kurtz <djkurtz@chromium.org>
Tested-by: Daniel Kurtz <djkurtz@chromium.org>
130 files changed
tree: 3ba78642a6f00fde2cb82482b535261586b7edec
  1. glbench_knownbad_images/
  2. glbench_reference_images/
  3. README