Bug 27840

Summary: Enable mesa to be built for Cygwin -with-driver=dri
Product: Mesa Reporter: Jon Turney <jon.turney>
Component: OtherAssignee: mesa-dev
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: git   
Hardware: x86 (IA32)   
OS: Cygwin   
Whiteboard:
i915 platform: i915 features:
Bug Depends on: 29460    
Bug Blocks:    
Attachments: Make XF86VIDMODE extension optional
Don't require LIBDRM on Cygwin, and build with GLX_INDIRECT_RENDERING only
Make DRI2PROTO optional in a GLX_INDIRECT_RENDERING only build
Make XF86VIDMODE extension optional
Make DRI2PROTO optional in a GLX_INDIRECT_RENDERING only build
Make DRI2PROTO optional in a GLX_INDIRECT_RENDERING only build
Don't require LIBDRM on Cygwin, and build with GLX_INDIRECT_RENDERING only
Add cygwin platform-specific settings for building -with-driver=dri
Fix compilation without xf86vidmode extension

Description Jon Turney 2010-04-26 10:34:51 UTC
Various changes to enable mesa to be built for Cygwin -with-driver=dri rather than -with-driver=xlib, so that AIGLX can be used.

1) Make XF86VIDMODE extension optional
2) Don't require LIBDRM on Cygwin, and build with GLX_INDIRECT_RENDERING only
3) Make DRI2PROTO optional in a GLX_INDIRECT_RENDERING only build
Comment 1 Jon Turney 2010-04-26 10:35:20 UTC
Created attachment 35294 [details] [review]
Make XF86VIDMODE extension optional
Comment 2 Jon Turney 2010-04-26 10:35:55 UTC
Created attachment 35295 [details] [review]
 Don't require LIBDRM on Cygwin, and build with GLX_INDIRECT_RENDERING only
Comment 3 Jon Turney 2010-04-26 10:36:18 UTC
Created attachment 35296 [details] [review]
Make DRI2PROTO optional in a GLX_INDIRECT_RENDERING only build
Comment 4 Jon Turney 2010-08-09 06:35:04 UTC
Created attachment 37723 [details] [review]
Make XF86VIDMODE extension optional
Comment 5 Jon Turney 2010-08-09 06:35:33 UTC
Created attachment 37724 [details] [review]
 Make DRI2PROTO optional in a GLX_INDIRECT_RENDERING only build
Comment 6 Jon Turney 2010-08-09 06:36:47 UTC
Created attachment 37725 [details] [review]
Make DRI2PROTO optional in a GLX_INDIRECT_RENDERING only build
Comment 7 Jon Turney 2010-08-09 06:38:41 UTC
Created attachment 37726 [details] [review]
Don't require LIBDRM on Cygwin, and build with GLX_INDIRECT_RENDERING only
Comment 8 Jon Turney 2010-08-09 06:40:39 UTC
Updated for git master

The following changes since commit 2cad5350f9691d4d2c18a637548735925fa0ee97:

  r600g: fix some warnings (2010-08-09 15:00:19 +0200)

are available in the git repository at:
  git://anongit.freedesktop.org/~jturney/mesa cygwin-dri-build

Jon TURNEY (3):
      Make XF86VIDMODE extension optional
      Cygwin: Enable mesa to be built for Cygwin -with-driver=dri with indirect rendering only
      Make DRI2PROTO optional in a GLX_INDIRECT_RENDERING only build

 configs/autoconf.in |    2 ++
 configure.ac        |   45 ++++++++++++++++++++++++++++++++++++++++-----
 src/glx/Makefile    |    6 +++++-
 src/glx/glxcmds.c   |    2 ++
 src/glx/glxext.c    |    3 +++
 5 files changed, 52 insertions(+), 6 deletions(-)
Comment 9 Jon Turney 2010-09-06 08:57:16 UTC
Created attachment 38479 [details] [review]
Add cygwin platform-specific settings for building -with-driver=dri

Updated based on the much simpler approach taken in bug #29640
Comment 10 Jon Turney 2010-09-06 08:59:03 UTC
oops typo, I meant bug #29460
Comment 11 Kristian Høgsberg 2010-09-07 10:33:52 UTC
I removed the dri2proto.h include, no longer necessary and pulled the xf86vidmode patch.  Not sure what you want to do for configure.ac, can you post the complete patch you'd like to use?
Comment 12 Jon Turney 2010-09-07 11:32:38 UTC
(In reply to comment #11)
> I removed the dri2proto.h include, no longer necessary and pulled the
> xf86vidmode patch.  Not sure what you want to do for configure.ac, can you post
> the complete patch you'd like to use?

I think I really would like the patch in attachment 38479 [details] [review] on top of the patches in bug #29460.  That does seem to be the best way to do things to me.

I've built a new git branch with the changes at
  git://anongit.freedesktop.org/~jturney/mesa nodrm-build-fixes
Comment 13 Jon Turney 2010-09-07 11:36:05 UTC
Created attachment 38525 [details] [review]
Fix compilation without xf86vidmode extension

(In reply to comment #11)
> pulled the xf86vidmode patch.

This seems to have rusted a little bit.  I think the attached patch is also needed to compile now without xf86vidmode.
Comment 14 Jon Turney 2011-04-08 12:50:08 UTC
Patch to make --disable-driglx-direct the default on Cygwin applied as commit c6e33ca285f9eba26cae2fdd74fb5cc694f1e74b

(In reply to comment #13)
> Created an attachment (id=38525) [details]
> Fix compilation without xf86vidmode extension
> 
> (In reply to comment #11)
> > pulled the xf86vidmode patch.
> 
> This seems to have rusted a little bit.  I think the attached patch is also
> needed to compile now without xf86vidmode.

Fixed differently by commit 57d3f71132a59315d47c42a110228a523f9ea23d

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.