From 8f7e28f3ae262450c5b04deded9fa23041757868 Mon Sep 17 00:00:00 2001 From: Ethan Nicholas Date: Mon, 26 Mar 2018 14:24:27 -0400 Subject: added frexp support to SkSL This includes an optimizer fix for the situation: int i; float f = frexp(foo, i); If we don't read the variable i, it is considered dead and eliminated - which then causes an error when we try to write the expression frexmp(foo, i). Bug: skia: Change-Id: Iac385e38e215455346fab62e1f4ec46fa65b3c21 Reviewed-on: https://skia-review.googlesource.com/116521 Reviewed-by: Chris Dalton Commit-Queue: Ethan Nicholas --- gn/sksl.gni | 1 + 1 file changed, 1 insertion(+) (limited to 'gn/sksl.gni') diff --git a/gn/sksl.gni b/gn/sksl.gni index 974ac16ae8..18b69c7085 100644 --- a/gn/sksl.gni +++ b/gn/sksl.gni @@ -23,6 +23,7 @@ skia_sksl_sources = [ "$_src/sksl/ir/SkSLSymbolTable.cpp", "$_src/sksl/ir/SkSLSetting.cpp", "$_src/sksl/ir/SkSLType.cpp", + "$_src/sksl/ir/SkSLVariableReference.cpp", ] skia_gpu_processor_sources = [ -- cgit v1.2.3