mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 01:50:10 +01:00
nir: Print formats on image intrinsics as text
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7509>
This commit is contained in:
parent
d22fafa20b
commit
72f1c9aef5
1 changed files with 6 additions and 0 deletions
|
|
@ -906,6 +906,12 @@ print_intrinsic_instr(nir_intrinsic_instr *instr, print_state *state)
|
|||
break;
|
||||
}
|
||||
|
||||
case NIR_INTRINSIC_FORMAT: {
|
||||
enum pipe_format format = nir_intrinsic_format(instr);
|
||||
fprintf(fp, " format=%s ", util_format_short_name(format));
|
||||
break;
|
||||
}
|
||||
|
||||
case NIR_INTRINSIC_DESC_TYPE: {
|
||||
VkDescriptorType desc_type = nir_intrinsic_desc_type(instr);
|
||||
fprintf(fp, " desc_type=%s", vulkan_descriptor_type_name(desc_type));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue