[Mesa-dev] Compilling Gallium3D

2010-04-19 Thread Carlos Eduardo Rodrigues Diógenes
Hi, I'm trying to compile Gallium. I'm following the instructions described here: http://www.freedesktop.org/wiki/Software/gallium/EGLReferenceDrivers The first time I type make linux-x86-64-debug I get the following: make[4]: Entering directory `/home/cerodrigues/Sources/mesa/src/glsl/pp' rm -f

Re: [Mesa-dev] r128 problems on G3 iMac, X server locks up

2010-04-19 Thread Alex Buell
On Mon, 2010-04-19 at 16:58 -0500, Bridgman, John wrote: > Looks like the driver isn't finding enough memory for the offscreen buffer. > Maybe try 16-bit pixel depth instead of 24 ? Ah, I'll try that as soon as I've got xorg-server and its dependencies built and installed. Thanks, hadn't thought

Re: [Mesa-dev] r128 problems on G3 iMac, X server locks up

2010-04-19 Thread Bridgman, John
Looks like the driver isn't finding enough memory for the offscreen buffer. Maybe try 16-bit pixel depth instead of 24 ? > -Original Message- > From: mesa-dev-boun...@lists.freedesktop.org > [mailto:mesa-dev-boun...@lists.freedesktop.org] On Behalf Of > Alex Buell > Sent: Monday, April 19

[Mesa-dev] r128 problems on G3 iMac, X server locks up

2010-04-19 Thread Alex Buell
Machine in question has a R128 card w/ 16MB of RAM. Recently I realised that the xorg server wasn't loading the r128 DRI driver at all, so I rebuilt the modules necessary (dri.ko and r128.ko), loaded them, then started the X server. At this point the display went blank and I found this in the Xor

Re: [Mesa-dev] Mesa (gallium-index-bias): gallium: Add index bias parameter to draw_elements and friends.

2010-04-19 Thread José Fonseca
On Mon, 2010-04-19 at 10:57 -0700, Marek Olšák wrote: > According to ARB_draw_elements_base_vertex, the index clamping should > be done prior to adding the index offset and r500 seems to implement > it the same way, which kinda makes the clamping useless here. Does it really change anything? Issu

Re: [Mesa-dev] RFC: gallium: Add index bias parameter to draw_elements and friends.

