<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Apr 22, 2016 at 6:58 PM, Nanley Chery <span dir="ltr"><<a href="mailto:nanleychery@gmail.com" target="_blank">nanleychery@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Fri, Apr 22, 2016 at 05:22:13PM -0700, Jason Ekstrand wrote:<br>
> On Fri, Apr 22, 2016 at 4:38 PM, Nanley Chery <<a href="mailto:nanleychery@gmail.com">nanleychery@gmail.com</a>> wrote:<br>
><br>
> > From: Nanley Chery <<a href="mailto:nanley.g.chery@intel.com">nanley.g.chery@intel.com</a>><br>
> ><br>
> > Sampling from an ETC2 texture is supported on Bay Trail and<br>
> > from Gen8 onwards. While ASTC_LDR is supported on Gen9, the<br>
> > logic to handle such formats has not yet been implemented in<br>
> > the driver.<br>
> ><br>
> > Fixes dEQP-VK.api.info.format_properties.compressed_formats.<br>
> ><br>
> > v2: Enable ETC2 for Bay Trail (Kenneth Graunke)<br>
> ><br>
> > Bugzilla: <a href="https://bugs.freedesktop.org/show_bug.cgi?id=94896" rel="noreferrer" target="_blank">https://bugs.freedesktop.org/show_bug.cgi?id=94896</a><br>
> > Signed-off-by: Nanley Chery <<a href="mailto:nanley.g.chery@intel.com">nanley.g.chery@intel.com</a>><br>
> > ---<br>
> > src/intel/vulkan/anv_device.c | 5 +++--<br>
> > 1 file changed, 3 insertions(+), 2 deletions(-)<br>
> ><br>
> > diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c<br>
> > index 00edd95..4abcdf9 100644<br>
> > --- a/src/intel/vulkan/anv_device.c<br>
> > +++ b/src/intel/vulkan/anv_device.c<br>
> > @@ -380,8 +380,9 @@ void anv_GetPhysicalDeviceFeatures(<br>
> > .alphaToOne = true,<br>
> > .multiViewport = true,<br>
> > .samplerAnisotropy = false, /* FINISHME */<br>
> > - .textureCompressionETC2 = true,<br>
> > - .textureCompressionASTC_LDR = true,<br>
> > + .textureCompressionETC2 = pdevice->info->gen >= 8<br>
> > ||<br>
> > +<br>
> > pdevice->info->is_baytrail,<br>
> > + .textureCompressionASTC_LDR = false, /* FINISHME */<br>
> ><br>
><br>
> So... I thought that when I turned this on it passed all the ASTC CTS<br>
> tests. We should double-check that before turning it off.<br>
> --Jason<br>
><br>
<br>
</div></div>We currently pass the dEQP-VK.api.info.format_properties.astc* tests<br>
because they don't penalize the driver for advertising a featureless<br>
format (VkFormatProperties = {0}) when the format isn't required. The<br>
compressed_formats test fails however, because it actually references<br>
VkPhysicalDeviceFeatures and sees the discrepancy.<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote><div><br></div><div>Ok. We should try turning them on at some point and see how far we get on the CTS tests.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="HOEnZb"><font color="#888888">
- Nanley<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
><br>
> > .textureCompressionBC = true,<br>
> > .occlusionQueryPrecise = true,<br>
> > .pipelineStatisticsQuery = false,<br>
> > --<br>
> > 2.8.0<br>
> ><br>
> > _______________________________________________<br>
> > mesa-dev mailing list<br>
> > <a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
> > <a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
> ><br>
</div></div></blockquote></div><br></div></div>