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>
(cherry picked from commit 0a52002a1c)
This commit is contained in:
Felix DeGrood 2023-04-12 00:11:00 +00:00 committed by Eric Engestrom
parent f4f4e8186f
commit 1ec9bcd844
2 changed files with 4 additions and 1 deletions

View file

@ -1012,7 +1012,7 @@
"description": "anv: disable reset query pools using blorp opt on MTL",
"nominated": false,
"nomination_type": null,
"resolution": 4,
"resolution": 1,
"main_sha": null,
"because_sha": null
},

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),