mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
nir/print: Pretty-print color0/1_interp
These are an enum. Furthermore, their 0 state is INTERP_MODE_NONE which we shouldn't bother printing at all. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Reviewed-by: Emma Anholt <emma@anholt.net> Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21091>
This commit is contained in:
parent
b235be1fd4
commit
93db6094a1
1 changed files with 8 additions and 2 deletions
|
|
@ -2027,11 +2027,17 @@ print_shader_info(const struct shader_info *info, FILE *fp)
|
|||
|
||||
print_nz_unsigned(fp, "depth_layout", info->fs.depth_layout);
|
||||
|
||||
fprintf(fp, "color0_interp: %u\n", info->fs.color0_interp);
|
||||
if (info->fs.color0_interp != INTERP_MODE_NONE) {
|
||||
fprintf(fp, "color0_interp: %s\n",
|
||||
glsl_interp_mode_name(info->fs.color0_interp));
|
||||
}
|
||||
print_nz_bool(fp, "color0_sample", info->fs.color0_sample);
|
||||
print_nz_bool(fp, "color0_centroid", info->fs.color0_centroid);
|
||||
|
||||
fprintf(fp, "color1_interp: %u\n", info->fs.color1_interp);
|
||||
if (info->fs.color1_interp != INTERP_MODE_NONE) {
|
||||
fprintf(fp, "color1_interp: %s\n",
|
||||
glsl_interp_mode_name(info->fs.color1_interp));
|
||||
}
|
||||
print_nz_bool(fp, "color1_sample", info->fs.color1_sample);
|
||||
print_nz_bool(fp, "color1_centroid", info->fs.color1_centroid);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue