nir/print: show variable precision
Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4071>
This commit is contained in:
parent
10eee6d8c6
commit
3535797e8c
|
@ -478,6 +478,16 @@ print_var_decl(nir_variable *var, print_state *state)
|
|||
fprintf(fp, "%s ", util_format_short_name(var->data.image.format));
|
||||
}
|
||||
|
||||
if (var->data.precision) {
|
||||
const char *precisions[] = {
|
||||
"",
|
||||
"highp",
|
||||
"mediump",
|
||||
"lowp",
|
||||
};
|
||||
fprintf(fp, "%s ", precisions[var->data.precision]);
|
||||
}
|
||||
|
||||
fprintf(fp, "%s %s", glsl_get_type_name(var->type),
|
||||
get_var_name(var, state));
|
||||
|
||||
|
|
Loading…
Reference in New Issue