Re: [Mesa-dev] [PATCH] mesa: enable remap table when --enable-shared-glapi

2012-02-11 Thread Matt Turner
On Sat, Feb 11, 2012 at 8:56 PM, Kenneth Graunke kenn...@whitecape.org wrote:
 Now the question is: can we reapply Matt's patch, removing the
 --enable-shared-glapi option and making it always on?  That would be great.

Jakob said on IRC that he didn't think this fix was correct, but I
don't know what he had in mind.

I asked a few weeks ago if anyone knew why an unshared-glapi would be
a good thing to have but I didn't see any reasons. If shared-glapi
works everywhere, then I think it's a good option to remove. It'll
make converting glapi to automake easier too.

I'd like to reapply the patch removing the shared-glapi option.
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


Re: [Mesa-dev] [PATCH] mesa: enable remap table when --enable-shared-glapi

2012-02-08 Thread Matt Turner
On Mon, Feb 6, 2012 at 12:05 PM, Matt Turner matts...@gmail.com wrote:
 From: Chia-I Wu o...@lunarg.com

 As libGL will use libglapi for function lookups, we need to enable the remap
 table.

 Tested-by: Matt Turner matts...@gmail.com
 Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=45660
 ---
  configure.ac |    3 +++
  1 files changed, 3 insertions(+), 0 deletions(-)

 diff --git a/configure.ac b/configure.ac
 index af1e914..609cdea 100644
 --- a/configure.ac
 +++ b/configure.ac
 @@ -698,6 +698,9 @@ AC_ARG_ENABLE([shared-glapi],
  SHARED_GLAPI=0
  if test x$enable_shared_glapi = xyes; then
     SHARED_GLAPI=1
 +    # libGL will use libglapi for function lookups (IN_DRI_DRIVER means to 
 use
 +    # the remap table)
 +    DEFINES=$DEFINES -DIN_DRI_DRIVER
  fi
  AC_SUBST([SHARED_GLAPI])

Brian,

This fixes a bug that you reported with shared-glapi. Could you take a look?

Thanks,
Matt
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


Re: [Mesa-dev] [PATCH] mesa: enable remap table when --enable-shared-glapi

2012-02-08 Thread Matt Turner
On Wed, Feb 8, 2012 at 7:30 PM, Brian Paul bri...@vmware.com wrote:
 On 02/08/2012 09:48 AM, Matt Turner wrote:

 On Mon, Feb 6, 2012 at 12:05 PM, Matt Turnermatts...@gmail.com  wrote:

 From: Chia-I Wuo...@lunarg.com

 As libGL will use libglapi for function lookups, we need to enable the
 remap
 table.

 Tested-by: Matt Turnermatts...@gmail.com
 Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=45660
 ---
  configure.ac |    3 +++
  1 files changed, 3 insertions(+), 0 deletions(-)

 diff --git a/configure.ac b/configure.ac
 index af1e914..609cdea 100644
 --- a/configure.ac
 +++ b/configure.ac
 @@ -698,6 +698,9 @@ AC_ARG_ENABLE([shared-glapi],
  SHARED_GLAPI=0
  if test x$enable_shared_glapi = xyes; then
     SHARED_GLAPI=1
 +    # libGL will use libglapi for function lookups (IN_DRI_DRIVER means
 to use
 +    # the remap table)
 +    DEFINES=$DEFINES -DIN_DRI_DRIVER
  fi
  AC_SUBST([SHARED_GLAPI])


 Brian,

 This fixes a bug that you reported with shared-glapi. Could you take a
 look?


 I don't recall filing a bug about this, but it looks good to me.

 -Brian

It was on the mailing list,
http://lists.freedesktop.org/archives/mesa-dev/2012-January/018004.html
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


Re: [Mesa-dev] [PATCH] mesa: enable remap table when --enable-shared-glapi

2012-02-08 Thread Brian Paul

On 02/08/2012 05:39 PM, Matt Turner wrote:

On Wed, Feb 8, 2012 at 7:30 PM, Brian Paulbri...@vmware.com  wrote:

On 02/08/2012 09:48 AM, Matt Turner wrote:


On Mon, Feb 6, 2012 at 12:05 PM, Matt Turnermatts...@gmail.comwrote:


From: Chia-I Wuo...@lunarg.com

As libGL will use libglapi for function lookups, we need to enable the
remap
table.

Tested-by: Matt Turnermatts...@gmail.com
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=45660
---
  configure.ac |3 +++
  1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index af1e914..609cdea 100644
--- a/configure.ac
+++ b/configure.ac
@@ -698,6 +698,9 @@ AC_ARG_ENABLE([shared-glapi],
  SHARED_GLAPI=0
  if test x$enable_shared_glapi = xyes; then
 SHARED_GLAPI=1
+# libGL will use libglapi for function lookups (IN_DRI_DRIVER means
to use
+# the remap table)
+DEFINES=$DEFINES -DIN_DRI_DRIVER
  fi
  AC_SUBST([SHARED_GLAPI])



Brian,

This fixes a bug that you reported with shared-glapi. Could you take a
look?



I don't recall filing a bug about this, but it looks good to me.

-Brian


It was on the mailing list,
http://lists.freedesktop.org/archives/mesa-dev/2012-January/018004.html


That problem seems to have been fixed at some point.  I didn't have to 
apply the above patch.


-Brian
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


Re: [Mesa-dev] [PATCH] mesa: enable remap table when --enable-shared-glapi

2012-02-08 Thread Matt Turner
On Wed, Feb 8, 2012 at 8:03 PM, Brian Paul bri...@vmware.com wrote:
 On 02/08/2012 05:39 PM, Matt Turner wrote:

 On Wed, Feb 8, 2012 at 7:30 PM, Brian Paulbri...@vmware.com  wrote:

 On 02/08/2012 09:48 AM, Matt Turner wrote:


 On Mon, Feb 6, 2012 at 12:05 PM, Matt Turnermatts...@gmail.com
  wrote:


 From: Chia-I Wuo...@lunarg.com

 As libGL will use libglapi for function lookups, we need to enable the
 remap
 table.

 Tested-by: Matt Turnermatts...@gmail.com
 Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=45660
 ---
  configure.ac |    3 +++
  1 files changed, 3 insertions(+), 0 deletions(-)

 diff --git a/configure.ac b/configure.ac
 index af1e914..609cdea 100644
 --- a/configure.ac
 +++ b/configure.ac
 @@ -698,6 +698,9 @@ AC_ARG_ENABLE([shared-glapi],
  SHARED_GLAPI=0
  if test x$enable_shared_glapi = xyes; then
     SHARED_GLAPI=1
 +    # libGL will use libglapi for function lookups (IN_DRI_DRIVER
 means
 to use
 +    # the remap table)
 +    DEFINES=$DEFINES -DIN_DRI_DRIVER
  fi
  AC_SUBST([SHARED_GLAPI])



 Brian,

 This fixes a bug that you reported with shared-glapi. Could you take a
 look?



 I don't recall filing a bug about this, but it looks good to me.

 -Brian


 It was on the mailing list,
 http://lists.freedesktop.org/archives/mesa-dev/2012-January/018004.html


 That problem seems to have been fixed at some point.  I didn't have to apply
 the above patch.

 -Brian

The problem only exists with shared-glapi, and the context of the
other thread was that I'd committed a patch to make us always build
shared-glapi. I think maybe you aren't building with shared-glapi? I
tested when I sent the patch and fbotexture didn't work with
shared-glapi without this patch.

Matt
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


Re: [Mesa-dev] [PATCH] mesa: enable remap table when --enable-shared-glapi

2012-02-08 Thread Brian Paul

On 02/08/2012 06:07 PM, Matt Turner wrote:

On Wed, Feb 8, 2012 at 8:03 PM, Brian Paulbri...@vmware.com  wrote:

On 02/08/2012 05:39 PM, Matt Turner wrote:


On Wed, Feb 8, 2012 at 7:30 PM, Brian Paulbri...@vmware.comwrote:


On 02/08/2012 09:48 AM, Matt Turner wrote:



On Mon, Feb 6, 2012 at 12:05 PM, Matt Turnermatts...@gmail.com
  wrote:



From: Chia-I Wuo...@lunarg.com

As libGL will use libglapi for function lookups, we need to enable the
remap
table.

Tested-by: Matt Turnermatts...@gmail.com
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=45660
---
  configure.ac |3 +++
  1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index af1e914..609cdea 100644
--- a/configure.ac
+++ b/configure.ac
@@ -698,6 +698,9 @@ AC_ARG_ENABLE([shared-glapi],
  SHARED_GLAPI=0
  if test x$enable_shared_glapi = xyes; then
 SHARED_GLAPI=1
+# libGL will use libglapi for function lookups (IN_DRI_DRIVER
means
to use
+# the remap table)
+DEFINES=$DEFINES -DIN_DRI_DRIVER
  fi
  AC_SUBST([SHARED_GLAPI])




Brian,

This fixes a bug that you reported with shared-glapi. Could you take a
look?




I don't recall filing a bug about this, but it looks good to me.

-Brian



It was on the mailing list,
http://lists.freedesktop.org/archives/mesa-dev/2012-January/018004.html



That problem seems to have been fixed at some point.  I didn't have to apply
the above patch.

-Brian


The problem only exists with shared-glapi, and the context of the
other thread was that I'd committed a patch to make us always build
shared-glapi. I think maybe you aren't building with shared-glapi? I
tested when I sent the patch and fbotexture didn't work with
shared-glapi without this patch.


I haven't used --enable-shared-glapi until just now.

The options I used previously were:
./configure --enable-xlib-glx --disable-dri --enable-debug

Anyway, I just did a build with
./configure --enable-xlib-glx --disable-dri --enable-debug 
--enable-shared-glapi

and fbotexture failed.

But after applying the above patch, and rebuilding from scratch, 
fbotexture runs correctly now (as you indicated).  Thanks.


Tested-by: Brian Paul bri...@vmware.com

-Brian
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


Re: [Mesa-dev] [PATCH] mesa: enable remap table when --enable-shared-glapi

2012-02-08 Thread Matt Turner
On Wed, Feb 8, 2012 at 8:19 PM, Brian Paul bri...@vmware.com wrote:
 On 02/08/2012 06:07 PM, Matt Turner wrote:

 On Wed, Feb 8, 2012 at 8:03 PM, Brian Paulbri...@vmware.com  wrote:

 On 02/08/2012 05:39 PM, Matt Turner wrote:


 On Wed, Feb 8, 2012 at 7:30 PM, Brian Paulbri...@vmware.com    wrote:


 On 02/08/2012 09:48 AM, Matt Turner wrote:



 On Mon, Feb 6, 2012 at 12:05 PM, Matt Turnermatts...@gmail.com
  wrote:



 From: Chia-I Wuo...@lunarg.com

 As libGL will use libglapi for function lookups, we need to enable
 the
 remap
 table.

 Tested-by: Matt Turnermatts...@gmail.com
 Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=45660
 ---
  configure.ac |    3 +++
  1 files changed, 3 insertions(+), 0 deletions(-)

 diff --git a/configure.ac b/configure.ac
 index af1e914..609cdea 100644
 --- a/configure.ac
 +++ b/configure.ac
 @@ -698,6 +698,9 @@ AC_ARG_ENABLE([shared-glapi],
  SHARED_GLAPI=0
  if test x$enable_shared_glapi = xyes; then
     SHARED_GLAPI=1
 +    # libGL will use libglapi for function lookups (IN_DRI_DRIVER
 means
 to use
 +    # the remap table)
 +    DEFINES=$DEFINES -DIN_DRI_DRIVER
  fi
  AC_SUBST([SHARED_GLAPI])




 Brian,

 This fixes a bug that you reported with shared-glapi. Could you take a
 look?




 I don't recall filing a bug about this, but it looks good to me.

 -Brian



 It was on the mailing list,
 http://lists.freedesktop.org/archives/mesa-dev/2012-January/018004.html



 That problem seems to have been fixed at some point.  I didn't have to
 apply
 the above patch.

 -Brian


 The problem only exists with shared-glapi, and the context of the
 other thread was that I'd committed a patch to make us always build
 shared-glapi. I think maybe you aren't building with shared-glapi? I
 tested when I sent the patch and fbotexture didn't work with
 shared-glapi without this patch.


 I haven't used --enable-shared-glapi until just now.

 The options I used previously were:
 ./configure --enable-xlib-glx --disable-dri --enable-debug

 Anyway, I just did a build with
 ./configure --enable-xlib-glx --disable-dri --enable-debug
 --enable-shared-glapi
 and fbotexture failed.

 But after applying the above patch, and rebuilding from scratch, fbotexture
 runs correctly now (as you indicated).  Thanks.

 Tested-by: Brian Paul bri...@vmware.com

 -Brian

Awesome, thank you for testing! Thanks to Chia-I for fixing!
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [PATCH] mesa: enable remap table when --enable-shared-glapi

2012-02-06 Thread Matt Turner
From: Chia-I Wu o...@lunarg.com

As libGL will use libglapi for function lookups, we need to enable the remap
table.

Tested-by: Matt Turner matts...@gmail.com
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=45660
---
 configure.ac |3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index af1e914..609cdea 100644
--- a/configure.ac
+++ b/configure.ac
@@ -698,6 +698,9 @@ AC_ARG_ENABLE([shared-glapi],
 SHARED_GLAPI=0
 if test x$enable_shared_glapi = xyes; then
 SHARED_GLAPI=1
+# libGL will use libglapi for function lookups (IN_DRI_DRIVER means to use
+# the remap table)
+DEFINES=$DEFINES -DIN_DRI_DRIVER
 fi
 AC_SUBST([SHARED_GLAPI])
 
-- 
1.7.3.4

___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev