turnip: Implement VK_EXT_host_query_reset
[mesa.git] / src / freedreno / vulkan / tu_device.c
index 3d68a70204779ee42a42bec58a4111b1553b98ec..3a7b458ea4fbb89e3e3d4b019c9b71b43ed6facc 100644 (file)
@@ -482,7 +482,7 @@ tu_GetPhysicalDeviceFeatures2(VkPhysicalDevice physicalDevice,
          features->uniformBufferStandardLayout         = false;
          features->shaderSubgroupExtendedTypes         = false;
          features->separateDepthStencilLayouts         = false;
          features->uniformBufferStandardLayout         = false;
          features->shaderSubgroupExtendedTypes         = false;
          features->separateDepthStencilLayouts         = false;
-         features->hostQueryReset                      = false;
+         features->hostQueryReset                      = true;
          features->timelineSemaphore                   = false;
          features->bufferDeviceAddress                 = false;
          features->bufferDeviceAddressCaptureReplay    = false;
          features->timelineSemaphore                   = false;
          features->bufferDeviceAddress                 = false;
          features->bufferDeviceAddressCaptureReplay    = false;
@@ -612,6 +612,12 @@ tu_GetPhysicalDeviceFeatures2(VkPhysicalDevice physicalDevice,
          features->customBorderColorWithoutFormat = true;
          break;
       }
          features->customBorderColorWithoutFormat = true;
          break;
       }
+      case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_QUERY_RESET_FEATURES_EXT: {
+         VkPhysicalDeviceHostQueryResetFeaturesEXT *features =
+            (VkPhysicalDeviceHostQueryResetFeaturesEXT *)ext;
+         features->hostQueryReset = true;
+         break;
+      }
       default:
          break;
       }
       default:
          break;
       }