Force cube map texture complete on Linux AMD

CopyTex{Sub}Image2D reports INVALID_OPERATION error if the destination
texture is an integer incomplete cube map texture on Linux AMD. Similarly,
TexSubImage2D reports OUT_OF_MEMORY error if the destination texture is a
srgb incomplete cube map texture on Linux AMD. This is a bug in AMD Linux
driver. This CL workarounds this bug by forcing the texture to be cube map
complete.

BUG=710392, 712117
TEST=webgl2 conformance test
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel

Review-Url: https://codereview.chromium.org/2821913002
Cr-Original-Commit-Position: refs/heads/master@{#465915}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 9d28c22de85528d1f87bfbf3f88dc531027b24bd
5 files changed