Summary: | [bisected Ilk]oglc fbo(renderToTex.1FBOTexBorder) fails on Ironlake | ||
---|---|---|---|
Product: | Mesa | Reporter: | fangxun <xunx.fang> |
Component: | Drivers/DRI/i965 | Assignee: | Ian Romanick <idr> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | high | CC: | eric |
Version: | git | ||
Hardware: | All | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Bug Depends on: | |||
Bug Blocks: | 42993 |
Description
fangxun
2011-10-28 02:42:50 UTC
We'll want to look at the exact nature of the failure, but I don't think we care. This involves texture border, and texture borders have never really been supported by our hardware. In addition, texture borders were removed in OpenGL 3.1 and OpenGL ES 2.0. Rendering to a texture with a border should probably generate GL_FRAMEBUFFER_UNSUPPORTED. idr: We don't consider border-enabled textures incomplete, so we also consider border-enabled FBOs complete. It doesn't seem inconsistent to me, and I'd mark this as "yeah, we acknowledge this and don't plan to change it." Patch posted to the mesa-dev mailing list. http://lists.freedesktop.org/archives/mesa-dev/2012-February/018555.html Fixed on 8.0 branch by: commit 65b500857ef9ab8b6bd16bc80e7c9cc869f35750 Author: Ian Romanick <ian.d.romanick@intel.com> Date: Wed Feb 1 10:18:13 2012 -0700 intel: FBOs with texture border are unsupported FBOs differ from textures in a significant way. With textures, we can strip the border and get correct rendering except when the application fetches texels outside [0,1]. With an FBO, the pixel at (0,0) is in the border. The ARB_framebuffer_object spec says: "If the attached image is a texture image, then the window coordinates (x[w], y[w]) correspond to the texel (i, j, k), from figure 3.10 as follows: i = (x[w] - b) j = (y[w] - b) k = (layer - b) where <b> is the texture image's border width..." Since the border doesn't exist, we can never render any pixels in the correct location. Just mark these FBOs FRAMEBUFFER_UNSUPPORTED. NOTE: This is a candidate for the 8.0 branch. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Eric Anholt <eric@anholt.net> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=42336 (cherry picked from commit 87b4c9b322dabeba7c9a9d02e9efefd2c89e6625) It passes on sandybridge, but still fails on Ironlake. The test passes on SNB and GM45, but it fails on ILK. I'm inclined to believe this is another case of the infamous ILK border color bug (see bug #28942). Based on that, I'm going to reclose it. Also, this test appears to have the problem of expecting an alpha value other than 1.0 from visuals that lack an alpha channel. (In reply to comment #6) > The test passes on SNB and GM45, but it fails on ILK. I'm inclined to believe > this is another case of the infamous ILK border color bug (see bug #28942). Are you sure about the bug number? It's a telepathy bug. (In reply to comment #7) > (In reply to comment #6) > > The test passes on SNB and GM45, but it fails on ILK. I'm inclined to believe > > this is another case of the infamous ILK border color bug (see bug #28942). > > Are you sure about the bug number? It's a telepathy bug. Bug #28924. I got the last two digits backwards. Sorry. Verified it on Ironlake. |
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.