pvr: Don't advertise currently unsupported features
authorKarmjit Mahil <Karmjit.Mahil@imgtec.com>
Thu, 15 Dec 2022 16:34:52 +0000 (16:34 +0000)
committerMarge Bot <emma+marge@anholt.net>
Thu, 2 Mar 2023 16:33:53 +0000 (16:33 +0000)
This commit removes the advertising of features that are currently
unsupported by the driver and aren't strictly necessary for
Vulkan 1.0.

Signed-off-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
Reviewed-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21649>

src/imagination/vulkan/pvr_device.c

index c15686e..b4a69bf 100644 (file)
@@ -613,12 +613,12 @@ void pvr_GetPhysicalDeviceFeatures2(VkPhysicalDevice physicalDevice,
          PVR_HAS_FEATURE(&pdevice->dev_info, robust_buffer_access),
       .fullDrawIndexUint32 = true,
       .imageCubeArray = true,
-      .independentBlend = true,
+      .independentBlend = false,
       .geometryShader = false,
       .tessellationShader = false,
       .sampleRateShading = true,
       .dualSrcBlend = false,
-      .logicOp = true,
+      .logicOp = false,
       .multiDrawIndirect = true,
       .drawIndirectFirstInstance = true,
       .depthClamp = true,
@@ -627,13 +627,13 @@ void pvr_GetPhysicalDeviceFeatures2(VkPhysicalDevice physicalDevice,
       .depthBounds = false,
       .wideLines = true,
       .largePoints = true,
-      .alphaToOne = true,
+      .alphaToOne = false,
       .multiViewport = false,
       .samplerAnisotropy = false,
       .textureCompressionETC2 = true,
       .textureCompressionASTC_LDR = PVR_HAS_FEATURE(&pdevice->dev_info, astc),
       .textureCompressionBC = false,
-      .occlusionQueryPrecise = true,
+      .occlusionQueryPrecise = false,
       .pipelineStatisticsQuery = false,
       .vertexPipelineStoresAndAtomics = true,
       .fragmentStoresAndAtomics = true,
@@ -647,8 +647,8 @@ void pvr_GetPhysicalDeviceFeatures2(VkPhysicalDevice physicalDevice,
       .shaderSampledImageArrayDynamicIndexing = true,
       .shaderStorageBufferArrayDynamicIndexing = true,
       .shaderStorageImageArrayDynamicIndexing = true,
-      .shaderClipDistance = true,
-      .shaderCullDistance = true,
+      .shaderClipDistance = false,
+      .shaderCullDistance = false,
       .shaderFloat64 = false,
       .shaderInt64 = true,
       .shaderInt16 = true,