[Mesa-dev] can't build/install osmesa and gl at same time

2012-07-16 Thread Dave Airlie
In Fedora we've always built both osmesa and GL versions of mesa, we used to do this in two passes but its been possible for a while to do this in a single pass, and it seems to work. However now src/mesa/Makefile.am contains this: if HAVE_OSMESA_DRIVER pkgconfig_DATA = osmesa.pc else pkgconfig_D

Re: [Mesa-dev] [PATCH 2/5] intel gen4-5: Compute the interpolation status for every variable in one place.

2012-07-16 Thread Paul Berry
On 30 June 2012 11:50, Olivier Galibert wrote: > The program keys are updated accordingly, but the values are not used > yet. > > Signed-off-by: Olivier Galibert > --- > src/mesa/drivers/dri/i965/brw_clip.c| 82 > ++- > src/mesa/drivers/dri/i965/brw_clip.h

[Mesa-dev] [PATCH] glx: build tests after libglx.la

2012-07-16 Thread Matt Turner
Previously, if you ran make followed by make check it would work, but if you just ran make check the test program would fail to compile. --- src/glx/Makefile.am |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/glx/Makefile.am b/src/glx/Makefile.am index 6ca85cd..bb2399

Re: [Mesa-dev] [PATCH 1/5] intel gen4/5: fix GL_VERTEX_PROGRAM_TWO_SIDE.

2012-07-16 Thread Paul Berry
On 30 June 2012 11:50, Olivier Galibert wrote: > There was... confusion about which register goes where. With that > patch urb_setup is in line with the vue setup, even when these > annoying backcolor slots are used. And in addition the stray mov into > lalaland is avoided when only one of the

Re: [Mesa-dev] [Intel-gfx] [PATCH 0/5] First batch of gm45 clipping/interpolation fixes

2012-07-16 Thread Paul Berry
On 14 July 2012 02:21, Olivier Galibert wrote: > On Fri, Jul 13, 2012 at 02:45:10PM -0700, Kenneth Graunke wrote: > > Sorry...been really busy, and most of us haven't actually spent much if > > any time in the clipper shaders. I'll try and review it within a week. > > Ok cool, lack of time is so

[Mesa-dev] [Bug 52130] [PATCH] Fix compiling error in src/glsl/Makefile.am

2012-07-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=52130 --- Comment #2 from Homer Hsing 2012-07-17 01:54:21 UTC --- I was wrong. glsl_lexer.cc is automatically generated from src/glsl/glsl_lexer.ll I guess maybe glsl_lexer.cpp is generated in the past some time, causing the compiling error ... Th

[Mesa-dev] XOrg EVoC - Piglit tests for ARB_gpu_shader5 and ARB_tessellation_shader

2012-07-16 Thread Ken Phillis Jr
Hi, I am looking to enter the Xorg EVoC for 2012, and am wanting to Implement two Core extensions for OpenGL 4.0 and GLSL 4.00. Name: Piglit - Implement Tessellation shaders Extension Tests Summary: To imple

Re: [Mesa-dev] [PATCH] mesa context: generate an error for uninstalled context functions

2012-07-16 Thread Jordan Justen
On Mon, Jul 16, 2012 at 4:47 PM, Jordan Justen wrote: > For 'non-legacy' contexts we will want to generate an error > if an uninstalled function is called. > > The effect of this change will be that we can avoid installing > legacy functions, and they will then generate an error as > needed for de

[Mesa-dev] [PATCH] mesa context: generate an error for uninstalled context functions

2012-07-16 Thread Jordan Justen
For 'non-legacy' contexts we will want to generate an error if an uninstalled function is called. The effect of this change will be that we can avoid installing legacy functions, and they will then generate an error as needed for deprecated functions in GL >= 3.1. Signed-off-by: Jordan Justen Cc

Re: [Mesa-dev] [PATCH 2/6] intel: Convert to using private depth/stencil buffers (v2)

2012-07-16 Thread Kenneth Graunke
On 07/16/2012 03:02 PM, Chad Versace wrote: > From: Eric Anholt > > This means that GLX buffer sharing of these no longer works. On the > other hand, just *look* at this code reduction. It's not just the quantity---it's the *quality*! It served its purpose, but I'm really glad to see it go. -

Re: [Mesa-dev] [PATCH] msaa: Generate proper error for operations prohibited on MSAA buffers.

