pvr: Add PVR_DEBUG=vk_desc option to dump descriptor set layouts

Prints on every call to vkCreate{DescriptorSet,Pipeline}Layout().

Previously, this could not be turned on or off at runtime, and was
dependent on DEBUG.

Signed-off-by: Matt Coster <matt.coster@imgtec.com>
Reviewed-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23028>
This commit is contained in:
Matt Coster
2023-05-12 15:18:10 +01:00
committed by Marge Bot
parent c5195a67b8
commit b793afc0ce
3 changed files with 8 additions and 12 deletions
+2
View File
@@ -36,6 +36,8 @@ static const struct debug_named_value debug_control[] = {
"Track all buffer objects with at least one reference." },
{ "bo_zero", PVR_DEBUG_ZERO_BOS,
"Zero all buffer objects at allocation to make them deterministic." },
{ "vk_desc", PVR_DEBUG_VK_DUMP_DESCRIPTOR_SET_LAYOUT,
"Dump descriptor set and pipeline layouts." },
DEBUG_NAMED_VALUE_END
};
/* clang-format on */