Added meson test for standalone compiler with --dump-builder option
on builtin texture* functions.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107767
Signed-off-by: Yevhenii Kolesnikov <yevhenii.kolesnikov@globallogic.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
],
suite : ['compiler', 'glsl'],
)
+
+if with_tools.contains('glsl')
+ test(
+ 'glsl dump-builder test',
+ glsl_compiler,
+ args : ['--version', '110', '--dump-builder',
+ join_paths(meson.current_source_dir(), 'standalone_dump-builder.frag'),
+ ],
+ suite : ['compiler', 'glsl'],
+ )
+endif
--- /dev/null
+varying vec2 Var_18;
+uniform sampler2D Var_19;
+uniform sampler2D Var_1A;
+uniform float Var_1B;
+void main()
+{
+ vec3 Var_21 = texture2D(Var_19, Var_18).xyz;
+ vec3 Var_22 = texture2D(Var_1A, Var_18).xyz;
+ vec3 Var_23 = ((Var_22 - Var_21) / Var_1B);
+ (Var_22 += (Var_23 * Var_1B));
+ (gl_FragColor = vec4(Var_22, 1.0));
+}