Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
c20b946b
Commit
c20b946b
authored
Feb 20, 2017
by
Mike Gabriel
Committed by
ftrapero
Jun 15, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mesa subtree: Adapt build process for building against Mesa that gets pulled in via git subtree.
parent
209657f6
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
122 additions
and
2 deletions
+122
-2
Mesa.patches
nx-X11/extras/Mesa.patches
+2
-0
series
nx-X11/extras/Mesa.patches/series
+0
-2
4001_Fix-non-working-GLX-in-64bit-Xorg-7.0.patch
...es_6.4.1/4001_Fix-non-working-GLX-in-64bit-Xorg-7.0.patch
+54
-0
4002_no-special-glx-memfunctions.patch
...Mesa.patches_6.4.1/4002_no-special-glx-memfunctions.patch
+28
-0
4003_CreatePixmap-AllocationHints.patch
...esa.patches_6.4.1/4003_CreatePixmap-AllocationHints.patch
+0
-0
4004_define-USE_IEEE-macro-for-more-platforms.patch
...6.4.1/4004_define-USE_IEEE-macro-for-more-platforms.patch
+0
-0
series
nx-X11/extras/Mesa.patches_6.4.1/series
+5
-0
glx_ansic.h
nx-X11/programs/Xserver/GL/include/GL/glx_ansic.h
+5
-0
xf86glx.h
nx-X11/programs/Xserver/GL/include/GL/xf86glx.h
+1
-0
WSDrawBuffer.h
nx-X11/programs/Xserver/GL/mesa/main/WSDrawBuffer.h
+27
-0
No files found.
nx-X11/extras/Mesa.patches
0 → 120000
View file @
c20b946b
Mesa.patches_6.4.1
\ No newline at end of file
nx-X11/extras/Mesa.patches/series
deleted
100644 → 0
View file @
209657f6
4001_CreatePixmap-AllocationHints.patch
4002_define-USE_IEEE-macro-for-more-platforms.patch
nx-X11/extras/Mesa.patches_6.4.1/4001_Fix-non-working-GLX-in-64bit-Xorg-7.0.patch
0 → 100644
View file @
c20b946b
From 44518d07398d663448d79e4f546736b40752630c Mon Sep 17 00:00:00 2001
From: Ulrich Sibiller <uli42@gmx.de>
Date: Wed, 16 Mar 2016 14:40:08 +0100
Subject: [PATCH] Fix non-working GLX in 64bit Xorg 7.0
Found the needed patch in debian bugtracker at
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=364233
---
src/glx/x11/indirect_vertex_array.c | 2 +-
src/mesa/drivers/dri/common/glcontextmodes.c | 3 +++
src/mesa/main/glheader.h | 3 +++
3 files changed, 7 insertions(+), 1 deletion(-)
Index: Mesa/src/glx/x11/indirect_vertex_array.c
===================================================================
--- Mesa.orig/src/glx/x11/indirect_vertex_array.c
+++ Mesa/src/glx/x11/indirect_vertex_array.c
@@ -530,7 +530,7 @@ static GLubyte *
emit_DrawArrays_header_old( __GLXcontext * gc,
struct array_state_vector * arrays,
size_t * elements_per_request,
- size_t * total_requests,
+ unsigned int * total_requests,
GLenum mode, GLsizei count )
{
size_t command_size;
Index: Mesa/src/mesa/main/glheader.h
===================================================================
--- Mesa.orig/src/mesa/main/glheader.h
+++ Mesa/src/mesa/main/glheader.h
@@ -46,6 +46,9 @@
#ifndef GLHEADER_H
#define GLHEADER_H
+#ifdef HAVE_DIX_CONFIG_H
+#include "dix-config.h"
+#endif
#if defined(XFree86LOADER) && defined(IN_MODULE)
#include "xf86_ansic.h"
Index: Mesa/src/mesa/drivers/dri/common/glcontextmodes.c
===================================================================
--- Mesa.orig/src/mesa/drivers/dri/common/glcontextmodes.c
+++ Mesa/src/mesa/drivers/dri/common/glcontextmodes.c
@@ -39,6 +39,9 @@
# include "imports.h"
# define __glXMemset memset
#else
+# if defined (HAVE_DIX_CONFIG_H)
+# include <dix-config.h>
+# endif
# include <X11/X.h>
# include <GL/glx.h>
# include "GL/glxint.h"
nx-X11/extras/Mesa.patches_6.4.1/4002_no-special-glx-memfunctions.patch
0 → 100644
View file @
c20b946b
Description: Turn glx_ansic.h into a no-op include. (by using memset, malloc, free directly)
Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Index: Mesa/src/mesa/drivers/dri/common/glcontextmodes.c
===================================================================
--- Mesa.orig/src/mesa/drivers/dri/common/glcontextmodes.c
+++ Mesa/src/mesa/drivers/dri/common/glcontextmodes.c
@@ -48,15 +48,14 @@
# ifdef XFree86Server
# include "GL/glx_ansic.h"
-extern void * __glXMalloc( size_t size );
-extern void __glXFree( void * ptr );
-# define _mesa_malloc(b) __glXMalloc(b)
-# define _mesa_free(m) __glXFree(m)
+# define __glXMemset memset
+# define _mesa_malloc(b) malloc(b)
+# define _mesa_free(m) free(m)
# else
# include <X11/Xlibint.h>
# define __glXMemset memset
-# define _mesa_malloc(b) Xmalloc(b)
-# define _mesa_free(m) Xfree(m)
+# define _mesa_malloc(b) malloc(b)
+# define _mesa_free(m) free(m)
# endif /* XFree86Server */
#endif /* !defined(IN_MINI_GLX) */
nx-X11/extras/Mesa.patches
/4001
_CreatePixmap-AllocationHints.patch
→
nx-X11/extras/Mesa.patches
_6.4.1/4003
_CreatePixmap-AllocationHints.patch
View file @
c20b946b
File moved
nx-X11/extras/Mesa.patches
/4002
_define-USE_IEEE-macro-for-more-platforms.patch
→
nx-X11/extras/Mesa.patches
_6.4.1/4004
_define-USE_IEEE-macro-for-more-platforms.patch
View file @
c20b946b
File moved
nx-X11/extras/Mesa.patches_6.4.1/series
0 → 100644
View file @
c20b946b
4001_Fix-non-working-GLX-in-64bit-Xorg-7.0.patch
4002_no-special-glx-memfunctions.patch
4003_CreatePixmap-AllocationHints.patch
4004_define-USE_IEEE-macro-for-more-platforms.patch
\ No newline at end of file
nx-X11/programs/Xserver/GL/include/GL/glx_ansic.h
0 → 100644
View file @
c20b946b
/* no-op file to make current Mesa happy */
#ifndef _glx_ansic_h_
#define _glx_ansic_h_
#endif
nx-X11/programs/Xserver/GL/include/GL/xf86glx.h
0 → 100644
View file @
c20b946b
/* no-op file to make current Mesa happy */
nx-X11/programs/Xserver/GL/mesa/main/WSDrawBuffer.h
0 → 100644
View file @
c20b946b
/**************************************************************************/
/* */
/* Copyright (c) 2001, 2011 NoMachine (http://www.nomachine.com) */
/* Copyright (c) 2008-2014 Oleksandr Shneyder <o.shneyder@phoca-gmbh.de> */
/* Copyright (c) 2011-2016 Mike Gabriel <mike.gabriel@das-netzwerkteam.de>*/
/* Copyright (c) 2014-2016 Mihai Moldovan <ionic@ionic.de> */
/* Copyright (c) 2014-2016 Ulrich Sibiller <uli42@gmx.de> */
/* Copyright (c) 2015-2016 Qindel Group (http://www.qindel.com) */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of the aforementioned persons and companies. */
/* */
/* Redistribution and use of the present software is allowed according */
/* to terms specified in the file LICENSE which comes in the source */
/* distribution. */
/* */
/* All rights reserved. */
/* */
/**************************************************************************/
typedef
struct
_WSDrawBufferRec
{
GLframebuffer
*
DrawBuffer
;
struct
_WSDrawBufferRec
*
next
;
}
WSDrawBufferRec
,
*
WSDrawBufferPtr
;
WSDrawBufferPtr
pWSDrawBuffer
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment