[Bug 100925] [HSW/BSW/BDW/SKL] Google Earth is not resolving all the details in the map correctly

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue May 9 09:31:35 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=100925

--- Comment #14 from Gary Wang <gary.c.wang at intel.com> ---
(In reply to Tapani Pälli from comment #9)
> Created attachment 131258 [details] [review]
> workaround
> 
> I did see these same/similar artifacts (like compression errors) also on
> nvidia but very faintly so started to look if this was about alpha and that
> seems the case. Not sure what the real fix is yet though.

Yes, you are right. I also test it by GL_COMPRESSED_RGBA_S3TC_DXT1_EXT for
compressed texture in glCompressedTexImage2D().

diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
index 1a00d25..9f9ffd6 100644
--- a/src/mesa/main/teximage.c
+++ b/src/mesa/main/teximage.c
@@ -2724,6 +2724,8 @@ override_internal_format(GLenum internalFormat, GLint
width, GLint height)
       return internalFormat;
    }
 #else
+   if (internalFormat == GL_COMPRESSED_RGB_S3TC_DXT1_EXT)
+      internalFormat = GL_COMPRESSED_RGBA_S3TC_DXT1_EXT;
    return internalFormat;
 #endif
 }

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-3d-bugs/attachments/20170509/79124014/attachment.html>


More information about the intel-3d-bugs mailing list