From 42be975aa290359a1aaefa8d02658510a8d7172a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Tue, 23 Jun 2020 23:10:16 -0400 Subject: [PATCH] glsl: print precision qualifiers in IR dumps Reviewed-by: Alyssa Rosenzweig Part-of: --- src/compiler/glsl/ir_print_visitor.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/compiler/glsl/ir_print_visitor.cpp b/src/compiler/glsl/ir_print_visitor.cpp index 57cb5076a4f..8914c6e2d02 100644 --- a/src/compiler/glsl/ir_print_visitor.cpp +++ b/src/compiler/glsl/ir_print_visitor.cpp @@ -214,14 +214,15 @@ void ir_print_visitor::visit(ir_variable *ir) STATIC_ASSERT(ARRAY_SIZE(mode) == ir_var_mode_count); const char *const interp[] = { "", "smooth", "flat", "noperspective", "explicit" }; STATIC_ASSERT(ARRAY_SIZE(interp) == INTERP_MODE_COUNT); + const char *const precision[] = { "", "highp ", "mediump ", "lowp "}; - fprintf(f, "(%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s) ", + fprintf(f, "(%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s) ", binding, loc, component, cent, bindless, bound, image_format, memory_read_only, memory_write_only, memory_coherent, memory_volatile, memory_restrict, samp, patc, inv, explicit_inv, prec, mode[ir->data.mode], stream, - interp[ir->data.interpolation]); + interp[ir->data.interpolation], precision[ir->data.precision]); ir_print_type(f, ir->type); fprintf(f, " %s)", unique_name(ir)); -- 2.30.2