[Mesa-dev] [PATCH] st/mesa: choose 3-component float formats before 4-component formats

2011-04-26 Thread brianp
From: Brian Paul If GL_RGB16F or GL_RGB32F is specified let's try the 3-component float texture formats before trying the 4-component ones. Before this, GL_RGB16/32F were treated the same as GL_RGBA16/32F. --- src/mesa/state_tracker/st_format.c | 23 +-- 1 files changed, 2

Re: [Mesa-dev] [PATCH 2/5] mesa: implement EXT_texture_shared_exponent

2011-04-26 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 04/26/2011 05:21 PM, Marek Olšák wrote: > [snip] > > > +static INLINE float rgb9e5_MaxOf3(float x, float y, float z) > > +{ > > + if (x > y) { > > + return MAX2(x, z); > > + } else { > > + return MAX2(y, z); >

Re: [Mesa-dev] [PATCH 2/5] mesa: implement EXT_texture_shared_exponent

2011-04-26 Thread Marek Olšák
[snip] > > +static INLINE float rgb9e5_MaxOf3(float x, float y, float z) > > +{ > > + if (x > y) { > > + return MAX2(x, z); > > + } else { > > + return MAX2(y, z); > > + } > > +} > > On 04/26/2011 03:57 AM, Marek Olšák wrote: > This could probably be a MAX3 macro defined in the sam

Re: [Mesa-dev] [PATCH 2/2] configure.ac: refuse to build r300g without LLVM

2011-04-26 Thread Marek Olšák
On Wed, Apr 27, 2011 at 12:26 AM, Julien Cristau wrote: > On Sat, Apr 23, 2011 at 10:48:49 +0200, Marek Olšák wrote: > > > On Fri, Apr 22, 2011 at 1:29 PM, Jose Fonseca > wrote: > > > > > The Mesa state tracker uses SWTNL for GL selection/feedback regardless > of > > > the driver. Some SPECviewpe

[Mesa-dev] [PATCH] prog_print: Add support for printing the TXD opcode.

2011-04-26 Thread Kenneth Graunke
--- src/mesa/program/prog_print.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/src/mesa/program/prog_print.c b/src/mesa/program/prog_print.c index 484596a..7c3b490 100644 --- a/src/mesa/program/prog_print.c +++ b/src/mesa/program/prog_print.c @@ -647,6 +647,7 @@ _

[Mesa-dev] apitrace 1.0 (was: glretrace)

2011-04-26 Thread José Fonseca
FYI, over these past months I've been continuing to improve glretrace on my spare time, and lifted several of the previous limitations: added support for DrawArrays/Elements with user pointers; Map/UnmapBuffer; more extensions; several bug fixes. To the point that a great deal of GL apps trace & re

Re: [Mesa-dev] [PATCH 2/2] configure.ac: refuse to build r300g without LLVM

2011-04-26 Thread Julien Cristau
On Sat, Apr 23, 2011 at 10:48:49 +0200, Marek Olšák wrote: > On Fri, Apr 22, 2011 at 1:29 PM, Jose Fonseca wrote: > > > The Mesa state tracker uses SWTNL for GL selection/feedback regardless of > > the driver. Some SPECviewperf viewsets and CAD apps use it. So using LLVM > > speeds up selection/

[Mesa-dev] [Bug 35268] initial-exec TLS model breaks dlopen'ed libGL

2011-04-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=35268 --- Comment #4 from Julien Cristau 2011-04-26 14:36:31 PDT --- > --- Comment #3 from Tom Fogal 2011-04-26 10:25:37 PDT > --- > Is there hand-coded asm for other architectures (i.e. not just x86[-64]) as > well? I have not checked. However, I

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

2011-04-26 Thread Alex Deucher
2011/4/26 Alex Deucher : > 2011/4/26 Christian König : >> Hi Alex, >> >> Am Dienstag, den 26.04.2011, 09:52 -0400 schrieb Alex Deucher: >>> This looks great Christian.  Nice work.  One quick note regarding >>> 68cc6bc5d8b6986acc7f5780d705f4ae9be2a446, COLOR[0-7]_INFO does need a >>> bo.  It's requi

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

2011-04-26 Thread Alex Deucher
2011/4/26 Christian König : > Hi Alex, > > Am Dienstag, den 26.04.2011, 09:52 -0400 schrieb Alex Deucher: >> This looks great Christian.  Nice work.  One quick note regarding >> 68cc6bc5d8b6986acc7f5780d705f4ae9be2a446, COLOR[0-7]_INFO does need a >> bo.  It's required since that reg has the tiling

[Mesa-dev] [PATCH] egl: fix drm magic misnomer

2011-04-26 Thread nobled
Somehow this got propagated out from the Wayland stuff. --- src/egl/drivers/dri2/egl_dri2.h|2 +- src/egl/drivers/dri2/platform_drm.c|4 ++-- src/egl/drivers/dri2/platform_wayland.c|4 ++-- src/egl/drivers/dri2/platform_x11.c

[Mesa-dev] [PATCH] st/egl: expose EGL_MESA_drm_image on x11 displays

2011-04-26 Thread nobled
Date: Sun, 13 Feb 2011 23:45:47 + It only works for the DRI2 backend, not ximage. This brings egl_gallium closer to parity with egl_dri2. (Implementation copied and pasted from the drm backend.) --- src/gallium/state_trackers/egl/common/egl_g3d.c|3 ++ .../state_trackers/egl/common/n

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

2011-04-26 Thread Andy Furniss
Andy Furniss wrote: So is there something still missing for the xvmc state tracker, or can I continue with implementing the vdpau state tracker? There is a fullscreen issue - with 4/3 content on 16/9 screen the side black bars are drawn to leave 4/3 viewable, but the content is still stretched

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

2011-04-26 Thread Christian König
Am Dienstag, den 26.04.2011, 17:53 + schrieb youne...@gmail.com: > Hi Christian, > > Thanks for spending so much time on continuing this. I haven't really > touched it since you started, but someone else had some patches for > basic NV50 support. I don't recall who but I hope they can comment

Re: [Mesa-dev] [PATCH 1/2] Fix config check that claims to test if CXX supports -fvisibility=hidden option to actually test the C++ compiler.

2011-04-26 Thread Jon TURNEY
On 26/04/2011 17:45, tom fogal wrote: > On 04/26/2011 06:00 AM, Jon TURNEY wrote: >> Looking at this bit of autofoolery, I notice that at the moment it is just >> checking if CC supports -fvisibility=hidden twice > > We use visibility=hidden for *both* C and C++ code, no? > > Is the issue that th

Re: [Mesa-dev] [PATCH 2/5] mesa: implement EXT_texture_shared_exponent

2011-04-26 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 04/26/2011 03:57 AM, Marek Olšák wrote: > swrast support done. > > There is no renderbuffer support in swrast, because it's not required > by the extension. > --- > src/mesa/main/extensions.c |1 + > src/mesa/main/fbobject.c | 11 +++ >

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

2011-04-26 Thread younes . m
On , Christian König wrote: Hi Andy and everybody on the list, sorry for the late reply, but i've been on vacation the last couple of days. Am Dienstag, den 12.04.2011, 21:38 +0100 schrieb Andy Furniss: > In addition to the quit crash I notice that resizing will also crash. Sh

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

2011-04-26 Thread Christian König
Hi Alex, Am Dienstag, den 26.04.2011, 09:52 -0400 schrieb Alex Deucher: > This looks great Christian. Nice work. One quick note regarding > 68cc6bc5d8b6986acc7f5780d705f4ae9be2a446, COLOR[0-7]_INFO does need a > bo. It's required since that reg has the tiling field and we need the > reloc to kn

Re: [Mesa-dev] _mesa_texstore_argb8888 with GL_RGBA -> GL_RGB

2011-04-26 Thread Tristan Schmelcher
On 26 April 2011 08:20, Roland Scheidegger wrote: > Am 26.04.2011 01:15, schrieb Tristan Schmelcher: >> Hello, >> >> I have an OpenGL app where I'm writing video frames to textures. The >> video frames are semantically opaque but the alpha in the source >> pixels is set to 0xff, so I have been usi

[Mesa-dev] [Bug 35268] initial-exec TLS model breaks dlopen'ed libGL

2011-04-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=35268 --- Comment #3 from Tom Fogal 2011-04-26 10:25:37 PDT --- It looks like init_glapi_relocs is an empty function after this patch. Can it just be removed, then? Is there hand-coded asm for other architectures (i.e. not just x86[-64]) as well? I

Re: [Mesa-dev] [PATCH 1/2] Fix config check that claims to test if CXX supports -fvisibility=hidden option to actually test the C++ compiler.

2011-04-26 Thread tom fogal
On 04/26/2011 06:00 AM, Jon TURNEY wrote: Looking at this bit of autofoolery, I notice that at the moment it is just checking if CC supports -fvisibility=hidden twice We use visibility=hidden for *both* C and C++ code, no? Is the issue that the Cygwin C compiler supports hidden visibility, and

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

2011-04-26 Thread Andy Furniss
Christian König wrote: Hi Andy and everybody on the list, sorry for the late reply, but i've been on vacation the last couple of days. Am Dienstag, den 12.04.2011, 21:38 +0100 schrieb Andy Furniss: In addition to the quit crash I notice that resizing will also crash. Should be fixed by now. I

Re: [Mesa-dev] [PATCH 0/5] GL_EXT_texture_shared_exponent

2011-04-26 Thread Marek Olšák
On Tue, Apr 26, 2011 at 4:57 PM, Brian Paul wrote: > On 04/26/2011 04:57 AM, Marek Olšák wrote: > >> Hi, >> >> this series implements GL_EXT_texture_shared_exponent. >> >> The file rgb9e5.h has all its functions inline, because it's shared >> between classic and gallium. In that file, there are f

[Mesa-dev] [Bug 36609] New: 45920d2ecb38b14fdda5253fecce996570c22863 breaks sauerbraten on r300g

2011-04-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=36609 Summary: 45920d2ecb38b14fdda5253fecce996570c22863 breaks sauerbraten on r300g Product: Mesa Version: git Platform: x86 (IA32) OS/Version: Linux (All) Status: NEW

Re: [Mesa-dev] _mesa_texstore_argb8888 with GL_RGBA -> GL_RGB

2011-04-26 Thread Roland Scheidegger
Am 26.04.2011 01:15, schrieb Tristan Schmelcher: > Hello, > > I have an OpenGL app where I'm writing video frames to textures. The > video frames are semantically opaque but the alpha in the source > pixels is set to 0xff, so I have been using glTexImage2D with > format=GL_RGBA and internalFormat=

Re: [Mesa-dev] [PATCH 0/5] GL_EXT_texture_shared_exponent

2011-04-26 Thread Brian Paul
On 04/26/2011 04:57 AM, Marek Olšák wrote: Hi, this series implements GL_EXT_texture_shared_exponent. The file rgb9e5.h has all its functions inline, because it's shared between classic and gallium. In that file, there are functions rgb9e5_to_float3 and float3_to_rgb9e5, which are used pretty m

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

2011-04-26 Thread Alex Deucher
2011/4/26 Christian König : > Hi Andy and everybody on the list, > > sorry for the late reply, but i've been on vacation the last couple of > days. > > Am Dienstag, den 12.04.2011, 21:38 +0100 schrieb Andy Furniss: >> In addition to the quit crash I notice that resizing will also crash. > Should be

[Mesa-dev] [PATCH] Add git_sha1.h to .gitignore

2011-04-26 Thread Jon TURNEY
Since commit de579a1 "Include GIT SHA1 in GL version string" $ git status On branch master Your branch is ahead of 'origin/master' by 2 commits. Untracked files: (use "git add ..." to include in what will be committed) src/mesa/main/git_sha1.h nothing added to commit but untracked f

[Mesa-dev] [PATCH 2/2] Don't use -fvisibilty=hidden on cygwin

2011-04-26 Thread Jon TURNEY
Using -fvisibility=hidden makes the current cygwin gcc emit a warning "warning: visibility attribute not supported in this configuration; ignored" for every single non-static symbol $ make clean && make 2>&1 | grep "ignored" | wc -l 6457 This is pretty annoying and makes it hard to spot other err

[Mesa-dev] [PATCH 1/2] Fix config check that claims to test if CXX supports -fvisibility=hidden option to actually test the C++ compiler.

2011-04-26 Thread Jon TURNEY
Looking at this bit of autofoolery, I notice that at the moment it is just checking if CC supports -fvisibility=hidden twice Signed-off-by: Jon TURNEY --- configure.ac |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/configure.ac b/configure.ac index 3b05ca3..37ea5e7 100

[Mesa-dev] [PATCH 0/2] -fvisibility=hidden fixes

2011-04-26 Thread Jon TURNEY
Jon TURNEY (2): Fix config check that claims to test if CXX supports -fvisibility=hidden option to actually test the C++ compiler. Don't use -fvisibilty=hidden on cygwin configure.ac | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) -- 1.7.4

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

2011-04-26 Thread Christian König
Hi Andy and everybody on the list, sorry for the late reply, but i've been on vacation the last couple of days. Am Dienstag, den 12.04.2011, 21:38 +0100 schrieb Andy Furniss: > In addition to the quit crash I notice that resizing will also crash. Should be fixed by now. I implemented most of the

[Mesa-dev] [PATCH 5/5] r600g: trivially implement EXT_texture_shared_exponent

2011-04-26 Thread Marek Olšák
Nothing else needed. --- src/gallium/drivers/r600/r600_texture.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/src/gallium/drivers/r600/r600_texture.c b/src/gallium/drivers/r600/r600_texture.c index eb696b7..b22eb7b 100644 --- a/src/gallium/drivers/r600/r600_texture

[Mesa-dev] [PATCH 4/5] util: implement R9G9B9E5 pack and unpack functions

2011-04-26 Thread Marek Olšák
softpipe and llvmpipe support done (sampler only). --- src/gallium/auxiliary/util/u_format_other.c | 87 +-- 1 files changed, 82 insertions(+), 5 deletions(-) diff --git a/src/gallium/auxiliary/util/u_format_other.c b/src/gallium/auxiliary/util/u_format_other.c index fa

[Mesa-dev] [PATCH 3/5] st/mesa: support EXT_texture_shared_exponent

2011-04-26 Thread Marek Olšák
--- src/mesa/state_tracker/st_cb_drawpixels.c |4 src/mesa/state_tracker/st_extensions.c|6 ++ src/mesa/state_tracker/st_format.c| 13 + 3 files changed, 23 insertions(+), 0 deletions(-) diff --git a/src/mesa/state_tracker/st_cb_drawpixels.c b/src/mesa/

[Mesa-dev] [PATCH 0/5] GL_EXT_texture_shared_exponent

2011-04-26 Thread Marek Olšák
Hi, this series implements GL_EXT_texture_shared_exponent. The file rgb9e5.h has all its functions inline, because it's shared between classic and gallium. In that file, there are functions rgb9e5_to_float3 and float3_to_rgb9e5, which are used pretty much everywhere. I usually do some hardware

[Mesa-dev] [PATCH 2/5] mesa: implement EXT_texture_shared_exponent

2011-04-26 Thread Marek Olšák
swrast support done. There is no renderbuffer support in swrast, because it's not required by the extension. --- src/mesa/main/extensions.c |1 + src/mesa/main/fbobject.c | 11 +++ src/mesa/main/formats.c | 16 - src/mesa/main/formats.h |2 + src/mesa/main/image.c

[Mesa-dev] [PATCH 1/5] mesa: set reasonable defaults in update_wrapper

2011-04-26 Thread Marek Olšák
I was wondering why I had been getting GL_RGBA for GL_RGB9_E5. Instead of setting GL_RGBA and CHAN_TYPE for most types, use the helper functions to obtain the info. --- src/mesa/main/texrender.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/mesa/main/texrender

[Mesa-dev] [Bug 28683] cygwin build fix for mesa-demos

2011-04-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=28683 Jon TURNEY changed: What|Removed |Added Status|NEW |RESOLVED Resolution|