[Mesa-dev] [PATCH] i965: fix transform feedback with primitive restart

2012-06-28 Thread Jordan Justen
When querying GL_PRIMITIVES_GENERATED, if primitive restart is also used, then take the software primitive restart path so GL_PRIMITIVES_GENERATED is returned correctly. GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN is also updated since it will also affected by the same issue. As noted in brw_primiti

Re: [Mesa-dev] [PATCH] clover: Handle NULL devs argument in clBuildProgram

2012-06-28 Thread Francisco Jerez
Tom Stellard writes: > If devs is NULL, then the kernel should be compiled for all devices > associated with the program's context. > --- > src/gallium/state_trackers/clover/api/program.cpp | 16 ++-- > 1 files changed, 10 insertions(+), 6 deletions(-) > > diff --git a/src/gallium/

Re: [Mesa-dev] [libdrm PATCH 4/4] xf86drm.c: Make more code UDEV unrelevant and fix a memory leak.

2012-06-28 Thread Marcin Slusarz
On Thu, Jun 28, 2012 at 09:51:58PM +0200, Johannes Obermayr wrote: These patches should be sent to dri-devel, not mesa-dev. > --- > xf86drm.c | 15 ++- > 1 files changed, 10 insertions(+), 5 deletions(-) > > diff --git a/xf86drm.c b/xf86drm.c > index 6ea068f..798f1fd 100644 > ---

Re: [Mesa-dev] [PATCH] msaa: Make meta-ops save and restore state of GL_MULTISAMPLE.

2012-06-28 Thread Chad Versace
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 06/27/2012 04:51 PM, Paul Berry wrote: > The meta-ops _mesa_meta_Clear() and _mesa_meta_glsl_Clear() need to ignore > the state of GL_SAMPLE_ALPHA_TO_COVERAGE, GL_SAMPLE_ALPHA_TO_ONE, > GL_SAMPLE_COVERAGE, GL_SAMPLE_COVERAGE_VALUE, and GL_SAMPLE_COV

Re: [Mesa-dev] [libdrm PATCH 3/4] nouveau/nouveau.c: Fix two memory leaks.

2012-06-28 Thread Marcin Slusarz
On Thu, Jun 28, 2012 at 11:11:51PM +0200, Johannes Obermayr wrote: > Am Donnerstag, 28. Juni 2012, 23:06:10 schrieb Marcin Slusarz: > > On Thu, Jun 28, 2012 at 09:51:57PM +0200, Johannes Obermayr wrote: > > > --- > > > nouveau/nouveau.c |2 ++ > > > 1 files changed, 2 insertions(+), 0 deletion

Re: [Mesa-dev] [libdrm PATCH 1/4] libkms/intel.c: Fix a memory leak and a dead assignment as well as cleanup code a bit.

2012-06-28 Thread Marcin Slusarz
On Thu, Jun 28, 2012 at 09:51:55PM +0200, Johannes Obermayr wrote: > --- > libkms/intel.c | 23 --- > 1 files changed, 12 insertions(+), 11 deletions(-) > > diff --git a/libkms/intel.c b/libkms/intel.c > index 8b8249b..7bf1f76 100644 > --- a/libkms/intel.c > +++ b/libkms/int

Re: [Mesa-dev] [libdrm PATCH 2/4] libkms/nouveau.c: Fix a memory leak and cleanup code a bit.

2012-06-28 Thread Marcin Slusarz
On Thu, Jun 28, 2012 at 09:51:56PM +0200, Johannes Obermayr wrote: > --- > libkms/nouveau.c | 20 +++- > 1 files changed, 11 insertions(+), 9 deletions(-) > > diff --git a/libkms/nouveau.c b/libkms/nouveau.c > index 0e24a15..4cbca96 100644 > --- a/libkms/nouveau.c > +++ b/libkms

Re: [Mesa-dev] [libdrm PATCH 3/4] nouveau/nouveau.c: Fix two memory leaks.

2012-06-28 Thread Johannes Obermayr
Am Donnerstag, 28. Juni 2012, 23:06:10 schrieb Marcin Slusarz: > On Thu, Jun 28, 2012 at 09:51:57PM +0200, Johannes Obermayr wrote: > > --- > > nouveau/nouveau.c |2 ++ > > 1 files changed, 2 insertions(+), 0 deletions(-) > > > > diff --git a/nouveau/nouveau.c b/nouveau/nouveau.c > > index 5a

Re: [Mesa-dev] [libdrm PATCH 3/4] nouveau/nouveau.c: Fix two memory leaks.

2012-06-28 Thread Marcin Slusarz
On Thu, Jun 28, 2012 at 09:51:57PM +0200, Johannes Obermayr wrote: > --- > nouveau/nouveau.c |2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/nouveau/nouveau.c b/nouveau/nouveau.c > index 5aa4107..e91287f 100644 > --- a/nouveau/nouveau.c > +++ b/nouveau/nouveau.c > @

Re: [Mesa-dev] [PATCH] msaa: Make meta-ops save and restore state of GL_MULTISAMPLE.

