From 014bd4acb8b130fb31ec00f6125b8a91881bebdf Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Fri, 7 Oct 2016 13:53:04 +0100 Subject: [PATCH] anv: turn on samplerAnisotropy in VkPhysicalDeviceFeatures According to the Vulkan spec 5.63.4 : samplerAnisotropy indicates whether anisotropic filtering is supported. If this feature is not enabled, the maxAnisotropy member of the VkSamplerCreateInfo structure must be 1.0. Since we already set maxAnisotropy to 16 and program the hardware according to the VkSamplerCreateInfo.maxAnisotropy, it seems we can turn this on. Signed-off-by: Lionel Landwerlin Reviewed-by: Jason Ekstrand --- src/intel/vulkan/TODO | 1 - src/intel/vulkan/anv_device.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/intel/vulkan/TODO b/src/intel/vulkan/TODO index 9ac63ebc75e..4c3faadeb8d 100644 --- a/src/intel/vulkan/TODO +++ b/src/intel/vulkan/TODO @@ -5,7 +5,6 @@ Missing Features: - FP64 - Tessellation - Cull and Clip Distance - - Sampler anisotropy (Is there anything to do here?) - Image Gather Extended - Storage Image Without Format - Investigate CTS failures on HSW diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 9f8fa33e2f9..02246ba8e8a 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -418,7 +418,7 @@ void anv_GetPhysicalDeviceFeatures( .largePoints = true, .alphaToOne = true, .multiViewport = true, - .samplerAnisotropy = false, /* FINISHME */ + .samplerAnisotropy = true, .textureCompressionETC2 = pdevice->info.gen >= 8 || pdevice->info.is_baytrail, .textureCompressionASTC_LDR = pdevice->info.gen >= 9, /* FINISHME CHV */ -- 2.30.2