anv: Export filter_minmax support only when it's really supported
authorIván Briano <ivan.briano@intel.com>
Fri, 13 Dec 2019 00:07:19 +0000 (16:07 -0800)
committerMarge Bot <eric+marge@anholt.net>
Mon, 16 Dec 2019 19:24:46 +0000 (19:24 +0000)
Fixes: bea4d4c78c3 ("anv: add VK_EXT_sampler_filter_minmax support")
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3071>

src/intel/vulkan/anv_device.c

index c577abf06133fd1c65d51a343a320ad1bd63f891..e8ed58cafba27c115ca545e3547acda7bf11f2a6 100644 (file)
@@ -1668,7 +1668,7 @@ void anv_GetPhysicalDeviceProperties2(
          VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT *properties =
             (VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT *)ext;
          properties->filterMinmaxImageComponentMapping = pdevice->info.gen >= 9;
-         properties->filterMinmaxSingleComponentFormats = true;
+         properties->filterMinmaxSingleComponentFormats = pdevice->info.gen >= 9;
          break;
       }