From efb17fc4f116a7cc01548af1d7c766f9c39db595 Mon Sep 17 00:00:00 2001 From: Iago Toral Quiroga Date: Wed, 11 May 2022 12:33:11 +0200 Subject: [PATCH] v3dv: explicitly set sampler min/max filter properties to false MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Our hardware doesn't support min/max filtering. Reviewed-by: Alejandro PiƱeiro Part-of: --- src/broadcom/vulkan/v3dv_device.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/broadcom/vulkan/v3dv_device.c b/src/broadcom/vulkan/v3dv_device.c index 21e264a8663..d6073b28601 100644 --- a/src/broadcom/vulkan/v3dv_device.c +++ b/src/broadcom/vulkan/v3dv_device.c @@ -1564,7 +1564,6 @@ v3dv_GetPhysicalDeviceProperties2(VkPhysicalDevice physicalDevice, .subminor = 7, .patch = 1, }, - .supportedDepthResolveModes = VK_RESOLVE_MODE_SAMPLE_ZERO_BIT, .supportedStencilResolveModes = VK_RESOLVE_MODE_SAMPLE_ZERO_BIT, /* FIXME: if we want to support independentResolveNone then we would @@ -1603,6 +1602,10 @@ v3dv_GetPhysicalDeviceProperties2(VkPhysicalDevice physicalDevice, .shaderRoundingModeRTZFloat16 = false, .shaderRoundingModeRTZFloat32 = false, .shaderRoundingModeRTZFloat64 = false, + + /* V3D doesn't support min/max filtering */ + .filterMinmaxSingleComponentFormats = false, + .filterMinmaxImageComponentMapping = false, }; memset(vk12.driverName, 0, VK_MAX_DRIVER_NAME_SIZE); snprintf(vk12.driverName, VK_MAX_DRIVER_NAME_SIZE, "V3DV Mesa");