summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_device.c
diff options
context:
space:
mode:
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>2016-10-07 13:53:04 +0100
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>2016-10-10 09:25:38 +0100
commit014bd4acb8b130fb31ec00f6125b8a91881bebdf (patch)
tree43f11eb983199cda2932e76a5e000a7045baef88 /src/intel/vulkan/anv_device.c
parentba43768a1e9740076825a873001e1d7a3259742b (diff)
downloadexternal_mesa3d-014bd4acb8b130fb31ec00f6125b8a91881bebdf.zip
external_mesa3d-014bd4acb8b130fb31ec00f6125b8a91881bebdf.tar.gz
external_mesa3d-014bd4acb8b130fb31ec00f6125b8a91881bebdf.tar.bz2
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 <lionel.g.landwerlin@intel.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Diffstat (limited to 'src/intel/vulkan/anv_device.c')
-rw-r--r--src/intel/vulkan/anv_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
index 9f8fa33..02246ba 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 */