radv: Add option to print errors even in optimized builds.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 30 May 2018 23:06:41 +0000 (01:06 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 31 May 2018 09:51:23 +0000 (11:51 +0200)
commit38933c11514696505e49fd8036ebd1d1e62fa6ec
tree829a3ff8410c47d48761ce20214e94a9e07b3cb3
parent729f7373deaf98d860ef95be36ef8af267218bc3
radv: Add option to print errors even in optimized builds.

Errors are not that common of a case so we can eat a slight perf
hit in having to call a function and do a runtime check.

In turn this makes debugging random errors happening for end users
easier, because they don't have to have a debug build on hand.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
14 files changed:
src/amd/vulkan/radv_android.c
src/amd/vulkan/radv_cmd_buffer.c
src/amd/vulkan/radv_debug.h
src/amd/vulkan/radv_descriptor_set.c
src/amd/vulkan/radv_device.c
src/amd/vulkan/radv_formats.c
src/amd/vulkan/radv_image.c
src/amd/vulkan/radv_pass.c
src/amd/vulkan/radv_pipeline.c
src/amd/vulkan/radv_pipeline_cache.c
src/amd/vulkan/radv_private.h
src/amd/vulkan/radv_query.c
src/amd/vulkan/radv_shader.c
src/amd/vulkan/radv_util.c