Olli Etuaho | 5c407bb | 2015-06-01 12:20:39 +0300 | [diff] [blame] | 1 | // |
| 2 | // Copyright (c) 2002-2015 The ANGLE Project Authors. All rights reserved. |
| 3 | // Use of this source code is governed by a BSD-style license that can be |
| 4 | // found in the LICENSE file. |
| 5 | // |
| 6 | // RemovePow is an AST traverser to convert pow(x, y) built-in calls where y is a |
| 7 | // constant to exp2(y * log2(x)). This works around an issue in NVIDIA 311 series |
| 8 | // OpenGL drivers. |
| 9 | // |
| 10 | |
| 11 | #ifndef COMPILER_TRANSLATOR_REMOVEPOW_H_ |
| 12 | #define COMPILER_TRANSLATOR_REMOVEPOW_H_ |
| 13 | |
Jamie Madill | 45bcc78 | 2016-11-07 13:58:48 -0500 | [diff] [blame] | 14 | namespace sh |
| 15 | { |
Olli Etuaho | 5c407bb | 2015-06-01 12:20:39 +0300 | [diff] [blame] | 16 | class TIntermNode; |
| 17 | |
| 18 | void RemovePow(TIntermNode *root); |
Jamie Madill | 45bcc78 | 2016-11-07 13:58:48 -0500 | [diff] [blame] | 19 | } // namespace sh |
Olli Etuaho | 5c407bb | 2015-06-01 12:20:39 +0300 | [diff] [blame] | 20 | |
Jamie Madill | d7b1ab5 | 2016-12-12 14:42:19 -0500 | [diff] [blame] | 21 | #endif // COMPILER_TRANSLATOR_REMOVEPOW_H_ |