diff options
Diffstat (limited to 'src/compiler/glsl/tests/lower_precision_test.py')
-rw-r--r-- | src/compiler/glsl/tests/lower_precision_test.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/compiler/glsl/tests/lower_precision_test.py b/src/compiler/glsl/tests/lower_precision_test.py index 0934e61e4ab..3626d8d2a4b 100644 --- a/src/compiler/glsl/tests/lower_precision_test.py +++ b/src/compiler/glsl/tests/lower_precision_test.py @@ -1035,6 +1035,34 @@ TESTS = [ } """, r'\(expression +uint16_t min'), + Test("dFdx", + """ + #version 300 es + precision mediump float; + + in vec4 var; + out vec4 color; + + void main() + { + color = dFdx(var); + } + """, + r'\(expression +f16vec4 +dFdx +\(expression +f16vec4'), + Test("dFdy", + """ + #version 300 es + precision mediump float; + + in vec4 var; + out vec4 color; + + void main() + { + color = dFdy(var); + } + """, + r'\(expression +f16vec4 +dFdy +\(expression +f16vec4'), ] |