Summary: | glGenerateTextureMipmap not working (no errors) unless glActiveTexture(GL_TEXTURE1) is called before | ||
---|---|---|---|
Product: | Mesa | Reporter: | CapsAdmin <eliashogstvedt> |
Component: | Drivers/DRI/i965 | Assignee: | Ian Romanick <idr> |
Status: | RESOLVED FIXED | QA Contact: | Intel 3D Bugs Mailing List <intel-3d-bugs> |
Severity: | normal | ||
Priority: | medium | ||
Version: | 10.6 | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
Always bind the texture in _mesa_meta_GenerateMipmap
apitrace replay |
Description
CapsAdmin
2015-09-02 09:01:05 UTC
Created attachment 118057 [details] [review] Always bind the texture in _mesa_meta_GenerateMipmap Does this fix the problem? I'm having some issues building and installing mesa but I've attached an apitrace. The text is not supposed to have any black border around it and the snow should be white. (the text is scaled up 4x and the snow is scaled down so mip maps are being used) Created attachment 118066 [details]
apitrace replay
That seems to fix the problem here. I've sent the patch to mesa-dev for review, and I'm working on a piglit test case. Should be fixed by the commit below. I believe this is in 11.0, and it should eventually be in a 10.6 stable release. commit 767c33e88138afa64443417860b264a494eba33d Author: Ian Romanick <ian.d.romanick@intel.com> Date: Wed Sep 2 16:06:58 2015 -0700 meta: Always bind the texture We may have been called from glGenerateTextureMipmap with CurrentUnit still set to 0, so we don't know when we can skip binding the texture. Assume that _mesa_BindTexture will be fast if we're rebinding the same texture. v2: Remove currentTexUnitSave because it is now unused. Suggested by both Neil and Anuj. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91847 Cc: "11.0" <mesa-stable@lists.freedesktop.org> Reviewed-by: Neil Roberts <neil@linux.intel.com> Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com> |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.