[Mesa-dev] [PATCH] anv: turn on samplerAnisotropy in VkPhysicalDeviceFeatures

Jason Ekstrand jason at jlekstrand.net
Fri Oct 7 19:35:50 UTC 2016


On Fri, Oct 7, 2016 at 9:59 AM, Lionel Landwerlin <
lionel.g.landwerlin at intel.com> wrote:

> I should mentioned that in the commit message, but as far as I can tell,
> looking at the CTS, it doesn't seem to ever set the anisotropy value on the
> sampler to something other than 1.0f.
>

I just did a bit of grepping and I'm pretty sure there's nothing in the CTS
that tests anisotropic filtering.  I'll file a bug against the CTS.  In the
mean time, I'm pretty sure we're hooking it up correctly so

Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>


> I really need to get the details from Mark about the CI...
>
>
> On 07/10/16 17:52, Jason Ekstrand wrote:
>
> Does this enable more tests?  If so, do we pass them?
>
> On Oct 7, 2016 9:50 AM, "Lionel Landwerlin" <llandwerlin at gmail.com> wrote:
>
>> 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 at intel.com>
>> ---
>>  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 8fac370..dad9fc8 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 c7b9979..502955c 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.9.3
>>
>> _______________________________________________
>> mesa-dev mailing list
>> mesa-dev at lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20161007/97b95d7f/attachment-0001.html>


More information about the mesa-dev mailing list