anv: implementation of VK_EXT_debug_report extension
authorTapani Pälli <tapani.palli@intel.com>
Wed, 23 Aug 2017 08:25:57 +0000 (11:25 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Tue, 12 Sep 2017 06:39:29 +0000 (09:39 +0300)
commit086cfa5652ec202f87c14d11e0f6c959d75987d8
tree8d64eee5da48c69e7bddc0b0e60f805800dfba09
parentab6f874439943837c06d3346385f75145e6d2775
anv: implementation of VK_EXT_debug_report extension

Patch adds required functionality for extension to manage a list of
application provided callbacks and handle debug reporting from driver
and application side.

v2: remove useless helper anv_debug_report_call
    add locking around callbacks list
    use vk_alloc2, vk_free2
    refactor CreateDebugReportCallbackEXT
    fix bugs found with crucible testing

v3: provide ANV_FROM_HANDLE and use it
    misc fixes for issues Jason found
    use vk_find_struct_const for finding ctor_cb

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/Makefile.sources
src/intel/vulkan/anv_debug_report.c [new file with mode: 0644]
src/intel/vulkan/anv_device.c
src/intel/vulkan/anv_extensions.py
src/intel/vulkan/anv_private.h