[Mesa-dev] [PATCH] mesa: Emit definition of GLAPIENTRYP in es_generator.py.

2011-05-19 Thread Thierry Reding
GLES uses GL_APIENTRYP instead of GLAPIENTRYP, which breaks with the latest API table generation code. This fixes the issue by emitting a definition for GL_APIENTRYP when generating the GLES files. --- src/mesa/main/es_generator.py |4 1 files changed, 4 insertions(+), 0 deletions(-) dif

Re: [Mesa-dev] Mesa (master): glapi: Implement SET_xxx as inline functions instead of macros.

2011-05-19 Thread Carl-Philip Haensch
Zitat von Jose Fonseca : Sorry about that. I don't know if GLAPIENTRY should be part of GL ES headers or not -- I'm not even sure there's an ABI defined on Windows. The OpenGL library has to use the stdcall convention on windows while it's cdecl on linux. For ES maybe the same. __

Re: [Mesa-dev] [PATCH] mesa: Fix return type of _mesa_get_format_bytes() (#37351)

2011-05-19 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/19/2011 08:14 PM, Adam Jackson wrote: > Despite that negative values aren't sensible here, making this unsigned > is dangerous. Consider get_pointer_generic, which computes a value of > the form: > > void *base + (int x * int stride + int y

Re: [Mesa-dev] [PATCH] glproto: add a new GLXBufferSwapComplete struct that matches the spec

2011-05-19 Thread Maxim Levitsky
On Thu, 2011-05-19 at 13:28 -0700, Jesse Barnes wrote: > On Tue, 10 May 2011 17:57:52 -0700 > Eric Anholt wrote: > > > On Tue, 10 May 2011 12:32:24 -0700, Jesse Barnes > > wrote: > > > On Tue, 10 May 2011 11:59:56 -0700 > > > Eric Anholt wrote: > > > > > > > On Thu, 5 May 2011 12:39:57 -0700

Re: [Mesa-dev] Mesa (master): glapi: Implement SET_xxx as inline functions instead of macros.

2011-05-19 Thread Jose Fonseca
Sorry about that. I don't know if GLAPIENTRY should be part of GL ES headers or not -- I'm not even sure there's an ABI defined on Windows. Probably the easiest thing to do is to add #ifndef GLAPIENTRY #define GLAPIENTRY #endif etc to the header being generated for GL ES. I don't have

Re: [Mesa-dev] [PATCH] mesa: Fix return type of _mesa_get_format_bytes() (#37351)

2011-05-19 Thread Chad Versace
On 05/19/2011 11:14 AM, Adam Jackson wrote: > Despite that negative values aren't sensible here, making this unsigned > is dangerous. Consider get_pointer_generic, which computes a value of > the form: > > void *base + (int x * int stride + int y) * unsigned bpp > > The usual arithmetic conv

[Mesa-dev] [PATCH]: global forcing anisotropy

2011-05-19 Thread Carl-Philip Haensch
This attached patch should enable an option for forcing anisotropy from driconf. Please comment or push if it's ok. >From 79e2c7785ab0398eaf7a2ebc70ef980a26b7ca3a Mon Sep 17 00:00:00 2001 From: Carl-Philip Haensch Date: Thu, 19 May 2011 21:45:55 +0200 Subject: [PATCH] gallium/st: force anisotro

Re: [Mesa-dev] [PATCH] mesa: Use signed math for possibly negative values

2011-05-19 Thread Chad Versace
On 05/19/2011 01:19 PM, Chad Versace wrote: > On 05/19/2011 05:13 AM, Ian Romanick wrote: >> From: Ian Romanick >> >> Since RowStride might be negative, we want a signed result. On 64-bit >> platforms, an unsigned 32-bit result added to a 64-bit pointer will >> give the wrong answer. > > Looks li

Re: [Mesa-dev] [PATCH] glproto: add a new GLXBufferSwapComplete struct that matches the spec

2011-05-19 Thread Jesse Barnes
On Tue, 10 May 2011 17:57:52 -0700 Eric Anholt wrote: > On Tue, 10 May 2011 12:32:24 -0700, Jesse Barnes > wrote: > > On Tue, 10 May 2011 11:59:56 -0700 > > Eric Anholt wrote: > > > > > On Thu, 5 May 2011 12:39:57 -0700, Jesse Barnes > > > wrote: > > > > Just add a new struct to remain comp

Re: [Mesa-dev] [PATCH] mesa: Use signed math for possibly negative values

2011-05-19 Thread Chad Versace
On 05/19/2011 05:13 AM, Ian Romanick wrote: > From: Ian Romanick > > Since RowStride might be negative, we want a signed result. On 64-bit > platforms, an unsigned 32-bit result added to a 64-bit pointer will > give the wrong answer. > > For x = y = 50, RowStride = -128, and format bytes = 4, t

Re: [Mesa-dev] Mesa (master): glapi: Implement SET_xxx as inline functions instead of macros.

2011-05-19 Thread Thierry Reding
* Jose Fonseca wrote: > Module: Mesa > Branch: master > Commit: ec4dfc2aad16ed3d04f47657e9f2cb22e791d511 > URL: > http://cgit.freedesktop.org/mesa/mesa/commit/?id=ec4dfc2aad16ed3d04f47657e9f2cb22e791d511 > > Author: José Fonseca > Date: Thu May 19 16:49:49 2011 +0100 > > glapi: Implement S

Re: [Mesa-dev] [PATCH] mesa: Use signed math for possibly negative values

2011-05-19 Thread Adam Jackson
On Thu, 2011-05-19 at 14:13 +0200, Ian Romanick wrote: > From: Ian Romanick > > Since RowStride might be negative, we want a signed result. On 64-bit > platforms, an unsigned 32-bit result added to a 64-bit pointer will > give the wrong answer. Hah, saw this just as I sent my patch. Let's hear

[Mesa-dev] [PATCH] mesa: Fix return type of _mesa_get_format_bytes() (#37351)

2011-05-19 Thread Adam Jackson
Despite that negative values aren't sensible here, making this unsigned is dangerous. Consider get_pointer_generic, which computes a value of the form: void *base + (int x * int stride + int y) * unsigned bpp The usual arithmetic conversions will coerce the (x*stride + y) subexpression to un

[Mesa-dev] [PATCH mesa-demos] Fix compilation of osdemo.c after commit 5d5dc0e

2011-05-19 Thread Jon TURNEY
Fix compilation of osdemo.c after commit 5d5dc0e "Mac OS X portability fixes." ostest1.c also now needs some kind of attention, as it now no longer includes glu.h but refers to symbols defined there, but it is not built by the makefile. Found by tinderbox, see [1] [1] http://tinderbox.freedeskt

Re: [Mesa-dev] shared LLVM library causes program abortion

2011-05-19 Thread Jose Fonseca
- Original Message - > On 5/17/11 3:24 PM, Jose Fonseca wrote: > > > I believe the best alternative here is to build *_dri.so with -z > > nodelete when linking against a shared libLLVM*. > > That should work, even though it's incredibly unpleasant. I would > think > LLVM would want to

Re: [Mesa-dev] [PATCH] egl: Link wayland-drm.a into libEGL after egl_dri2

2011-05-19 Thread Kristian Høgsberg
On Wed, May 18, 2011 at 2:59 PM, Thierry Reding wrote: > Fixes the following build error in wayland-demos: > >          CCLD   wayland-compositor >        /usr/lib/libEGL.so: undefined reference to > `wayland_drm_buffer_get_buffer' >        /usr/lib/libEGL.so: undefined reference to `wayland_drm_

Re: [Mesa-dev] Status of VDPAU and XvMC state-trackers (was Re: Build error on current xvmc-r600 pipe-video)

2011-05-19 Thread Andy Furniss
Christian König wrote: Am Montag, den 16.05.2011, 19:54 +0100 schrieb Andy Furniss: I noticed another strange thing with pipe-video on my rv670. Until recently there was a bug that made the mesa demo lodbias misrender. It's fixed now in master and pipe-video, but if I use pipe-video + vdpau de

[Mesa-dev] [PATCH] mesa: Use signed math for possibly negative values

2011-05-19 Thread Ian Romanick
From: Ian Romanick Since RowStride might be negative, we want a signed result. On 64-bit platforms, an unsigned 32-bit result added to a 64-bit pointer will give the wrong answer. For x = y = 50, RowStride = -128, and format bytes = 4, the difference is: Breakpoint 1, get_pointer_generic (ctx=

[Mesa-dev] [Bug 36333] can't build demos if mesa build with --enable-selinux

2011-05-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=36333 Tapani Pälli changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

Re: [Mesa-dev] [PATCH] Anisotropic filtering extension for swrast

2011-05-19 Thread Andreas Fänger
I will have a look at it. This might take a while, though, as I'm currently quite busy with other projects. / Andreas -Ursprüngliche Nachricht- Von: Brian Paul [mailto:bri...@vmware.com] Gesendet: Mittwoch, 18. Mai 2011 16:06 An: Andreas Faenger Cc: mesa-dev@lists.freedesktop.org Betreff