2012-06-28 Thread Anuj Phogat
On Wed, Jun 27, 2012 at 4:51 PM, Paul Berry wrote: > The meta-ops _mesa_meta_Clear() and _mesa_meta_glsl_Clear() need to > ignore the state of GL_SAMPLE_ALPHA_TO_COVERAGE, > GL_SAMPLE_ALPHA_TO_ONE, GL_SAMPLE_COVERAGE, GL_SAMPLE_COVERAGE_VALUE, > and GL_SAMPLE_COVERAGE_INVERT when clearing multisam

[Mesa-dev] [PATCH] clover: Handle NULL devs argument in clBuildProgram

2012-06-28 Thread Tom Stellard
If devs is NULL, then the kernel should be compiled for all devices associated with the program's context. --- src/gallium/state_trackers/clover/api/program.cpp | 16 ++-- 1 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/gallium/state_trackers/clover/api/program.cp

[Mesa-dev] [PATCH] r600g: Update number of gprs when adding a vertex instruction

2012-06-28 Thread Tom Stellard
--- src/gallium/drivers/r600/r600_asm.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/gallium/drivers/r600/r600_asm.c b/src/gallium/drivers/r600/r600_asm.c index b0cda3a..2341bec 100644 --- a/src/gallium/drivers/r600/r600_asm.c +++ b/src/gallium/drivers/r600/r600

[Mesa-dev] [libdrm PATCH 4/4] xf86drm.c: Make more code UDEV unrelevant and fix a memory leak.

2012-06-28 Thread Johannes Obermayr
--- xf86drm.c | 15 ++- 1 files changed, 10 insertions(+), 5 deletions(-) diff --git a/xf86drm.c b/xf86drm.c index 6ea068f..798f1fd 100644 --- a/xf86drm.c +++ b/xf86drm.c @@ -255,6 +255,7 @@ static int drmMatchBusID(const char *id1, const char *id2, int pci_domain_ok) return 0

[Mesa-dev] [libdrm PATCH 3/4] nouveau/nouveau.c: Fix two memory leaks.

