anv: disable reset query pools using blorp opt on MTL

This optimization causes some MTL tests to run forever. Not
yet sure why. Disabling optimization until we have a fix.

Reviewed-by: Mark Janes <markjanes@swizzler.org>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22373>
This commit is contained in:
Felix DeGrood
2023-04-12 00:11:00 +00:00
committed by Marge Bot
parent 6405a38aeb
commit 0a52002a1c

View File

@@ -784,7 +784,10 @@ void genX(CmdResetQueryPool)(
ANV_FROM_HANDLE(anv_query_pool, pool, queryPool);
struct anv_physical_device *pdevice = cmd_buffer->device->physical;
/* Temporarily disable on MTL until we understand why some tests hang.
*/
if (queryCount >= pdevice->instance->query_clear_with_blorp_threshold &&
!intel_device_info_is_mtl(cmd_buffer->device->info) &&
pool->type != VK_QUERY_TYPE_PERFORMANCE_QUERY_KHR) {
anv_cmd_buffer_fill_area(cmd_buffer,
anv_query_address(pool, firstQuery),