<div dir="ltr">rb<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 11, 2017 at 4:46 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">The DXT1_RGB* format does not provide the correct behavior for Vulkan in<br>
the case where color_0 <= color_1. BC1_RGB_UNORM with a alpha set to 1<br>
provides the behavior which matches the spec.<br>
<br>
Bugzilla: <a href="https://bugs.freedesktop.org/show_bug.cgi?id=100925" rel="noreferrer" target="_blank">https://bugs.freedesktop.org/<wbr>show_bug.cgi?id=100925</a><br>
Cc: <<a href="mailto:mesa-stable@lists.freedesktop.org">mesa-stable@lists.<wbr>freedesktop.org</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_formats.c | 4 ++--<br>
 1 file changed, 2 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/src/intel/vulkan/anv_<wbr>formats.c b/src/intel/vulkan/anv_<wbr>formats.c<br>
index c39cec3800..25801e8b06 100644<br>
--- a/src/intel/vulkan/anv_<wbr>formats.c<br>
+++ b/src/intel/vulkan/anv_<wbr>formats.c<br>
@@ -179,8 +179,8 @@ static const struct anv_format anv_formats[] = {<br>
    fmt(VK_FORMAT_D24_UNORM_S8_<wbr>UINT,       ISL_FORMAT_R24_UNORM_X8_<wbr>TYPELESS),<br>
    fmt(VK_FORMAT_D32_SFLOAT_S8_<wbr>UINT,      ISL_FORMAT_R32_FLOAT),<br>
<br>
-   fmt(VK_FORMAT_BC1_RGB_UNORM_<wbr>BLOCK,     ISL_FORMAT_DXT1_RGB),<br>
-   fmt(VK_FORMAT_BC1_RGB_SRGB_<wbr>BLOCK,      ISL_FORMAT_DXT1_RGB_SRGB),<br>
+   swiz_fmt(VK_FORMAT_BC1_RGB_<wbr>UNORM_BLOCK,     ISL_FORMAT_BC1_UNORM, RGB1),<br>
+   swiz_fmt(VK_FORMAT_BC1_RGB_<wbr>SRGB_BLOCK,      ISL_FORMAT_BC1_UNORM_SRGB, RGB1),<br>
    fmt(VK_FORMAT_BC1_RGBA_UNORM_<wbr>BLOCK,    ISL_FORMAT_BC1_UNORM),<br>
    fmt(VK_FORMAT_BC1_RGBA_SRGB_<wbr>BLOCK,     ISL_FORMAT_BC1_UNORM_SRGB),<br>
    fmt(VK_FORMAT_BC2_UNORM_BLOCK,         ISL_FORMAT_BC2_UNORM),<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.12.2<br>
<br>
______________________________<wbr>_________________<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/<wbr>mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div>