mesa needs to use shared libgallium and libdricore in quantal

Bug #1117417 reported by Maarten Lankhorst
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mesa (Ubuntu)
Fix Released
Medium
Maarten Lankhorst
Precise
Invalid
Undecided
Unassigned
Quantal
Fix Released
Undecided
Unassigned
mesa-lts-quantal (Ubuntu)
Precise
Fix Released
Medium
Unassigned
Quantal
Invalid
Undecided
Unassigned

Bug Description

[Impact]
 * Right now in quantal the mesa package links a static copy of libgallium and libdricore into every driver, resulting in an enormous size.
* This does not fit on the precise LTS cd, so a sru has been made for mesa-lts-quantal where 2 additional patches have been enabled to re-enable the patches to build libgallium and libdricore shared.
* Currently this is carried as a delta for mesa-lts-quantal vs mesa, but the savings make sense for normal quantal too, else every time mesa-lts-quantal gets updated those patches have to be re-applied again.

[Test Case]
 * Quite easy to check, ls -l /usr/lib/*/dri/ and check for size, and whether they're linked against libgallium and libdricore.
* It should be around 11 mb, but currently is around 36 mb or more.
* Additional care has to be taken that nothing will break, so manually trying a simple opengl program on llvmpipe, i915, radeon and nouveau is recommended. The stderr output from "LIBGL_DEBUG=verbose glxinfo" is good enough for this purpose, and that will tell you if the driver succesfully loaded or not. I can verify this on my laptops easily for those drivers.

[Regression Potential]
 * mesa-lts-quantal and the mesa package from raring already have this change, so the chance of regressions is not deemed to be high. mesa-lts-quantal is a repackaging of the current package in quantal for precise.
* As part of the verification process, piglit will be run and watched for regressions.
* Any failure will most likely manifest itself by failing to load the dri driver, so expected failure mode is compiz failing to start.

[Other Info]
* Will also result in a new upload of mesa-lts-quantal to precise, for MRE version bump to 9.0.2, and to stay in sync to quantal.

Changed in mesa (Ubuntu):
status: In Progress → Fix Released
Changed in mesa (Ubuntu Precise):
status: New → Invalid
Changed in mesa-lts-quantal (Ubuntu Precise):
status: New → In Progress
Changed in mesa-lts-quantal (Ubuntu):
status: New → Invalid
Changed in mesa-lts-quantal (Ubuntu Precise):
importance: Undecided → Medium
Revision history for this message
Oibaf (oibaf) wrote :

Upstream is expecting to release mesa 9.1 soon. Do you plan to send the patches upstream for review and merging?

Revision history for this message
Maarten Lankhorst (mlankhorst) wrote :

I'm waiting for the packaging updates, but I believe upstream is already dealing with this. There have been some patches on the mailing list splitting up the libraries further than we already do now. I'm unsure whether they've actually landed or not, but it is very likely going to be in for 9.1.

Revision history for this message
Oibaf (oibaf) wrote :

There were some patches but they never get finished and merged. Having them upstreamed will avoid getting bitrotted at every release. Also they could be tested widely, I noticed some strange behavior in the past (gallium-3d-video-layer libraries being bigger when enabling the patch).

Changed in mesa-lts-quantal (Ubuntu Quantal):
status: New → Invalid
Changed in mesa (Ubuntu Quantal):
status: New → Triaged
Changed in mesa-lts-quantal (Ubuntu Precise):
status: In Progress → Triaged
Revision history for this message
Chris Halse Rogers (raof) wrote : Please test proposed package

Hello Maarten, or anyone else affected,

Accepted mesa into quantal-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/mesa/9.0.2-0ubuntu0.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in mesa (Ubuntu Quantal):
status: Triaged → Fix Committed
tags: added: verification-needed
Revision history for this message
Maarten Lankhorst (mlankhorst) wrote :

I verified that intel, radeon and nouveau still run to the desktop succesfully with the official packages. glxinfo shows nothing suspicious wrong either and our favorite benchmark glxgears still spins.

tags: added: verification-done
removed: verification-needed
no longer affects: mesa-lts-quantal (Ubuntu)
Revision history for this message
Colin Watson (cjwatson) wrote : Update Released

The verification of this Stable Release Update has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regresssions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mesa - 9.0.2-0ubuntu0.1

---------------
mesa (9.0.2-0ubuntu0.1) quantal-proposed; urgency=low

  * Merge package from raring.
  * Add patch to build against quantal's wayland again
    - 119-revert-wayland102.patch
  * Enable size reduction patches already used in the backported lts-quantal stack. (LP: #1117417)
    - 117-static-gallium.patch
    - 118-dricore-gallium.patch
 -- Maarten Lankhorst <email address hidden> Wed, 06 Feb 2013 14:48:43 +0100

Changed in mesa (Ubuntu Quantal):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mesa-lts-quantal - 9.0.2-0ubuntu0.1~precise1

---------------
mesa-lts-quantal (9.0.2-0ubuntu0.1~precise1) precise-proposed; urgency=low

  * Sync MRE update from quantal (LP: #1130563)
 -- Maarten Lankhorst <email address hidden> Mon, 11 Feb 2013 16:46:55 +0100

Changed in mesa-lts-quantal (Ubuntu Precise):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.