aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/tests/lower_precision_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/glsl/tests/lower_precision_test.py')
-rw-r--r--src/compiler/glsl/tests/lower_precision_test.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/compiler/glsl/tests/lower_precision_test.py b/src/compiler/glsl/tests/lower_precision_test.py
index 65f3e25b0d7..9651a066ed6 100644
--- a/src/compiler/glsl/tests/lower_precision_test.py
+++ b/src/compiler/glsl/tests/lower_precision_test.py
@@ -1161,6 +1161,21 @@ TESTS = [
}
""",
r'\(expression +f16vec4 +dFdy +\(expression +f16vec4'),
+ Test("textureSize",
+ """
+ #version 310 es
+ precision mediump float;
+ precision mediump int;
+
+ uniform mediump sampler2D tex;
+ out ivec2 color;
+
+ void main()
+ {
+ color = textureSize(tex, 0) * ivec2(2);
+ }
+ """,
+ r'expression ivec2 \* \(txs ivec2 \(var_ref tex'),
]