pan/bi: Enable precision lowering in standalone compiler
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 27 Mar 2020 18:39:18 +0000 (14:39 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 31 Mar 2020 01:12:26 +0000 (01:12 +0000)
..since there's no CAP to guide here.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4382>

src/panfrost/bifrost/cmdline.c

index 9d059f6d6323b082f1906e7d8caae62e2172eea1..24dd3c2d5a5582050af07b72467e32a0608803a1 100644 (file)
@@ -43,8 +43,9 @@ compile_shader(char **argv, bool vertex_only)
         };
 
         struct standalone_options options = {
-                .glsl_version = 430,
+                .glsl_version = 300, /* ES - needed for precision */
                 .do_link = true,
+                .lower_precision = true
         };
 
         static struct gl_context local_ctx;