anv: implement VK_INTEL_performance_query
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 7 Jun 2018 17:02:03 +0000 (18:02 +0100)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 23 Oct 2019 05:41:15 +0000 (05:41 +0000)
commit2b5f30b1d91b98ab27ba21439cd8a40a0d1ece36
treeca4dadd22784f705e489f55ad32103c0dfdb8d79
parent5ba6d9941b5dda95b88b924ac51133f36bd0f653
anv: implement VK_INTEL_performance_query

v2: Introduce the appropriate pipe controls
    Properly deal with changes in metric sets (using execbuf parameter)
    Record marker at query end

v3: Fill out PerfCntr1&2

v4: Introduce vkUninitializePerformanceApiINTEL

v5: Use new execbuf extension mechanism

v6: Fix comments in genX_query.c (Rafael)
    Use PIPE_CONTROL workarounds (Rafael)
    Refactor on the last kernel series update (Lionel)

v7: Only I915_PERF_IOCTL_CONFIG when perf stream is already opened (Lionel)

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Rafael Antognolli <rafael.antognolli@intel.com>
src/intel/Android.vulkan.mk
src/intel/Makefile.sources
src/intel/vulkan/anv_device.c
src/intel/vulkan/anv_extensions.py
src/intel/vulkan/anv_perf.c [new file with mode: 0644]
src/intel/vulkan/anv_private.h
src/intel/vulkan/genX_cmd_buffer.c
src/intel/vulkan/genX_query.c
src/intel/vulkan/meson.build