2010-04-19 Thread Keith Whitwell
On Mon, 2010-04-19 at 09:49 -0700, José Fonseca wrote: > On Mon, 2010-04-19 at 06:22 -0700, Keith Whitwell wrote: > > On Mon, 2010-04-19 at 06:07 -0700, Marek Olšák wrote: > > > Unfortunately, this is supported only on r500 (i.e. not r300 nor r400) > > > and only when the DRM version is >=2.3.0 (i.

Re: [Mesa-dev] Mesa (gallium-index-bias): gallium: Add index bias parameter to draw_elements and friends.

2010-04-19 Thread Marek Olšák
According to ARB_draw_elements_base_vertex, the index clamping should be done prior to adding the index offset and r500 seems to implement it the same way, which kinda makes the clamping useless here. To my knowledge there is no way to implement hw-accelerated, negative index offsets other than wit

[Mesa-dev] [Bug 27628] glxgears prints bogus swap interval information

2010-04-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=27628 --- Comment #4 from Jesse Barnes 2010-04-19 09:57:49 PDT --- On Wed, 14 Apr 2010 17:57:07 +0200 Mario Kleiner wrote: > Hmm. The patch inits mesa's local cached copy of swap_interval to > zero. The DRI2CreateDrawable() function inside the xse

[Mesa-dev] RFC: gallium: Add index bias parameter to draw_elements and friends.

2010-04-19 Thread José Fonseca
On Mon, 2010-04-19 at 06:22 -0700, Keith Whitwell wrote: > On Mon, 2010-04-19 at 06:07 -0700, Marek Olšák wrote: > > Unfortunately, this is supported only on r500 (i.e. not r300 nor r400) > > and only when the DRM version is >=2.3.0 (i.e. kernel 2.6.34). Please, > > can we make it an optional featu

Re: [Mesa-dev] Mesa (gallium-index-bias): gallium: Add index bias parameter to draw_elements and friends.

2010-04-19 Thread José Fonseca
On Mon, 2010-04-19 at 06:41 -0700, Jerome Glisse wrote: > On Mon, Apr 19, 2010 at 02:22:21PM +0100, Keith Whitwell wrote: > > On Mon, 2010-04-19 at 06:07 -0700, Marek Olšák wrote: > > > Unfortunately, this is supported only on r500 (i.e. not r300 nor r400) > > > and only when the DRM version is >=2

Re: [Mesa-dev] [PATCH 4/4] Fix build with gcc 3.3.

2010-04-19 Thread Brian Paul
Owain Ainsworth wrote: On Mon, Apr 19, 2010 at 07:34:04AM +0200, Matthieu Herrb wrote: On Sun, Apr 18, 2010 at 05:03:51PM -0700, Jeremy Huddleston wrote: This one looks broken... #if defined(__GNUC__) && ((__GNUC__ == 3 && __GNUC__ >= 4) || __GNUC__ >= 4) (__GNUC__ == 3 && __GNUC__ >= 4) y

Re: [Mesa-dev] failed to compile mesa

2010-04-19 Thread Dan Nicholson
On Mon, Apr 19, 2010 at 6:31 AM, Jakob Bornecrantz wrote: > On Mon, Apr 19, 2010 at 2:11 PM, Dan Nicholson wrote: >> On Sun, Apr 18, 2010 at 1:51 PM, Jakob Bornecrantz >> wrote: >>> On Sun, Apr 18, 2010 at 6:40 PM, CSJ wrote: Hi, Dan This patch works with ./autogen.sh --pre

Re: [Mesa-dev] gallium + depth modes

2010-04-19 Thread Roland Scheidegger
On 17.04.2010 09:40, Dave Airlie wrote: > I started trying to make softpipe pass depth-tex-modes in piglit, but > I'm failing maybe someone else can spot the stupid. > > Patch is attached. It might be something unrelated, since the patch to > me looks like it should dtrt. It fixes the alpha case a

Re: [Mesa-dev] [PATCH 4/4] Fix build with gcc 3.3.

2010-04-19 Thread Matthieu Herrb
On Sun, Apr 18, 2010 at 05:03:51PM -0700, Jeremy Huddleston wrote: > This one looks broken... > > > #if defined(__GNUC__) && ((__GNUC__ == 3 && __GNUC__ >= 4) || __GNUC__ >= 4) > > > (__GNUC__ == 3 && __GNUC__ >= 4) > > you forgot _MINOR... > > And I think your '__GNUC_MINOR__ >= 3' might need

Re: [Mesa-dev] Mesa (gallium-index-bias): gallium: Add index bias parameter to draw_elements and friends.

2010-04-19 Thread Jerome Glisse
On Mon, Apr 19, 2010 at 03:38:54PM +0200, José Fonseca wrote: > On Mon, 2010-04-19 at 06:22 -0700, Keith Whitwell wrote: > > On Mon, 2010-04-19 at 06:07 -0700, Marek Olšák wrote: > > > Unfortunately, this is supported only on r500 (i.e. not r300 nor r400) > > > and only when the DRM version is >=2.

Re: [Mesa-dev] Mesa (gallium-index-bias): gallium: Add index bias parameter to draw_elements and friends.

2010-04-19 Thread Henri Verbeet
On 19 April 2010 15:38, José Fonseca wrote: > A big user of this extension would be wine, but I've checked their > source code and they don't use it yet. Actually, they just set negative > vertex buffers offsets as a unsigned and pray that the two's complement > arithmetic inside the GL driver jus

Re: [Mesa-dev] Mesa (gallium-index-bias): gallium: Add index bias parameter to draw_elements and friends.

2010-04-19 Thread Jerome Glisse
On Mon, Apr 19, 2010 at 02:22:21PM +0100, Keith Whitwell wrote: > On Mon, 2010-04-19 at 06:07 -0700, Marek Olšák wrote: > > Unfortunately, this is supported only on r500 (i.e. not r300 nor r400) > > and only when the DRM version is >=2.3.0 (i.e. kernel 2.6.34). Please, > > can we make it an optiona

Re: [Mesa-dev] Mesa (gallium-index-bias): gallium: Add index bias parameter to draw_elements and friends.

2010-04-19 Thread José Fonseca
On Mon, 2010-04-19 at 06:22 -0700, Keith Whitwell wrote: > On Mon, 2010-04-19 at 06:07 -0700, Marek Olšák wrote: > > Unfortunately, this is supported only on r500 (i.e. not r300 nor r400) > > and only when the DRM version is >=2.3.0 (i.e. kernel 2.6.34). Please, > > can we make it an optional featu

Re: [Mesa-dev] failed to compile mesa

2010-04-19 Thread Jakob Bornecrantz
On Mon, Apr 19, 2010 at 2:11 PM, Dan Nicholson wrote: > On Sun, Apr 18, 2010 at 1:51 PM, Jakob Bornecrantz > wrote: >> On Sun, Apr 18, 2010 at 6:40 PM, CSJ wrote: >>> Hi, Dan >>> >>> This patch works with >>> ./autogen.sh --prefix="$PREFIX" --enable-xcb --with-dri-drivers=i915 >>> --disable-gal

Re: [Mesa-dev] Mesa (gallium-index-bias): gallium: Add index bias parameter to draw_elements and friends.

2010-04-19 Thread Keith Whitwell
On Mon, 2010-04-19 at 06:07 -0700, Marek Olšák wrote: > Unfortunately, this is supported only on r500 (i.e. not r300 nor r400) > and only when the DRM version is >=2.3.0 (i.e. kernel 2.6.34). Please, > can we make it an optional feature? Are you sure about this? It seems to be a long-time DX9 (an

Re: [Mesa-dev] failed to compile mesa

2010-04-19 Thread Michel Dänzer
On Mon, 2010-04-19 at 06:11 -0700, Dan Nicholson wrote: > On Sun, Apr 18, 2010 at 1:51 PM, Jakob Bornecrantz > wrote: > > On Sun, Apr 18, 2010 at 6:40 PM, CSJ wrote: > >> Hi, Dan > >> > >> This patch works with > >> ./autogen.sh --prefix="$PREFIX" --enable-xcb --with-dri-drivers=i915 > >> --dis

Re: [Mesa-dev] Mesa (gallium-index-bias): gallium: Add index bias parameter to draw_elements and friends.

2010-04-19 Thread Marek Olšák
Unfortunately, this is supported only on r500 (i.e. not r300 nor r400) and only when the DRM version is >=2.3.0 (i.e. kernel 2.6.34). Please, can we make it an optional feature? -Marek On Mon, Apr 19, 2010 at 2:17 PM, José Fonseca wrote: > On Mon, 2010-04-19 at 02:48 -0700, Luca Barbieri wrote:

Re: [Mesa-dev] failed to compile mesa

2010-04-19 Thread Dan Nicholson
On Sun, Apr 18, 2010 at 1:51 PM, Jakob Bornecrantz wrote: > On Sun, Apr 18, 2010 at 6:40 PM, CSJ wrote: >> Hi, Dan >> >> This patch works with >> ./autogen.sh --prefix="$PREFIX" --enable-xcb --with-dri-drivers=i915 >> --disable-gallium --without-demos >> >> if I use >> ./autogen.sh --prefix="$PRE

Re: [Mesa-dev] Mesa (gallium-index-bias): gallium: Add index bias parameter to draw_elements and friends.

2010-04-19 Thread José Fonseca
On Mon, 2010-04-19 at 02:48 -0700, Luca Barbieri wrote: > There is GL_ARB_draw_elements_base_vertex, already supported by Mesa > (but of course not mesa/st since Gallium lacked it). Thanks. So I guess that all drivers should eventually support this then. Jose ___