Commit efe9232c by Nicolas Capens

Fix unintended switch case fall-through.

Bug 21766174 Change-Id: I1428bcceb2fbf6c649632112f773c3a0625e3775 Reviewed-on: https://swiftshader-review.googlesource.com/3479Reviewed-by: 's avatarNicolas Capens <capn@google.com> Tested-by: 's avatarNicolas Capens <capn@google.com>
parent b2b498e7
...@@ -1881,6 +1881,7 @@ void Context::applyTextures() ...@@ -1881,6 +1881,7 @@ void Context::applyTextures()
// Cv = Cs, Av = Ap // Cv = Cs, Av = Ap
device->setStageOperation(unit, sw::TextureStage::STAGE_SELECTARG1); device->setStageOperation(unit, sw::TextureStage::STAGE_SELECTARG1);
device->setStageOperationAlpha(unit, sw::TextureStage::STAGE_SELECTARG2); device->setStageOperationAlpha(unit, sw::TextureStage::STAGE_SELECTARG2);
break;
case GL_LUMINANCE_ALPHA: case GL_LUMINANCE_ALPHA:
case GL_RGBA: case GL_RGBA:
case GL_BGRA_EXT: case GL_BGRA_EXT:
...@@ -1904,6 +1905,7 @@ void Context::applyTextures() ...@@ -1904,6 +1905,7 @@ void Context::applyTextures()
// Cv = CpCs, Av = Ap // Cv = CpCs, Av = Ap
device->setStageOperation(unit, sw::TextureStage::STAGE_MODULATE); device->setStageOperation(unit, sw::TextureStage::STAGE_MODULATE);
device->setStageOperationAlpha(unit, sw::TextureStage::STAGE_SELECTARG2); device->setStageOperationAlpha(unit, sw::TextureStage::STAGE_SELECTARG2);
break;
case GL_LUMINANCE_ALPHA: case GL_LUMINANCE_ALPHA:
case GL_RGBA: case GL_RGBA:
case GL_BGRA_EXT: case GL_BGRA_EXT:
...@@ -1928,6 +1930,7 @@ void Context::applyTextures() ...@@ -1928,6 +1930,7 @@ void Context::applyTextures()
// Cv = Cs, Av = Ap // Cv = Cs, Av = Ap
device->setStageOperation(unit, sw::TextureStage::STAGE_SELECTARG1); device->setStageOperation(unit, sw::TextureStage::STAGE_SELECTARG1);
device->setStageOperationAlpha(unit, sw::TextureStage::STAGE_SELECTARG2); device->setStageOperationAlpha(unit, sw::TextureStage::STAGE_SELECTARG2);
break;
case GL_RGBA: case GL_RGBA:
case GL_BGRA_EXT: case GL_BGRA_EXT:
// Cv = Cp(1 ? As) + CsAs, Av = Ap // Cv = Cp(1 ? As) + CsAs, Av = Ap
...@@ -1950,6 +1953,7 @@ void Context::applyTextures() ...@@ -1950,6 +1953,7 @@ void Context::applyTextures()
// Cv = Cp(1 ? Cs) + CcCs, Av = Ap // Cv = Cp(1 ? Cs) + CcCs, Av = Ap
device->setStageOperation(unit, sw::TextureStage::STAGE_LERP); // Arg3 * (Arg1 - Arg2) + Arg2 device->setStageOperation(unit, sw::TextureStage::STAGE_LERP); // Arg3 * (Arg1 - Arg2) + Arg2
device->setStageOperationAlpha(unit, sw::TextureStage::STAGE_SELECTARG2); device->setStageOperationAlpha(unit, sw::TextureStage::STAGE_SELECTARG2);
break;
case GL_LUMINANCE_ALPHA: case GL_LUMINANCE_ALPHA:
case GL_RGBA: case GL_RGBA:
case GL_BGRA_EXT: case GL_BGRA_EXT:
...@@ -1973,6 +1977,7 @@ void Context::applyTextures() ...@@ -1973,6 +1977,7 @@ void Context::applyTextures()
// Cv = Cp + Cs, Av = Ap // Cv = Cp + Cs, Av = Ap
device->setStageOperation(unit, sw::TextureStage::STAGE_ADD); device->setStageOperation(unit, sw::TextureStage::STAGE_ADD);
device->setStageOperationAlpha(unit, sw::TextureStage::STAGE_SELECTARG2); device->setStageOperationAlpha(unit, sw::TextureStage::STAGE_SELECTARG2);
break;
case GL_LUMINANCE_ALPHA: case GL_LUMINANCE_ALPHA:
case GL_RGBA: case GL_RGBA:
case GL_BGRA_EXT: case GL_BGRA_EXT:
......
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