Fix non-square matrix vertex attributes.

When we generate an input signature for a vertex shader, we should
use the transpose of the matrix type instead of the matrix type
itself. This was breaking dEQP tests 'shaders.functions.datatypes'.

BUG=angle:594

Change-Id: Ia945ffd865d7255500f7a62394bcd5bdfbbedef4
Reviewed-on: https://chromium-review.googlesource.com/191461
Reviewed-by: Geoff Lang <geofflang@chromium.org>
Tested-by: Jamie Madill <jmadill@chromium.org>
diff --git a/src/libGLESv2/DynamicHLSL.cpp b/src/libGLESv2/DynamicHLSL.cpp
index 06e95ac..9b47b4e 100644
--- a/src/libGLESv2/DynamicHLSL.cpp
+++ b/src/libGLESv2/DynamicHLSL.cpp
@@ -393,9 +393,9 @@
             }
 
             initHLSL += ";\n";
-        }
 
-        inputIndex += VariableRowCount(shaderAttribute.type);
+            inputIndex += VariableRowCount(TransposeMatrixType(shaderAttribute.type));
+        }
     }
 
     return "struct VS_INPUT\n"