Commit 5767c7da by Nicolas Capens

Optimize fixed-function states.

Bug 18962347 Change-Id: I63dcba43c7c8383e5fcb5d2c817f1c2fb52f0e86 Reviewed-on: https://swiftshader-review.googlesource.com/1862Reviewed-by: 's avatarNicolas Capens <capn@google.com> Tested-by: 's avatarNicolas Capens <capn@google.com>
parent d05a23da
......@@ -1294,7 +1294,7 @@ namespace sw
}
// Pixel processor requires specular component
bool pixelSpecular = specularUsed(component) || fogActive();
bool pixelSpecular = specularUsed(component);
return vertexSpecular && pixelSpecular;
}
......@@ -1365,13 +1365,11 @@ namespace sw
if(texture)
{
for(int i = coordinate - 1; i >= 0; i--)
for(int i = coordinate; i >= 0; i--)
{
if(textureStage[i].stageOperation == TextureStage::STAGE_DISABLE)
{
texture = false;
break;
return false;
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment