zink: Added inbuilt debug logging from the VK_LAYER_LUNARG_standard_validation layer.
authorDuncan Hopkins <duncan@duncanhopkins.me.uk>
Wed, 4 Nov 2020 15:41:11 +0000 (15:41 +0000)
committerMarge Bot <eric+marge@anholt.net>
Fri, 6 Nov 2020 13:44:20 +0000 (13:44 +0000)
commitfeb9462bb19096ecfcc11b42d5474c6309594cd9
tree30d464df4021bb24ee152fb274227c06195d041b
parent10d44fec2dd353c2926ae882af47df3ec3b10ea2
zink: Added inbuilt debug logging from the VK_LAYER_LUNARG_standard_validation layer.

Set the ZINK_DEBUG environment variable to 'validation' to automatically setup.
The debug util extnsion callback is used to capture information and logs the results to the error stream.

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7431>
src/gallium/drivers/zink/zink_screen.c
src/gallium/drivers/zink/zink_screen.h