From: Lionel Landwerlin Date: Wed, 12 Aug 2020 13:00:34 +0000 (+0200) Subject: anv: don't fail userspace relocation with perf queries X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=031f9e17d2c387a64770246c2e5801a233a8ea3c;p=mesa.git anv: don't fail userspace relocation with perf queries This is a left over from the earlier version of VK_KHR_performance_query where we used kernel relocs to implement multi passe queries. We're using self modifying batches now so we shouldn't need any relocation. Signed-off-by: Lionel Landwerlin Fixes: 2001a80d4a81f2 ("anv: Implement VK_KHR_performance_query") Reviewed-by: Dave Airlie Part-of: --- diff --git a/src/intel/vulkan/anv_batch_chain.c b/src/intel/vulkan/anv_batch_chain.c index 823345eeec1..21cead1df7b 100644 --- a/src/intel/vulkan/anv_batch_chain.c +++ b/src/intel/vulkan/anv_batch_chain.c @@ -1377,9 +1377,6 @@ static bool relocate_cmd_buffer(struct anv_cmd_buffer *cmd_buffer, struct anv_execbuf *exec) { - if (cmd_buffer->perf_query_pool) - return false; - if (!exec->has_relocs) return true;