2012-07-16 Thread Kenneth Graunke
On 07/16/2012 01:36 PM, Paul Berry wrote: > From the GL 3.0 spec, section 4.3.3, in the documentation for > CopyPixels(): > > "An INVALID_OPERATION error will be generated if the object bound > to READ_FRAMEBUFFER_BINDING is framebuffer complete and the value > of SAMPLE_BUFFERS is gre

[Mesa-dev] [PATCH 6/6] intel: Add a comment explaining why we early return on matching BO names.

2012-07-16 Thread Chad Versace
From: Eric Anholt Reviewed-by: Chad Versace --- src/mesa/drivers/dri/intel/intel_context.c | 4 1 file changed, 4 insertions(+) diff --git a/src/mesa/drivers/dri/intel/intel_context.c b/src/mesa/drivers/dri/intel/intel_context.c index 2494ac7..378859c 100644 --- a/src/mesa/drivers/dri/in

[Mesa-dev] [PATCH 2/6] intel: Convert to using private depth/stencil buffers (v2)

2012-07-16 Thread Chad Versace
From: Eric Anholt This means that GLX buffer sharing of these no longer works. On the other hand, just *look* at this code reduction. v2: - [chad] Fix intelCreateBuffer for gen < 6. When the branch for !screen->hw_has_separate_stencil was taken, intel_create_private_renderbuffer was i

[Mesa-dev] [PATCH 5/6] intel: Drop other checks for old loader version.

2012-07-16 Thread Chad Versace
From: Eric Anholt Reviewed-by: Chad Versace --- src/mesa/drivers/dri/intel/intel_context.c | 64 -- 1 file changed, 26 insertions(+), 38 deletions(-) diff --git a/src/mesa/drivers/dri/intel/intel_context.c b/src/mesa/drivers/dri/intel/intel_context.c index 39a9a85.

[Mesa-dev] [PATCH 3/6] intel: Remove dead intel_framebuffer_has_hiz().

2012-07-16 Thread Chad Versace
From: Eric Anholt Reviewed-by: Chad Versace --- src/mesa/drivers/dri/intel/intel_fbo.c | 9 - src/mesa/drivers/dri/intel/intel_fbo.h | 4 2 files changed, 13 deletions(-) diff --git a/src/mesa/drivers/dri/intel/intel_fbo.c b/src/mesa/drivers/dri/intel/intel_fbo.c index 99fee9d..e

[Mesa-dev] [PATCH 4/6] intel: Replace the non-getBuffersWithFormat compat path with an error message.

2012-07-16 Thread Chad Versace
From: Eric Anholt It's been broken (using NULL getBuffersWithFormat() instead of getBuffers()) due to a copy and paste error for a year now. GetBuffersWithFormat has been around since 2009, so I don't feel any guilt in not supporting it. Reviewed-by: Chad Versace --- src/mesa/drivers/dri/intel

[Mesa-dev] [PATCH 0/6 v2] Private window system depth/stencil buffers

2012-07-16 Thread Chad Versace
[chad]: I'm resubmitting Eric's series with fixes because he is on vacation and I really want to see this committed soon. I have a pending series that directly depends on this one. [/end] We've been talking about doing this for a long time -- ignore the piece of the GLX spec about clients sharing

[Mesa-dev] [PATCH 1/6] intel: Add a function for creating a private window system buffer.

2012-07-16 Thread Chad Versace
From: Eric Anholt Reviewed-by: Chad Versace --- src/mesa/drivers/dri/intel/intel_fbo.c | 19 +-- src/mesa/drivers/dri/intel/intel_fbo.h | 3 +++ 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/intel/intel_fbo.c b/src/mesa/drivers/dri/intel/

Re: [Mesa-dev] [PATCH] msaa: Generate proper error for operations prohibited on MSAA buffers.

2012-07-16 Thread Brian Paul
On 07/16/2012 02:36 PM, Paul Berry wrote: From the GL 3.0 spec, section 4.3.3, in the documentation for CopyPixels(): "An INVALID_OPERATION error will be generated if the object bound to READ_FRAMEBUFFER_BINDING is framebuffer complete and the value of SAMPLE_BUFFERS is greater t

