Bug 19666 - [i915 FBO] Glean case/fbo failed in rendering to depth texture
Summary: [i915 FBO] Glean case/fbo failed in rendering to depth texture
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/i915 (show other bugs)
Version: unspecified
Hardware: Other Linux (All)
: low normal
Assignee: Eric Anholt
QA Contact:
Depends on:
Blocks: intel-3d-release
  Show dependency treegraph
Reported: 2009-01-20 19:45 UTC by zhao jian
Modified: 2019-09-18 19:32 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:

xorg.conf (3.76 KB, text/plain)
2009-01-20 19:45 UTC, zhao jian
xorg.0.log (69.09 KB, text/plain)
2009-01-20 19:45 UTC, zhao jian
test result of fbo (2.21 KB, text/plain)
2009-01-20 19:46 UTC, zhao jian

Description zhao jian 2009-01-20 19:45:13 UTC
Created attachment 22117 [details]

System Environment:
Host:           x-945gm
Arch:           i386
OSD:            Fedora release 9 (Sulphur)
Kernel:         2.6.28
Libdrm:         (master)18d3cc076b53f2032eed1f9a4b21947f4cb9e4e7
Mesa_stable:            (intel-2008-q4)200fa9165d7078a6f36c5c9d3e0c997c2438bde3
Xorg:           7.2
Xserver_stable:  (server-1.6-branch)  251d0d8090322b2c9dc0c8b7bef001f338d19433
Xf86_video_intel_stable:  (xf86-video-intel-2.6-branch)5cd65d965c8ed388275fe2084553302aad601d4a

Bug detailed description:
On 915 or 945 machines, run the test case of fbo in glean cases then you will find "rendering to depth texture failed". 

Reproduce Steps:
1. xinit&
2. gnome-session&
3. run the glean cases.
Comment 1 zhao jian 2009-01-20 19:45:44 UTC
Created attachment 22118 [details]
Comment 2 zhao jian 2009-01-20 19:46:23 UTC
Created attachment 22119 [details]
test result of fbo
Comment 3 Eric Anholt 2009-10-23 14:59:13 UTC
Comment 4 zhao jian 2009-11-15 23:33:53 UTC
(In reply to comment #3)
> bisect?

But I find it failed from 20080826, the day GL_EXT_framebuffer_object was supported. Before that it was not supported.
Comment 5 Eric Anholt 2009-11-16 17:52:01 UTC
OK, we don't really expect bug reports for always-failing testcases at this point -- our priority is regressions and improving issues that are impacting applications.
Comment 6 Eric Anholt 2010-09-24 11:35:50 UTC
This was a bug in the testcase when handling an unsupported framebuffer in a previous test.  Yet another reason why you should never build tests that test more than one thing at a time.

commit 35122d69307f0b9c88bc143715f616be80ac5cae
Author: Eric Anholt <eric@anholt.net>
Date:   Fri Sep 24 11:28:49 2010 -0700

    glean/tfbo: Properly clean up when the driver reports unsupported.
    Fixes spurious test failures on the intel driver.
Comment 7 zhao jian 2010-12-29 22:17:03 UTC
It still fails on Pineview now with the same error info as following. 

libGL: OpenDriver: trying /opt/X11R7/lib/dri/i915_dri.so
GL_EXT_framebuffer_object is supported
GL_ARB_framebuffer_object is not supported
  depth = 0, stencil = 1
  (0, 0) = [0.000000, 0.000000, 0.000000], is expected to be[1.000000, 0.000000, 0.000000]
FAILURE: Render to single texture failed (at tfbo.cpp:850)
  mode = 2
  depth = 1, stencil = 0
  (14, 0) = [0.749020, 0.749020, 0.749020], is expected to be[1.000000, 1.000000, 1.000000]
FAILURE: Render to depth texture failed (at tfbo.cpp:1155)
fbo:  FAIL rgba8, db, z24, s8, win+pmap, id 33
        6 tests passed, 2 tests failed.

Tested with: 

Libdrm:        (master)2.4.23-4-gbad5242a59aa8e31cf10749e2ac69b3c66ef7da0
Mesa:        (master)df4d83dca4618eb7077637865763d3e9ab750d11
Xf86_video_intel:        (master)
Cairo:        (master)a4ae7d59be2e545afc30c35b2235b89860e2003a
Kernel:    (drm-intel-next) 608ca70d22c0ea0d52aa71f52b8e326055c274d1
Comment 8 zhao jian 2010-12-29 23:26:37 UTC
some more info is I tested it with both the glean source contained in piglit test and the glean source from glean.git.sourceforge.net.
Comment 9 GitLab Migration User 2019-09-18 19:32:20 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/672.

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.