Bug 21668 - [i915]fail to enable dri due to "undefined symbol: intel_generate_mipmap"
Summary: [i915]fail to enable dri due to "undefined symbol: intel_generate_mipmap"
Status: VERIFIED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/i915 (show other bugs)
Version: unspecified
Hardware: Other Linux (All)
: highest blocker
Assignee: Eric Anholt
QA Contact:
URL:
Whiteboard:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2009-05-10 19:26 UTC by liuhaien
Modified: 2009-05-12 18:34 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
xorg.0.log (80.64 KB, text/plain)
2009-05-10 19:26 UTC, liuhaien
Details
xorg conf file (4.19 KB, text/plain)
2009-05-10 19:26 UTC, liuhaien
Details
fix.patch (450 bytes, text/plain)
2009-05-10 23:54 UTC, liuhaien
Details

Description liuhaien 2009-05-10 19:26:14 UTC
Created attachment 25710 [details]
xorg.0.log

System Environment:
--------------------------
Host:		x-915gm
Platform:       915gm
Libdrm_valgrind:		(master)94d48d038502097ebfa2e33e4a75b9e0e675231d
Mesa:		(master)53c2cc8fefa07723fc456d94eda292e201c41dae
Xserver:		(master)1e816065e5ec3b9394dc1fa5815457a664e15fd9
Xf86_video_intel:		(master)8d27247829fe4f55691ce68f9f4b14810fb34b32
Kernel:       (for-linus)79f11c19a396e8cea7dad322dcfb46c0a8517fe6

Bug detailed description:
-------------------------
dri on all i915 machines can not be enabled recently. some error will come out with startx as below:
(EE) AIGLX error: dlopen of /opt/X11R7/lib/dri/i915_dri.so failed (/opt/X11R7/lib/dri/i915_dri.so: undefined symbol: intel_generate_mipmap)
(EE) AIGLX: reverting to software rendering

we try to bisect and find eric's commit cause this issue; dri works if revert  this commit.
commit 1d663ae2925ffadf419ddbea9eca8d5706ea6510
Author: Eric Anholt <eric@anholt.net>
Date:   Thu May 7 22:50:19 2009 -0700

    intel: Add a metaops version of glGenerateMipmapEXT/SGIS_generate_mipmaps.

    In addition to being HW accelerated, it avoids the incorrect
    (black) rendering of the mipmaps that SW was doing in fbo-generatemipmap.
    Improves the performance of the mipmap generation and drawing in
    fbo-generatemipmap by 30%.

this issue blocks our nightly testing on i915.
Comment 1 liuhaien 2009-05-10 19:26:35 UTC
Created attachment 25711 [details]
xorg conf file
Comment 2 liuhaien 2009-05-10 23:54:21 UTC
maybe the file "intel_generatemipmap.c" isn't compiled. I add it in src/mesa/drivers/dri/i915/Makefile. and this issue goes away. the patch is attached.
Comment 3 liuhaien 2009-05-10 23:54:56 UTC
Created attachment 25722 [details]
fix.patch
Comment 4 Eric Anholt 2009-05-12 11:30:17 UTC
commit 0fc5fa85bf858ba2ad88995f65cc48b2dab1298d
Author: Eric Anholt <eric@anholt.net>
Date:   Tue May 12 10:03:08 2009 -0700

    i915: Fix driver after HW glGenerateMipmap commit.
Comment 5 liuhaien 2009-05-12 18:34:14 UTC
verified.


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.