mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-20 01:20:44 +02:00
isl: add helpers to printout ops
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Rohan Garg <rohan.garg@intel.com> Acked-by: Antonio Caggiano <antonio.caggiano@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13996>
This commit is contained in:
parent
e8ea6a899f
commit
246e2c74d3
2 changed files with 18 additions and 0 deletions
|
|
@ -3489,3 +3489,17 @@ isl_get_render_compression_format(enum isl_format format)
|
|||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
const char *
|
||||
isl_aux_op_to_name(enum isl_aux_op op)
|
||||
{
|
||||
static const char *names[] = {
|
||||
[ISL_AUX_OP_NONE] = "none",
|
||||
[ISL_AUX_OP_FAST_CLEAR] = "fast-clear",
|
||||
[ISL_AUX_OP_FULL_RESOLVE] = "full-resolve",
|
||||
[ISL_AUX_OP_PARTIAL_RESOLVE] = "partial-resolve",
|
||||
[ISL_AUX_OP_AMBIGUATE] = "ambiguate",
|
||||
};
|
||||
assert(op < ARRAY_SIZE(names));
|
||||
return names[op];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2875,6 +2875,10 @@ isl_get_tile_masks(enum isl_tiling tiling, uint32_t cpp,
|
|||
*mask_x = tile_w_bytes / cpp - 1;
|
||||
*mask_y = tile_h - 1;
|
||||
}
|
||||
|
||||
const char *
|
||||
isl_aux_op_to_name(enum isl_aux_op op);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue