Simplify the gl::Varying struct to be more like sh::Varying.
The subsequent patches will remove gl::Varying entirely.
TRAC #23746
Signed-off-by: Nicolas Capens
Signed-off-by: Shannon Woods
diff --git a/src/libGLESv2/Shader.cpp b/src/libGLESv2/Shader.cpp
index b9d4a78..a32c6a1 100644
--- a/src/libGLESv2/Shader.cpp
+++ b/src/libGLESv2/Shader.cpp
@@ -219,7 +219,7 @@
{
if (!mHlsl.empty())
{
- std::vector<sh::ShaderVariable> *activeVaryings;
+ std::vector<sh::Varying> *activeVaryings;
ShGetInfoPointer(compiler, SH_ACTIVE_VARYINGS_ARRAY, reinterpret_cast<void**>(&activeVaryings));
for (unsigned int varyingIndex = 0; varyingIndex < activeVaryings->size(); varyingIndex++)
@@ -243,9 +243,7 @@
{
for (unsigned int varyingIndex = 0; varyingIndex < mVaryings.size(); varyingIndex++)
{
- Varying *varying = &mVaryings[varyingIndex];
- varying->reg = -1;
- varying->col = -1;
+ mVaryings[varyingIndex].resetRegisterAssignment();
}
}
@@ -420,7 +418,7 @@
{
if (x.type == y.type)
{
- return x.size > y.size;
+ return x.arraySize > y.arraySize;
}
unsigned int xPriority = GL_INVALID_INDEX;