Skip to content
  • Lionel Landwerlin's avatar
    anv: Implement VK_KHR_performance_query · 2001a80d
    Lionel Landwerlin authored
    
    
    This has the same kernel requirements are VK_INTEL_performance_query
    
    v2: Fix empty queue submit (Lionel)
    
    v3: Fix autotool build issue (Piotr Byszewski)
    
    v4: Fix Reset & Begin/End in same command buffer, using soft-pin &
        relocation on the same buffer won't work currently. This version
        uses a somewhat dirty trick in anv_execbuf_add_bo (Piotr Byszewski)
    
    v5: Fix enumeration with null pointers for either pCounters or
        pCounterDescriptions (Piotr)
        Fix return condition on enumeration (Lionel)
        Set counter uuid using sha1 hashes (Lionel)
    
    v6: Fix counters scope, should be COMMAND_KHR not COMMAND_BUFFER_KHR (Lionel)
    
    v7: Rebase (Lionel)
    
    v8: Rework checking for loaded queries (Lionel)
    
    v9: Use new i915-perf interface
    
    v10: Use anv_multialloc (Jason)
    
    v11: Implement perf query passes using self modifying batches (Lionel)
         Limit support to softpin/gen8
    
    v12: Remove spurious changes (Jason)
    
    v13: Drop relocs (Jason)
    
    v14: Avoid overwritting .sType in
         VkPerformanceCounterKHR/VkPerformanceCounterDescriptionKHR (Lionel)
    
    v15: Don't copy the entire
         VkPerformanceCounterKHR/VkPerformanceCounterDescriptionKHR (Jason)
         Reuse anv_batch rather than custom packing (Jason)
    
    v16: Fix missing MI_BB_END in reconfiguration batch
         Only report the extension with kernel support (perf_version >= 3)
    
    v17: Some cleanup of unused stuff
    
    Signed-off-by: default avatarLionel Landwerlin <lionel.g.landwerlin@intel.com>
    Reviewed-by: default avatarJason Ekstrand <jason@jlekstrand.net>
    Part-of: <!2775>
    2001a80d