anv: Export filter_minmax support only when it's really supported

Fixes: bea4d4c78c ("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>
(cherry picked from commit 0fd93b9589)
This commit is contained in:
Iván Briano 2019-12-12 16:07:19 -08:00 committed by Dylan Baker
parent e3f1a59172
commit e075d33279

View file

@ -1683,7 +1683,7 @@ void anv_GetPhysicalDeviceProperties2(
VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT *properties =
(VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT *)ext;
properties->filterMinmaxImageComponentMapping = pdevice->info.gen >= 9;
properties->filterMinmaxSingleComponentFormats = true;
properties->filterMinmaxSingleComponentFormats = pdevice->info.gen >= 9;
break;
}