mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
v3dv/util: log debug ignored stype only on debug builds
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7497>
This commit is contained in:
parent
1fa4a37256
commit
ca1969ca88
1 changed files with 4 additions and 0 deletions
|
|
@ -1769,8 +1769,12 @@ VkResult __vk_errorf(struct v3dv_instance *instance, VkResult error,
|
|||
#define vk_error(instance, error) __vk_errorf(instance, error, __FILE__, __LINE__, NULL);
|
||||
#define vk_errorf(instance, error, format, ...) __vk_errorf(instance, error, __FILE__, __LINE__, format, ## __VA_ARGS__);
|
||||
|
||||
#ifdef DEBUG
|
||||
#define v3dv_debug_ignored_stype(sType) \
|
||||
fprintf(stderr, "%s: ignored VkStructureType %u:%s\n\n", __func__, (sType), vk_StructureType_to_str(sType))
|
||||
#else
|
||||
#define v3dv_debug_ignored_stype(sType)
|
||||
#endif
|
||||
|
||||
const struct v3dv_format *v3dv_get_format(VkFormat);
|
||||
const uint8_t *v3dv_get_format_swizzle(VkFormat f);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue