Mesa (master): anv: Export filter_minmax support only when it's really supported

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Dec 16 19:46:10 UTC 2019


Module: Mesa
Branch: master
Commit: 0fd93b95898f8048ced8aa9f8db5472d4309b9e0
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0fd93b95898f8048ced8aa9f8db5472d4309b9e0

Author: Iván Briano <ivan.briano at intel.com>
Date:   Thu Dec 12 16:07:19 2019 -0800

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

Fixes: bea4d4c78c3 ("anv: add VK_EXT_sampler_filter_minmax support")

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3071>

---

 src/intel/vulkan/anv_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
index c577abf0613..e8ed58cafba 100644
--- a/src/intel/vulkan/anv_device.c
+++ b/src/intel/vulkan/anv_device.c
@@ -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;
       }
 




More information about the mesa-commit mailing list