diff options
author | Marek Olšák <[email protected]> | 2020-06-23 23:10:16 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2020-07-07 22:02:06 -0400 |
commit | 42be975aa290359a1aaefa8d02658510a8d7172a (patch) | |
tree | f57db4f6862a9d5467e927a55f2334fa04871ebc | |
parent | a038863ba07a2e81df6e60ecc500b65ec4a47cb2 (diff) |
glsl: print precision qualifiers in IR dumps
Reviewed-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5746>
-rw-r--r-- | src/compiler/glsl/ir_print_visitor.cpp | 5 |
1 files 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)); |