glsl: print precision qualifiers in IR dumps
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5746>
This commit is contained in:
@@ -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));
|
||||
|
Reference in New Issue
Block a user