Bug 5146 - xdriinfo build breaks with nvidia driver installed
Summary: xdriinfo build breaks with nvidia driver installed
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: App/other (show other bugs)
Version: git
Hardware: Other FreeBSD
: high normal
Assignee: Eric Anholt
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-24 20:04 UTC by Eric Anholt
Modified: 2005-11-29 17:13 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
change xdriinfo to use more-portable glXGetProcAddressARB (950 bytes, patch)
2005-11-24 20:05 UTC, Eric Anholt
ajax: 6.9/7.0+
Details | Splinter Review

Description Eric Anholt 2005-11-24 20:04:47 UTC
The xdriinfo application uses glXGetProcAddress, a newly-exposed function in GLX
1.4, which is itself not official yet.  glXGetProcAddressARB does the same thing
for us, while allowing xdriinfo to build if an nvidia libGL is in place instead
of Mesa libGL.

This happens currently on FreeBSD where the build has been modularized into
libs, apps, servers, etc., and users can upgrade the apps while their libs
(including libGL) remain untouched.  I would also expect it with modular where
distros depend on a slew of apps in a metapackage, without knowledge that this
one app is not applicable if you happen to have nv libGL.

The attached patch changes xdriinfo to use glXGetProcAddressARB.
Comment 1 Eric Anholt 2005-11-24 20:05:26 UTC
Created attachment 3892 [details] [review]
change xdriinfo to use more-portable glXGetProcAddressARB
Comment 2 Adam Jackson 2005-11-29 11:36:19 UTC
Comment on attachment 3892 [details] [review]
change xdriinfo to use more-portable glXGetProcAddressARB

+1, please commit.
Comment 3 Eric Anholt 2005-11-30 12:13:58 UTC
Committed.


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.