clamp_1 is also a no-op with 8-bit lowp

Change-Id: Ifef97d8f28c88c4ee3f7701aac6e383940ed5275
Reviewed-on: https://skia-review.googlesource.com/31020
Reviewed-by: Florin Malita <fmalita@chromium.org>
Commit-Queue: Mike Klein <mtklein@chromium.org>
This commit is contained in:
Mike Klein 2017-08-04 09:35:26 -04:00 committed by Skia Commit-Bot
parent 5910ed347a
commit f60e1627ed

View File

@ -348,8 +348,9 @@ const SkJumper_Engine& SkRasterPipeline::build_pipeline(void** ip) const {
void** reset_point = ip;
*--ip = (void*)gLowp.just_return;
for (const StageList* st = fStages; st; st = st->prev) {
if (st->stage == SkRasterPipeline::clamp_0) {
continue; // No-op in lowp.
if (st->stage == SkRasterPipeline::clamp_0 ||
st->stage == SkRasterPipeline::clamp_1) {
continue; // No-ops in lowp.
}
if (StageFn* fn = gLowp.stages[st->stage]) {
if (st->ctx) {