Key the format tables on internal format and type.

Keying the format tables on internal format alone is not enough to fully
validate the unsized formats which require additional type information.

This CL has no functional changes, it just splits the tables and updates
the calls to GetInternalFormat info to provide type information when the
format is not sized.

BUG=angleproject:1523
BUG=angleproject:1958
BUG=angleproject:1228

Change-Id: I37e5201e7f54fa8eca01b8a6e64b11a6b94484e7
Reviewed-on: https://chromium-review.googlesource.com/468449
Commit-Queue: Geoff Lang <geofflang@chromium.org>
Reviewed-by: Jamie Madill <jmadill@chromium.org>
diff --git a/src/libANGLE/renderer/vulkan/FramebufferVk.cpp b/src/libANGLE/renderer/vulkan/FramebufferVk.cpp
index 921cdb7..5bd8b12 100644
--- a/src/libANGLE/renderer/vulkan/FramebufferVk.cpp
+++ b/src/libANGLE/renderer/vulkan/FramebufferVk.cpp
@@ -36,7 +36,7 @@
     ANGLE_TRY(readAttachment->getRenderTarget(&renderTarget));
 
     GLenum implFormat = renderTarget->format->format().fboImplementationInternalFormat;
-    return &gl::GetInternalFormatInfo(implFormat);
+    return &gl::GetSizedInternalFormatInfo(implFormat);
 }
 
 VkSampleCountFlagBits ConvertSamples(GLint sampleCount)
@@ -296,7 +296,7 @@
     const auto &angleFormat = renderTarget->format->format();
 
     // TODO(jmadill): Use pixel bytes from the ANGLE format directly.
-    const auto &glFormat = gl::GetInternalFormatInfo(angleFormat.glInternalFormat);
+    const auto &glFormat = gl::GetSizedInternalFormatInfo(angleFormat.glInternalFormat);
     int inputPitch       = glFormat.pixelBytes * area.width;
 
     PackPixelsParams params;