2012-06-28 Thread Johannes Obermayr
--- nouveau/nouveau.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/nouveau/nouveau.c b/nouveau/nouveau.c index 5aa4107..e91287f 100644 --- a/nouveau/nouveau.c +++ b/nouveau/nouveau.c @@ -95,6 +95,7 @@ nouveau_device_wrap(int fd, int close, struct nouveau_device **pdev

[Mesa-dev] [libdrm PATCH 2/4] libkms/nouveau.c: Fix a memory leak and cleanup code a bit.

2012-06-28 Thread Johannes Obermayr
--- libkms/nouveau.c | 20 +++- 1 files changed, 11 insertions(+), 9 deletions(-) diff --git a/libkms/nouveau.c b/libkms/nouveau.c index 0e24a15..4cbca96 100644 --- a/libkms/nouveau.c +++ b/libkms/nouveau.c @@ -94,14 +94,18 @@ nouveau_bo_create(struct kms_driver *kms, if

[Mesa-dev] [libdrm PATCH 1/4] libkms/intel.c: Fix a memory leak and a dead assignment as well as cleanup code a bit.

2012-06-28 Thread Johannes Obermayr
--- libkms/intel.c | 23 --- 1 files changed, 12 insertions(+), 11 deletions(-) diff --git a/libkms/intel.c b/libkms/intel.c index 8b8249b..7bf1f76 100644 --- a/libkms/intel.c +++ b/libkms/intel.c @@ -93,14 +93,18 @@ intel_bo_create(struct kms_driver *kms, if (!bo)

[Mesa-dev] [Bug 51531] New: `make distclean` fails in wayland-drm/

2012-06-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=51531 Bug #: 51531 Summary: `make distclean` fails in wayland-drm/ Classification: Unclassified Product: Mesa Version: git Platform: All OS/Version: All Status: NEW

Re: [Mesa-dev] [PATCH] clover: Increment an object's reference count in ret_object()

2012-06-28 Thread Tom Stellard
On Thu, Jun 28, 2012 at 03:47:23PM +0200, Francisco Jerez wrote: > Tom Stellard writes: > > > On Thu, Jun 28, 2012 at 01:09:20AM +0200, Francisco Jerez wrote: > >> Tom Stellard writes: > >> > >> > We need to increment the reference count for objects, like cl_event, > >> > that the user is respo

Re: [Mesa-dev] GL_ARB_ubo spec question

2012-06-28 Thread Brian Paul
On 06/27/2012 12:01 PM, Eric Anholt wrote: How should glBindBufferBase and glBindBufferRange treat bad buffer arguments? I see two relevant pieces of spec: "The error INVALID_OPERATION is generated by BindBufferRange and BindBufferBase if is not the name of a valid buffer obje

[Mesa-dev] [PATCH] clover: Add a function internalizer pass before LTO v2

2012-06-28 Thread Tom Stellard
The function internalizer pass marks non-kernel functions as internal, which enables optimizations like function inlining and global dead-code elimination. v2: - Pass vector arguments by const reference --- .../state_trackers/clover/llvm/invocation.cpp | 59 --- 1 files c

Re: [Mesa-dev] [PATCH] r600g: improve flushed depth texture handling v2

2012-06-28 Thread Vadim Girlin
On Tue, 2012-06-26 at 19:40 -0400, Alex Deucher wrote: > On Tue, Jun 26, 2012 at 7:34 PM, Vadim Girlin wrote: > > Use r600_resource_texture::flished_depth_texture for GPU access, and > > allocate it in the VRAM. For transfers we'll allocate untiled texture in the > > GTT and store it in the r600_t

Re: [Mesa-dev] [PATCH] clover: Increment an object's reference count in ret_object()

2012-06-28 Thread Francisco Jerez
Tom Stellard writes: > On Thu, Jun 28, 2012 at 01:09:20AM +0200, Francisco Jerez wrote: >> Tom Stellard writes: >> >> > We need to increment the reference count for objects, like cl_event, >> > that the user is responsible for destroying when they are returned from >> > the API. Otherwise, the

Re: [Mesa-dev] [PATCH] clover: Add a function internalizer pass before LTO

2012-06-28 Thread Francisco Jerez
Tom Stellard writes: > I'll commit this tomorrow unless there are objections. > Looks OK to me, aside from the std::vector's being passed around by value instead of by const reference. > -Tom > > On Thu, Jun 21, 2012 at 02:05:24PM -0400, Tom Stellard wrote: >> The function internalizer pass mark

Re: [Mesa-dev] [PATCH] msaa: Make meta-ops save and restore state of GL_MULTISAMPLE.

2012-06-28 Thread Brian Paul
On 06/27/2012 05:51 PM, Paul Berry wrote: The meta-ops _mesa_meta_Clear() and _mesa_meta_glsl_Clear() need to ignore the state of GL_SAMPLE_ALPHA_TO_COVERAGE, GL_SAMPLE_ALPHA_TO_ONE, GL_SAMPLE_COVERAGE, GL_SAMPLE_COVERAGE_VALUE, and GL_SAMPLE_COVERAGE_INVERT when clearing multisampled buffers. T

Re: [Mesa-dev] [PATCH] clover: Increment an object's reference count in ret_object()

2012-06-28 Thread Tom Stellard
On Thu, Jun 28, 2012 at 01:09:20AM +0200, Francisco Jerez wrote: > Tom Stellard writes: > > > We need to increment the reference count for objects, like cl_event, > > that the user is responsible for destroying when they are returned from > > the API. Otherwise, the object will be destroyed when

Re: [Mesa-dev] [PATCH] lp_build_lod_selector: Disable brilinear folding on explicit lod.

2012-06-28 Thread Jose Fonseca
- Original Message - > On Wed, Jun 27, 2012 at 03:17:05AM -0700, Jose Fonseca wrote: > > I took a look at the results, and it seems to me that bri linear > > code is fine -- the test is merely too strict, and doesnot forgive > > the gravitation towards integer lod that brilinear implements.

[Mesa-dev] [Bug 51515] eglmesaext.h isn't installed on a gallium setup

2012-06-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=51515 --- Comment #1 from Mike Lothian 2012-06-28 03:59:42 PDT --- Created attachment 63560 --> https://bugs.freedesktop.org/attachment.cgi?id=63560 r600g on it's own -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email -

[Mesa-dev] [Bug 51515] New: eglmesaext.h isn't installed on a gallium setup

2012-06-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=51515 Bug #: 51515 Summary: eglmesaext.h isn't installed on a gallium setup Classification: Unclassified Product: Mesa Version: git Platform: x86-64 (AMD64) OS/Version: Linux (All)

Re: [Mesa-dev] [PATCH] gallivm: Fix potential buffer overflowing in strncat.

2012-06-28 Thread Jose Fonseca
Pushed. Thanks. Jose - Original Message - > --- > src/gallium/auxiliary/gallivm/lp_bld_printf.c |6 +++--- > 1 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/src/gallium/auxiliary/gallivm/lp_bld_printf.c > b/src/gallium/auxiliary/gallivm/lp_bld_printf.c > index 16ef

[Mesa-dev] [PATCH] gallivm: Fix potential buffer overflowing in strncat.

2012-06-28 Thread Johannes Obermayr
--- src/gallium/auxiliary/gallivm/lp_bld_printf.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gallium/auxiliary/gallivm/lp_bld_printf.c b/src/gallium/auxiliary/gallivm/lp_bld_printf.c index 16ef25a..35e9197 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_pr

[Mesa-dev] [PATCH] Use probed $LLVM_CONFIG value instead of hard-coding it

2012-06-28 Thread Luca Tettamanti
It makes it easier to use a non-default llvm-config binary. Signed-off-by: Luca Tettamanti --- configure.ac |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 46265a2..4572ee3 100644 --- a/configure.ac +++ b/configure.ac @@ -1866,7 +1866,