Re: [Mesa-dev] src/mesa/x86/*S sources not being built

2012-07-16 Thread Brian Paul
On 07/16/2012 02:38 PM, Jon TURNEY wrote: On 16/07/2012 20:22, Brian Paul wrote: I was going to look at a recently reported regression with the swrast driver but Mesa's not building properly. I configured with: CFLAGS=-g ./autogen.sh --enable-xlib-glx --with-x --disable-driglx-direct --disable

[Mesa-dev] [Bug 52168] New: lp_test_blend regression

2012-07-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=52168 Bug #: 52168 Summary: lp_test_blend regression Classification: Unclassified Product: Mesa Version: git Platform: x86-64 (AMD64) OS/Version: All Status: NEW S

Re: [Mesa-dev] src/mesa/x86/*S sources not being built

2012-07-16 Thread Jon TURNEY
On 16/07/2012 20:22, Brian Paul wrote: > I was going to look at a recently reported regression with the swrast driver > but Mesa's not building properly. I configured with: > > CFLAGS=-g ./autogen.sh --enable-xlib-glx --with-x --disable-driglx-direct > --disable-dri --enable-debug > > libGL.so g

[Mesa-dev] [PATCH] msaa: Generate proper error for operations prohibited on MSAA buffers.

2012-07-16 Thread Paul Berry
>From the GL 3.0 spec, section 4.3.3, in the documentation for CopyPixels(): "An INVALID_OPERATION error will be generated if the object bound to READ_FRAMEBUFFER_BINDING is framebuffer complete and the value of SAMPLE_BUFFERS is greater than zero." The same applies to CopyTexImage...

[Mesa-dev] radeon fail to link to libdricore

2012-07-16 Thread Laurent Carlier
mesa from git/x86_64; with the following install script: make -C src/mesa/drivers/dri/radeon DESTDIR="${pkgdir}" install make -C src/mesa/drivers/dri/r200 DESTDIR="${pkgdir}" install # gallium3D driver for r300,r600 make -C src/gallium/targets/dri-r300 DESTDIR="${pkgdir}" install make -C src/galli

[Mesa-dev] [Bug 52167] llvmpipe test programs link fails when ld --as-needed option is used

2012-07-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=52167 --- Comment #1 from Olivier Blin 2012-07-16 20:15:23 PDT --- Link is also fine if I remove the --as-needed option in the original command. -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email --- You are receiving thi

[Mesa-dev] [Bug 52167] llvmpipe test programs link fails when ld --as-needed option is used

2012-07-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=52167 Olivier Blin changed: What|Removed |Added CC||f...@colin.guthr.ie -- Configure bugmail

[Mesa-dev] [Bug 52167] New: llvmpipe test programs link fails when ld --as-needed option is used

2012-07-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=52167 Bug #: 52167 Summary: llvmpipe test programs link fails when ld --as-needed option is used Classification: Unclassified Product: Mesa Version: git Platform: Other

Re: [Mesa-dev] src/mesa/x86/*S sources not being built

2012-07-16 Thread Matt Turner
On Mon, Jul 16, 2012 at 12:22 PM, Brian Paul wrote: > I was going to look at a recently reported regression with the swrast driver > but Mesa's not building properly. I configured with: > > CFLAGS=-g ./autogen.sh --enable-xlib-glx --with-x --disable-driglx-direct > --disable-dri --enable-debug >

Re: [Mesa-dev] [PATCH] Fix build to use glsl_parser.hh instead of glsl_parser.h.

2012-07-16 Thread Ian Romanick
On 07/16/2012 11:20 AM, Kenneth Graunke wrote: On 07/16/2012 10:21 AM, Matt Turner wrote: On Mon, Jul 16, 2012 at 10:14 AM, Ian Romanick wrote: Nice. That works for me. Has a bug been reported to automake? I emailed the automake mailing list and asked how to handle this and the response re

[Mesa-dev] src/mesa/x86/*S sources not being built

2012-07-16 Thread Brian Paul
I was going to look at a recently reported regression with the swrast driver but Mesa's not building properly. I configured with: CFLAGS=-g ./autogen.sh --enable-xlib-glx --with-x --disable-driglx-direct --disable-dri --enable-debug libGL.so gets built but anything I try to run fails with:

Re: [Mesa-dev] [PATCH] egl_dri2: NULL check for EGLNativeWindowType

2012-07-16 Thread Brian Paul
On 07/10/2012 08:13 PM, Elvis Lee wrote: Some application calls eglCreateWindowSurface with EGLNativeWindowType parameter having zero value. It causes SEGV and disturbs error handling like EGL_NO_SURFACE. Signed-off-by: Elvis Lee --- src/egl/drivers/dri2/platform_drm.c |2 ++ 1 file chang

[Mesa-dev] [PATCH] Add support for OES_standard_derivatives in GLSL ES

2012-07-16 Thread Tomeu Vizoso
Previously, we advertised the extension but the builtin functions were enabled only for GLSL and not for ES. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=52003 Signed-off-by: Tomeu Vizoso Reviewed-by: Ian Romanick --- .../profiles/OES_standard_derivatives.frag | 20

[Mesa-dev] wider registers in llvmpipe

2012-07-16 Thread Jose Fonseca
FYI, I've just pushed a branch named llvmpipe-wider-regs, which allows llvmpipe to leverage SIMD registers wider than 128bits. Unfortunately, performance-wise this doesn't change much, as llvmpipe performance is dominated by integer SIMD instructions, whereas currently the AVX instruction set c

Re: [Mesa-dev] [PATCH] Fix build to use glsl_parser.hh instead of glsl_parser.h.

2012-07-16 Thread Kenneth Graunke
On 07/16/2012 10:21 AM, Matt Turner wrote: > On Mon, Jul 16, 2012 at 10:14 AM, Ian Romanick wrote: >> Nice. That works for me. Has a bug been reported to automake? > > I emailed the automake mailing list and asked how to handle this and > the response received made it seem to me that this chang

Re: [Mesa-dev] [PATCH] Fix build to use glsl_parser.hh instead of glsl_parser.h.

2012-07-16 Thread Matt Turner
On Mon, Jul 16, 2012 at 10:14 AM, Ian Romanick wrote: > Nice. That works for me. Has a bug been reported to automake? I emailed the automake mailing list and asked how to handle this and the response received made it seem to me that this change was intentional. :( > Also, could we do something

Re: [Mesa-dev] [PATCH] Fix build to use glsl_parser.hh instead of glsl_parser.h.

2012-07-16 Thread Ian Romanick
On 07/16/2012 09:28 AM, Jon TURNEY wrote: On 16/07/2012 17:10, Ian Romanick wrote: On 07/15/2012 06:30 AM, Matt Turner wrote: On Sun, Jul 15, 2012 at 1:21 AM, Ian Romanick wrote: On 07/13/2012 03:03 PM, Jon TURNEY wrote: On 13/07/2012 22:23, Marcin Baczyński wrote: Commit 68e04cc6014bf7a2

Re: [Mesa-dev] [PATCH] Fix build to use glsl_parser.hh instead of glsl_parser.h.

2012-07-16 Thread Jon TURNEY
On 16/07/2012 17:10, Ian Romanick wrote: > On 07/15/2012 06:30 AM, Matt Turner wrote: >> On Sun, Jul 15, 2012 at 1:21 AM, Ian Romanick wrote: >>> On 07/13/2012 03:03 PM, Jon TURNEY wrote: On 13/07/2012 22:23, Marcin Baczyński wrote: > > Commit 68e04cc6014bf7a2c9bd0b3b783b4ec12aa2

Re: [Mesa-dev] [PATCH] Fix build to use glsl_parser.hh instead of glsl_parser.h.

2012-07-16 Thread Ian Romanick
On 07/15/2012 06:30 AM, Matt Turner wrote: On Sun, Jul 15, 2012 at 1:21 AM, Ian Romanick wrote: On 07/13/2012 03:03 PM, Jon TURNEY wrote: On 13/07/2012 22:23, Marcin Baczyński wrote: Commit 68e04cc6014bf7a2c9bd0b3b783b4ec12aa2e824 changed .cpp -> .cc, but forgot to update references .h -> .

Re: [Mesa-dev] [PATCH 3/6] r300g: Build a libtool archive

2012-07-16 Thread Matt Turner
On Mon, Jul 16, 2012 at 5:50 AM, Jon TURNEY wrote: > On 13/07/2012 18:33, Tom Stellard wrote: >> -r300_compiler_tests_LDADD = libr300.a >> +r300_compiler_tests_LDADD = $(builddir)/.libs/libr300.la > > I think this can be written $(builddir)/libr300.la We're building from the same directory, so sh

Re: [Mesa-dev] [PATCH 1/2] radeon/llvm: fix compiling when llvm is active, but opencl isn't

2012-07-16 Thread Tom Stellard
On Mon, Jul 16, 2012 at 03:46:35PM +0200, Christian König wrote: > On 16.07.2012 15:32, Tom Stellard wrote: > >On Mon, Jul 16, 2012 at 12:14:27PM +0200, Christian König wrote: > >>Signed-off-by: Christian König > >>--- > >> src/gallium/drivers/r600/r600_llvm.c |4 > >> 1 file changed, 4

Re: [Mesa-dev] [PATCH 1/2] radeon/llvm: fix compiling when llvm is active, but opencl isn't

2012-07-16 Thread Christian König
On 16.07.2012 15:32, Tom Stellard wrote: On Mon, Jul 16, 2012 at 12:14:27PM +0200, Christian König wrote: Signed-off-by: Christian König --- src/gallium/drivers/r600/r600_llvm.c |4 1 file changed, 4 insertions(+) diff --git a/src/gallium/drivers/r600/r600_llvm.c b/src/gallium/dri

Re: [Mesa-dev] [PATCH 1/2] radeon/llvm: fix compiling when llvm is active, but opencl isn't

2012-07-16 Thread Tom Stellard
On Mon, Jul 16, 2012 at 12:14:27PM +0200, Christian König wrote: > Signed-off-by: Christian König > --- > src/gallium/drivers/r600/r600_llvm.c |4 > 1 file changed, 4 insertions(+) > > diff --git a/src/gallium/drivers/r600/r600_llvm.c > b/src/gallium/drivers/r600/r600_llvm.c > index 5e

[Mesa-dev] [PATCHv2] automake: Honor GL_LIB for mangled/custom lib names

2012-07-16 Thread Brad King
Commit 2d4b77c7 (automake: Convert src/mesa/drivers/x11/Makefile to automake, 2012-06-12) dropped the old Makefile, which used GL_LIB, and replaced it with a Makefile.am hard-coding the name "GL". This broke handling of --enable-mangling and --with-gl-lib-name options which depend on GL_LIB to spe

Re: [Mesa-dev] [PATCH 6/6] libgallium: Convert to automake

2012-07-16 Thread Jon TURNEY
On 13/07/2012 18:33, Tom Stellard wrote: > +SUBDIRS += pipebuffer This looks like an addition. I'm not sure why, as the sources in pipebuffer/ are already listed in C_SOURCES? > + > +indices/u_indices_gen.c: indices/u_indices_gen.py > + $(PYTHON2) $< > $@ You might want to consider using $(

Re: [Mesa-dev] [PATCH 3/6] r300g: Build a libtool archive

2012-07-16 Thread Jon TURNEY
On 13/07/2012 18:33, Tom Stellard wrote: > -r300_compiler_tests_LDADD = libr300.a > +r300_compiler_tests_LDADD = $(builddir)/.libs/libr300.la I think this can be written $(builddir)/libr300.la > r300_compiler_tests_CPPFLAGS = \ > -I$(top_srcdir)/src/gallium/drivers/r300/compiler > r300_co

[Mesa-dev] [Bug 52130] [PATCH] Fix compiling error in src/glsl/Makefile.am

2012-07-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=52130 Jon TURNEY changed: What|Removed |Added CC||jon.tur...@dronecode.org.uk --- Comment #1

Re: [Mesa-dev] [PATCH 2/2] radeonsi: fix vertex element state

2012-07-16 Thread Michel Dänzer
On Mon, 2012-07-16 at 12:14 +0200, Christian König wrote: > The vertex element state isn't in registers any more, so > remove that old code. That fixes a memory corruption with > the blend state and gets eglgears partially working. > > Signed-off-by: Christian König Good catch. The vbuffer_off

[Mesa-dev] [PATCH 2/2] radeonsi: fix vertex element state

2012-07-16 Thread Christian König
The vertex element state isn't in registers any more, so remove that old code. That fixes a memory corruption with the blend state and gets eglgears partially working. Signed-off-by: Christian König --- src/gallium/drivers/radeonsi/r600_state_common.c | 32 -- src/gallium/d

[Mesa-dev] [PATCH 1/2] radeon/llvm: fix compiling when llvm is active, but opencl isn't

2012-07-16 Thread Christian König
Signed-off-by: Christian König --- src/gallium/drivers/r600/r600_llvm.c |4 1 file changed, 4 insertions(+) diff --git a/src/gallium/drivers/r600/r600_llvm.c b/src/gallium/drivers/r600/r600_llvm.c index 5e073e0..e77758b 100644 --- a/src/gallium/drivers/r600/r600_llvm.c +++ b/src/galliu

[Mesa-dev] [UPDATE][HOTEL] XDC2012 - Announcement

2012-07-16 Thread Egbert Eich
Please Register! Just to beat the drums a bit more and give you some updates: Currently we have 16 registered participants for XDC 2012 in Nuernberg there only 11 weeks until the event, so if you have not done so already: - if you are on a corporate budget please ping your corpo