Upgrade texture parameter validation to accormodate both ES2 and ES3.

In ES2, internal format matches format, but in ES3 that's no longer the case.
So we build a (internal_format, format, type) table.

This table can be unconditional because we validate internal_format, format,
type according to whether an extension is exposed or not.

Also, this CL tries to make SubTexImage3D mostly correct (except for the
clean bit part).

BUG=429053
TEST=gpu_unittests
R=sievers@chromium.org

Review URL: https://codereview.chromium.org/1146453002

Cr-Commit-Position: refs/heads/master@{#330991}
7 files changed