Replace switch statements in instanced vertex shaders
authorcsmartdalton <csmartdalton@google.com>
Wed, 13 Jul 2016 15:48:53 +0000 (08:48 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 13 Jul 2016 15:48:53 +0000 (08:48 -0700)
commit0caee1778d92c30ff6eb053f7fb58509d275a2df
tree0f5c6a2b911155c73fc8a51dd9d03db278fc36d4
parentb3772dcb306241f53fe10ba62117ed67f89f24b2
Replace switch statements in instanced vertex shaders

Replaces switch statements with 3-way if’s. The switches as they were
seemed to be the cause of an Adreno compiler crash.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2136103011

Review-Url: https://codereview.chromium.org/2136103011
src/gpu/instanced/InstanceProcessor.cpp