[Bug 272875] New: mesa quite big
https://bugzilla.novell.com/show_bug.cgi?id=272875 Summary: mesa quite big Product: openSUSE 10.3 Version: Alpha 3plus Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: X.Org AssignedTo: sndirsch@novell.com ReportedBy: dmueller@novell.com QAContact: sndirsch@novell.com mesa package is quite big - each dri driver links a mesa lib statically and quite some files from ../common/. can they be separated into a private shared lib ? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=272875 sndirsch@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mhopf@novell.com, eich@novell.com ------- Comment #1 from sndirsch@novell.com 2007-05-09 12:31 MST ------- This sounds strange since it's the libGL which dlopen's the DRI drivers. But you're right, each DRI driver is much bigger than libGL. But I'm afraid we can't easily change this. What we could do is disabling DRI driver, which nobody uses or cannot work at all. I need to figure out which ones these are. Currently we build: /usr/lib/dri/ffb_dri.so /usr/lib/dri/i810_dri.so /usr/lib/dri/i915_dri.so /usr/lib/dri/i915tex_dri.so /usr/lib/dri/i965_dri.so /usr/lib/dri/mach64_dri.so /usr/lib/dri/mga_dri.so /usr/lib/dri/r128_dri.so /usr/lib/dri/r200_dri.so /usr/lib/dri/r300_dri.so /usr/lib/dri/radeon_dri.so /usr/lib/dri/s3v_dri.so /usr/lib/dri/savage_dri.so /usr/lib/dri/tdfx_dri.so /usr/lib/dri/trident_dri.so /usr/lib/dri/unichrome_dri.so Each one about 2,5 MB. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=272875 sndirsch@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Priority|P5 - None |P2 - High -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=272875 ------- Comment #2 from sndirsch@novell.com 2007-05-09 14:57 MST ------- (In reply to comment #1)
/usr/lib/dri/ffb_dri.so Only used on SUN/Solaris AFAIk. --> Drop
/usr/lib/dri/i810_dri.so Still used by i810/i815 AFAIK (16bit only)
/usr/lib/dri/i915_dri.so /usr/lib/dri/i915tex_dri.so 830/845/855/865/915G/915GM/945G/945GM (which of these two drivers?)
/usr/lib/dri/i965_dri.so 965G/965GM
/usr/lib/dri/mach64_dri.so ATI Mach64. No upstream DRM kernel module. Cannot work. --> Drop
/usr/lib/dri/mga_dri.so Matrox. /usr/lib/dri/r128_dri.so ATI Rage 128 /usr/lib/dri/r200_dri.so ATI R200 /usr/lib/dri/r300_dri.so ATI R300 <= x < ATI R500
/usr/lib/dri/radeon_dri.so ATI Radeon
/usr/lib/dri/s3v_dri.so S3 ViRGE. No DRM upstream kernel module. Cannot work. --> Drop
/usr/lib/dri/savage_dri.so S3 Savage.
/usr/lib/dri/tdfx_dri.so 3Dfx.
/usr/lib/dri/trident_dri.so Trident. No DRM upstream kernel module. Cannot work. --> Drop
/usr/lib/dri/unichrome_dri.so VIA.
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=272875 ------- Comment #3 from sndirsch@novell.com 2007-05-09 15:00 MST -------
/usr/lib/dri/i915_dri.so /usr/lib/dri/i915tex_dri.so 830/845/855/865/915G/915GM/945G/945GM (which of these two drivers?)
We need both. # man intel [...] Option "Legacy3D" "boolean" Enable support for the legacy i915_dri.so 3D driver. This will, among other things, make the 2D driver tell libGL to load the 3D driver i915_dri.so instead of the newer i915tex_dri.so. This option is only used for chipsets in the range i830-i945. Default for i830-i945 series: Enabled for i915 drm versions < 1.7.0. Otherwise disabled. Default for i810: The option is not used. Default for i965: The option is always true. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=272875 ------- Comment #4 from dmueller@novell.com 2007-05-09 15:05 MST ------- given that dri 1.7 support isn't there in our kernel, I guess one of it can be dropped. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=272875 ------- Comment #5 from dmueller@novell.com 2007-05-09 15:06 MST ------- from the build log: ./../../../../bin/mklib -noprefix -o i915tex_dri.so \ ../../common/driverfuncs.o ../common/utils.o ../common/texmem.o ./common/vblank.o ../common/dr i_util.o ../common/xmlconfig.o ../common/drirenderbuffer.o ./common/dri_bufmgr.o ../common/dri_drmpool.o i830_ context.o i830_metaops.o i830_state.o i830_texblend.o i830_tex.o i830_texstate.o i830_vtbl.o intel_render.o int el_regions.o intel_buffer_objects.o intel_batchbuffer.o intel_mipmap_tree.o i915_tex_layout.o intel_tex_layout. o intel_tex_image.o intel_tex_subimage.o intel_tex_copy.o intel_tex_validate.o intel_tex_format.o intel_tex.o i ntel_pixel.o intel_pixel_copy.o intel_pixel_read.o intel_pixel_draw.o intel_buffers.o intel_blit.o i915_tex.o i 915_texstate.o i915_context.o i915_debug.o i915_fragprog.o i915_metaops.o i915_program.o i915_state.o i915_vtbl o intel_context.o intel_ioctl.o intel_rotate.o intel_screen.o intel_span.o intel_state.o intel_tris.o intel_fb o.o intel_depthstencil.o intel_batchpool.o ../../../../../src/mesa/libmesa.a -L/usr/X11R6/lib -lm -lpthread -lexpat -ldl `pkg-config --libs libdrm` this is the same for all of those _dri drivers. two things to observe: a) all dri drivers link stuff from ../common/*.o directly b) all of them link ../../../../../src/mesa/libmesa.a using a shared lib for libmesa and linking it instead of including the whole archive into each dri lib should significantly reduce size, so that we don't have to drop some of the dri drivers. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=272875 ------- Comment #6 from sndirsch@novell.com 2007-05-09 15:15 MST ------- (In reply to comment #4)
given that dri 1.7 support isn't there in our kernel, I guess one of it can be dropped. Well. I still hope to get this in the kernel until openSUSE 10.3 will be released.
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=272875 ------- Comment #7 from sndirsch@novell.com 2007-05-09 15:47 MST ------- The linking issue should be discussed upstream. Actually it looks strange. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=272875 dmueller@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- OtherBugsDependingO| |273170 nThis| | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=272875 ------- Comment #8 from dmueller@novell.com 2007-05-10 07:17 MST ------- I'd like to first find out why it is done the way it is done. right now Mesa is 15% of the size of kdebase3-SuSE and its dependencies. thats quite a lot. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=272875 ------- Comment #9 from dmueller@novell.com 2007-05-10 07:17 MST ------- Created an attachment (id=138984) --> (https://bugzilla.novell.com/attachment.cgi?id=138984&action=view) dependency graph (rpm size) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=272875 ------- Comment #10 from mhopf@novell.com 2007-05-10 08:12 MST ------- (In reply to comment #2)
/usr/lib/dri/i915_dri.so /usr/lib/dri/i915tex_dri.so 830/845/855/865/915G/915GM/945G/945GM (which of these two drivers?)
i915tex is the new (beta) driver, using the new memory manager.
/usr/lib/dri/tdfx_dri.so 3Dfx.
Kick it. This is truly legacy. (In reply to comment #4)
given that dri 1.7 support isn't there in our kernel, I guess one of it can be dropped.
I assume that will soon be here, then we need both. No need to nuke it for a single openSUSE version. (In reply to comment #8)
I'd like to first find out why it is done the way it is done. right now Mesa is 15% of the size of kdebase3-SuSE and its dependencies. thats quite a lot.
Agreed. I asked on the mailing list. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=272875 ------- Comment #14 from sndirsch@novell.com 2007-05-10 11:24 MST -------
/usr/lib/dri/tdfx_dri.so 3Dfx. Kick it. This is truly legacy.
Indeed. We no longer support 3D support with 3Dfx cards. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=272875 sndirsch@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |dmueller@novell.com ------- Comment #16 from sndirsch@novell.com 2007-05-11 04:32 MST ------- Dirk, just for my convenience :-). Could you attach your patch? Thanks. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=272875 ------- Comment #18 from dmueller@novell.com 2007-05-14 06:15 MST ------- Created an attachment (id=139739) --> (https://bugzilla.novell.com/attachment.cgi?id=139739&action=view) link-shared.diff 15MB -> 3.7MB rpmsize. i386 tested, other platforms untested. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=272875 dmueller@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|dmueller@novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=272875 sndirsch@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED ------- Comment #20 from sndirsch@novell.com 2007-05-14 14:16 MST ------- Patch applied. Fixed. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=272875 pierre.baldensperger@wanadoo.fr changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | ------- Comment #21 from pierre.baldensperger@wanadoo.fr 2007-05-19 16:25 MST ------- (In reply to comment #20)
Patch applied. Fixed.
Updated to this package lately and it does not seem to work for me. Xorg says DRI is enabled but glxinfo doesn't agree. Somehow, the problem seems to be related to this shared library modification. Trying to enable AIGLX or enabling LIBGL_DEBUG results in the following message (in Xorg.log and stderr respectively): libGL error: dlopen /usr/lib/dri/r200_dri.so failed (/usr/lib/dri/r200_dri.so: undefined symbol: _generic_read_RGBA_span_RGB565_MMX) After looking around, this symbol is in libmesa_private, but nm says it is local (not external):
nm /usr/lib/libmesa_private.so.1.0 | grep _generic_read_RGBA_span_RGB565_MMX
00187cf0 t _generic_read_RGBA_span_RGB565_MMX ..so the linker resolution fails. Maybe I'm missing something... But I'll dare re-open this bug just in case... Sorry if this comment had nothing to do here. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=272875 sndirsch@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |ASSIGNED -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=272875 dmueller@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|sndirsch@novell.com |dmueller@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=272875 ------- Comment #22 from dmueller@novell.com 2007-05-22 07:12 MST ------- *grmbl*. mesa doesn't even build modules with -Wl,--no-undefined. x86 is fixed, now testing the other platforms -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=272875 dmueller@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED ------- Comment #23 from dmueller@novell.com 2007-05-22 07:56 MST ------- ->FIXED -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=272875 ------- Comment #24 from sndirsch@novell.com 2007-05-22 09:02 MST ------- Thanks, Dirk. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com