--gpu flag never works

Bug #296601 reported by Adam Buchbinder
2
Affects Status Importance Assigned to Milestone
enblend (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: enblend

enblend is capable of offloading some computation onto certain GPUs. However, this feature is broken in the version shipped with Hardy. This might be a quirk of freeglut, or enblend might be doing it wrong. As it's fixed in newer versions, I believe it's a mistake on enblend's end which other GLUT implementations don't catch.

I used files from here: http://wiki.panotools.org/Enblend_Testcase_2008-05-02 , but any set of TIFFs should work.

$ enblend --gpu -v -o scottishparliament.tif scottishparliament{0,2}.tif
freeglut ERROR: Function <glutCreateWindow> called without first calling 'glutInit'.

The addition of a call to glutInit() when the --gpu flag is passed fixes this problem:

$ ./enblend --gpu -v -o scottishparliament.tif scottishparliament{0,2}.tif
enblend: using graphics card: Tungsten Graphics, Inc. Mesa DRI R200 20060602 AGP 4x x86/MMX/SSE2 TCL
enblend: extension GL_ARB_fragment_shader = false
enblend: extension GL_ARB_vertex_shader = false
enblend: extension GL_ARB_shader_objects = false
enblend: extension GL_ARB_shading_language_100 = false
enblend: this graphics card lacks the necessary extensions for --gpu.
enblend: sorry, the --gpu flag is not going to work on this machine.

(I assume that if I had spiffier hardware and/or drivers, this would work some nifty magic.)

The attached dpatch adds the missing call. Any comments would be much appreciated, as well as a debdiff; I've yet to get the hang of generating them properly. If the patch is acceptable, I'll fill out an SRU application for Hardy and Intrepid.

This bug is fixed in 3.2, which is in Jaunty, but is present in 3.0.dfsg.1-0ubuntu6, which is the version used for Hardy and Intrepid.

Revision history for this message
Adam Buchbinder (adam-buchbinder) wrote :
Revision history for this message
Adam Buchbinder (adam-buchbinder) wrote :

I've learned how to make debdiffs; one applying the above dpatch is attached.

Revision history for this message
Adam Buchbinder (adam-buchbinder) wrote :

The fix is in Jaunty, which has been released. Given that it's no longer affecting me, I'll leave filing an SRU, if anyone wants to do so, to someone else.

Changed in enblend (Ubuntu):
status: New → 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.