mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 04:10:10 +01:00
isl: add print helpers for debug
Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Ivan Briano <ivan.briano@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27169>
This commit is contained in:
parent
58c9f817cb
commit
0bc6462924
2 changed files with 42 additions and 0 deletions
|
|
@ -4408,3 +4408,39 @@ isl_tiling_to_name(enum isl_tiling tiling)
|
|||
assert(tiling < ARRAY_SIZE(names));
|
||||
return names[tiling];
|
||||
}
|
||||
|
||||
const char *
|
||||
isl_aux_usage_to_name(enum isl_aux_usage usage)
|
||||
{
|
||||
static const char *names[] = {
|
||||
[ISL_AUX_USAGE_NONE] = "none",
|
||||
[ISL_AUX_USAGE_HIZ] = "hiz",
|
||||
[ISL_AUX_USAGE_MCS] = "mcs",
|
||||
[ISL_AUX_USAGE_CCS_D] = "ccs-d",
|
||||
[ISL_AUX_USAGE_CCS_E] = "ccs-e",
|
||||
[ISL_AUX_USAGE_FCV_CCS_E] = "fcv-ccs-e",
|
||||
[ISL_AUX_USAGE_MC] = "mc",
|
||||
[ISL_AUX_USAGE_HIZ_CCS_WT] = "hiz-ccs-wt",
|
||||
[ISL_AUX_USAGE_HIZ_CCS] = "hiz-ccs",
|
||||
[ISL_AUX_USAGE_MCS_CCS] = "mcs-ccs",
|
||||
[ISL_AUX_USAGE_STC_CCS] = "stc-ccs",
|
||||
};
|
||||
assert(usage < ARRAY_SIZE(names));
|
||||
return names[usage];
|
||||
}
|
||||
|
||||
const char *
|
||||
isl_aux_state_to_name(enum isl_aux_state state)
|
||||
{
|
||||
static const char *names[] = {
|
||||
[ISL_AUX_STATE_CLEAR] = "clear",
|
||||
[ISL_AUX_STATE_PARTIAL_CLEAR] = "partial_clear",
|
||||
[ISL_AUX_STATE_COMPRESSED_CLEAR] = "compressed_clear",
|
||||
[ISL_AUX_STATE_COMPRESSED_NO_CLEAR] = "compressed_no_clear",
|
||||
[ISL_AUX_STATE_RESOLVED] = "resolved",
|
||||
[ISL_AUX_STATE_PASS_THROUGH] = "pass-through",
|
||||
[ISL_AUX_STATE_AUX_INVALID] = "invalid",
|
||||
};
|
||||
assert(state < ARRAY_SIZE(names));
|
||||
return names[state];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3133,6 +3133,12 @@ isl_aux_op_to_name(enum isl_aux_op op);
|
|||
const char *
|
||||
isl_tiling_to_name(enum isl_tiling tiling);
|
||||
|
||||
const char *
|
||||
isl_aux_usage_to_name(enum isl_aux_usage usage);
|
||||
|
||||
const char *
|
||||
isl_aux_state_to_name(enum isl_aux_state state);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue