[Mesa-dev] [PATCH] i965/fs: Don't try 16-wide if 8-wide uses more than half the registers.

2012-08-15 Thread Kenneth Graunke
16-wide programs use roughly twice as many registers as 8-wide, and we don't support spilling in 16-wide. So if an 8-wide program uses more than half the available GRFs, the 16-wide one almost certainly will fail to compile during register allocation. Not only that, but attempting to compiling su

[Mesa-dev] [PATCH] i965/fs: Fix INTEL_DEBUG=perf program key printing.

2012-08-15 Thread Kenneth Graunke
When dumping differences in program keys, it printed messages of the format: [Name of thing that changed] [new]->[old] This was terribly confusing: the right arrow implies "the value changed from this to that", when in fact the message conveyed the opposite. Except that some of the time, it

Re: [Mesa-dev] R600g : rejected cs and etqw corruption with - implement wait-free buffer transfer for DISCARD_RANGE

2012-08-15 Thread Andy Furniss
Andy Furniss wrote: Andy Furniss wrote: Andy Furniss wrote: Marek Olšák wrote: Hi Andy, this should be fixed by the commit: commit c3c83af380d703cdc24475bd39baa1722c333b44 Author: Marek Olšák Date: Wed Jul 18 18:33:37 2012 +0200 r600g: setup streamout before calling last r600_need_c

[Mesa-dev] [Bug 52140] Ubuntu Unity - Launcher and switcher icons disappeared

2012-08-15 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=52140 --- Comment #19 from Vasco Alves 2012-08-15 22:10:01 UTC --- I can confirm this is fixed on Intel hardware (HD Graphics 3000). -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email --- You are receiving this mail becau

Re: [Mesa-dev] [PATCH 1/3] radeonsi: Fix a few more state BO leaks.

2012-08-15 Thread Alex Deucher
On Wed, Aug 15, 2012 at 12:37 PM, Michel Dänzer wrote: > From: Michel Dänzer > > Signed-off-by: Michel Dänzer For the series: Reviewed-by: Alex Deucher > --- > src/gallium/drivers/radeonsi/si_state.c |2 ++ > src/gallium/drivers/radeonsi/si_state_draw.c |2 ++ > 2 files changed

Re: [Mesa-dev] [PATCH 0/7] gallium/radeon: Misc GPU virtual address space fixes.

2012-08-15 Thread Alex Deucher
On Wed, Aug 15, 2012 at 11:40 AM, Michel Dänzer wrote: > I found some of these problems a while ago inspired by > https://bugs.freedesktop.org/show_bug.cgi?id=45018 . Found some more recently, > now it seems to be working much better with the radeonsi driver. > > [PATCH 1/7] gallium/radeon: Make v

Re: [Mesa-dev] [PATCH] mesa: do more teximage error checking for generic compressed formats

2012-08-15 Thread Anuj Phogat
On Tue, May 1, 2012 at 2:07 PM, Brian Paul wrote: > When glTexImage or glCopyTexImage is called with internalFormat being a > generic compressed format (like GL_COMPRESSED_RGB) we need to do the same > error checks as for specific compressed formats. In particular, check if > the texture target

[Mesa-dev] [PATCH 2/2] r600g: make F2U trans-only on r600-r700

2012-08-15 Thread Marek Olšák
--- src/gallium/drivers/r600/r600_shader.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c index ccfb230..94cb8dc 100644 --- a/src/gallium/drivers/r600/r600_shader.c +++ b/src/gallium/drivers/r6

[Mesa-dev] [PATCH 1/2] r600g: set CB_COLOR_INFO to INVALID for disabled colorbuffers on r600-r700

2012-08-15 Thread Marek Olšák
--- src/gallium/drivers/r600/r600_state.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/drivers/r600/r600_state.c b/src/gallium/drivers/r600/r600_state.c index d2ef68e..e024907 100644 --- a/src/gallium/drivers/r600/r600_state.c +++ b/src/gallium/drivers/r600/r600_state.c @

[Mesa-dev] [PATCH 3/3] radeonsi: Fix memory leaks if returning early from some state functions.

2012-08-15 Thread Michel Dänzer
From: Michel Dänzer Signed-off-by: Michel Dänzer --- src/gallium/drivers/radeonsi/r600_hw_context.c |3 ++- src/gallium/drivers/radeonsi/si_state.c| 23 --- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/src/gallium/drivers/radeonsi/r600_hw_co

[Mesa-dev] [PATCH 1/3] radeonsi: Fix a few more state BO leaks.

2012-08-15 Thread Michel Dänzer
From: Michel Dänzer Signed-off-by: Michel Dänzer --- src/gallium/drivers/radeonsi/si_state.c |2 ++ src/gallium/drivers/radeonsi/si_state_draw.c |2 ++ 2 files changed, 4 insertions(+) diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c

[Mesa-dev] [PATCH 2/3] radeonsi: Fix LLVM context leak.

2012-08-15 Thread Michel Dänzer
From: Michel Dänzer Signed-off-by: Michel Dänzer --- src/gallium/drivers/radeonsi/radeonsi_shader.c |1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/radeonsi/radeonsi_shader.c b/src/gallium/drivers/radeonsi/radeonsi_shader.c index ae8c9a9..8e3e9ae 100644 --- a/src/gal

Re: [Mesa-dev] [PATCH] Remove 3D registers from compute command stream

2012-08-15 Thread Matt Harvey
Hey, I'd be interested in testing this to make sure it works, but I have a HD4200 running r600g, and I don't think that card has opencl support at the moment. Do you know if that would still be useful for testing, and what I would use for testing? Also, I was having trouble getting the proper libra

[Mesa-dev] [PATCH] wayland-drm: close fd after the display is uninitialized

2012-08-15 Thread Philipp Brüschweiler
This fixes a "kernel rejected pushbuf: Bad file descriptor" error on wl_drm display destruction. --- src/gallium/state_trackers/egl/wayland/native_drm.c | 5 +++-- 1 Datei geändert, 3 Zeilen hinzugefügt(+), 2 Zeilen entfernt(-) diff --git a/src/gallium/state_trackers/egl/wayland/native_drm.c b/s

[Mesa-dev] [PATCH 7/7] gallium/radeon: Don't assign virtual address space for BO that already has one.

2012-08-15 Thread Michel Dänzer
From: Michel Dänzer We'd end up re-using the old one and throwing away the new one anyway, but only after a roundtrip to the kernel. Signed-off-by: Michel Dänzer --- src/gallium/winsys/radeon/drm/radeon_drm_bo.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium

[Mesa-dev] [PATCH 6/7] gallium/radeon: Create hole for waste when allocating from va_offset.

2012-08-15 Thread Michel Dänzer
From: Michel Dänzer Otherwise, the wasted area could never be used for an allocation again. Signed-off-by: Michel Dänzer --- src/gallium/winsys/radeon/drm/radeon_drm_bo.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c b/src/gallium/w

[Mesa-dev] [PATCH 5/7] gallium/radeon: Fix potential address space loss in radeon_bomgr_force_va().

2012-08-15 Thread Michel Dänzer
From: Michel Dänzer Signed-off-by: Michel Dänzer --- src/gallium/winsys/radeon/drm/radeon_drm_bo.c | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c b/src/gallium/winsys/radeon/drm/radeon_drm_bo.c index 998d

[Mesa-dev] [PATCH 4/7] gallium/radeon: Delete uppermost virtual address space hole if it's at the top.

2012-08-15 Thread Michel Dänzer
From: Michel Dänzer Signed-off-by: Michel Dänzer --- src/gallium/winsys/radeon/drm/radeon_drm_bo.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c b/src/gallium/winsys/radeon/drm/radeon_drm_bo.c index 43fa7b2..99

[Mesa-dev] [PATCH 3/7] gallium/radeon: Fix losing holes when allocating virtual address space.

2012-08-15 Thread Michel Dänzer
From: Michel Dänzer If a hole exactly matches the allocated size plus alignment, we would fail to preserve the alignment as a hole. This would result in never being able to use the alignment area for an allocation again. Signed-off-by: Michel Dänzer --- src/gallium/winsys/radeon/drm/radeon_drm

[Mesa-dev] [PATCH 0/7] gallium/radeon: Misc GPU virtual address space fixes.

2012-08-15 Thread Michel Dänzer
I found some of these problems a while ago inspired by https://bugs.freedesktop.org/show_bug.cgi?id=45018 . Found some more recently, now it seems to be working much better with the radeonsi driver. [PATCH 1/7] gallium/radeon: Make va_offset 64 bits wide. [PATCH 2/7] gallium/radeon: Merge holes wh

[Mesa-dev] [PATCH 1/7] gallium/radeon: Make va_offset 64 bits wide.

2012-08-15 Thread Michel Dänzer
From: Michel Dänzer Otherwise we'd wrap around after 32 bits. The kernel currently limits GPU virtual address space to 4GB anyway, but that will probably change sooner or later, and this would result in confusing error messages when running out of virtual address space even now. Signed-off-by: M

[Mesa-dev] [PATCH 2/7] gallium/radeon: Merge holes when freeing virtual address space.

2012-08-15 Thread Michel Dänzer
From: Michel Dänzer Otherwise we'll likely end up with an ever increasing amount of ever smaller holes. Requires keeping the list ordered wrt offsets. Signed-off-by: Michel Dänzer --- src/gallium/winsys/radeon/drm/radeon_drm_bo.c | 43 + 1 file changed, 36 insertions

Re: [Mesa-dev] (no subject)

2012-08-15 Thread Alex Deucher
On Tue, Aug 14, 2012 at 8:45 PM, Maxim Levitsky wrote: > > Hi, I have this backported patch here for more that an year, and forgot all > about it. > It just makes gallium drivers use driver name instread of 'dri' in driconf > parser, thus making it compatable with 'driconf' GUI. Sounds reasonabl

Re: [Mesa-dev] [PATCH] r600g-llvm: Crude fix for a race in initialization of the llvm backend

2012-08-15 Thread Tom Stellard
cc'ing the list this time. On Wed, Aug 15, 2012 at 07:51:46AM +0200, Mathias Fröhlich wrote: > > Hi, > > This change adds application global locking around compiling an r600 llvm > shader. This fixes a race condition/crash that I observe when shaders are > concurrently compiled from different

[Mesa-dev] [PATCH 6/6] egl_dri2: Avoid using createSubImage when not neccassery

2012-08-15 Thread Jakob Bornecrantz
Makes it possible to run Wayland on Gallium drivers. Signed-off-by: Jakob Bornecrantz --- src/egl/drivers/dri2/egl_dri2.c | 22 -- src/gbm/backends/dri/gbm_dri.c | 10 ++ 2 files changed, 22 insertions(+), 10 deletions(-) diff --git a/src/egl/drivers/dri2/egl_dr

[Mesa-dev] [PATCH 5/6] dri: Remove image write function

2012-08-15 Thread Jakob Bornecrantz
Since its not used by anything anymore and no release has gone out where it was being used. Signed-off-by: Jakob Bornecrantz --- include/GL/internal/dri_interface.h| 10 +- src/gbm/backends/dri/gbm_dri.c |2 -- src/mesa/drivers/dri/intel/intel_regions.h |1 -

[Mesa-dev] [PATCH 4/6] gbm: Use libkms to replace DRI cursor images

2012-08-15 Thread Jakob Bornecrantz
Uses libkms instead of dri image cursor. Since this is the only user of the DRI cursor and write interface we can remove cursor surfaces entirely from the DRI interface and as a consequence also from the Gallium interface as well. Tho to make everybody happy with this it would probably should add a

[Mesa-dev] [PATCH 3/6] gbm: Add shared usage on images created

2012-08-15 Thread Jakob Bornecrantz
Signed-off-by: Jakob Bornecrantz --- src/gbm/backends/dri/gbm_dri.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gbm/backends/dri/gbm_dri.c b/src/gbm/backends/dri/gbm_dri.c index f09f6ef..5c332d4 100644 --- a/src/gbm/backends/dri/gbm_dri.c +++ b/src/gbm/backends/dri/gbm_dri.c @@

[Mesa-dev] [PATCH 2/6] st/dri: Add shared usage on buffers created

2012-08-15 Thread Jakob Bornecrantz
Signed-off-by: Jakob Bornecrantz --- src/gallium/state_trackers/dri/drm/dri2.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/state_trackers/dri/drm/dri2.c b/src/gallium/state_trackers/dri/drm/dri2.c index d5a98a2..1ea62be 100644 --- a/src/gallium/state_trackers/dri/drm/dr

[Mesa-dev] [PATCH 1/6] st/dri: Support width and height getters

2012-08-15 Thread Jakob Bornecrantz
Signed-off-by: Jakob Bornecrantz --- src/gallium/state_trackers/dri/drm/dri2.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/src/gallium/state_trackers/dri/drm/dri2.c b/src/gallium/state_trackers/dri/drm/dri2.c index d0be710..d5a98a2 100644 --- a/src/gallium/state_trackers/dri/drm

Re: [Mesa-dev] [PATCH] gallium/st: Use driver name to access driconf

2012-08-15 Thread Maxim Levitsky
On Wed, 2012-08-15 at 11:32 +0200, Michel Dänzer wrote: > On Mit, 2012-08-15 at 12:29 +0300, Maxim Levitsky wrote: > > On Wed, 2012-08-15 at 10:48 +0200, Michel Dänzer wrote: > > > On Mit, 2012-08-15 at 03:45 +0300, Maxim Levitsky wrote: > > > > This fixes fetching driconf options from the gall

Re: [Mesa-dev] [PATCH] gallium/st: Use driver name to access driconf

2012-08-15 Thread Michel Dänzer
On Mit, 2012-08-15 at 12:29 +0300, Maxim Levitsky wrote: > On Wed, 2012-08-15 at 10:48 +0200, Michel Dänzer wrote: > > On Mit, 2012-08-15 at 03:45 +0300, Maxim Levitsky wrote: > > > This fixes fetching driconf options from the gallium drivers. > > > > > > Patch written by, Carl-Philip Haensch >

Re: [Mesa-dev] [PATCH] gallium/st: Use driver name to access driconf

2012-08-15 Thread Maxim Levitsky
On Wed, 2012-08-15 at 10:48 +0200, Michel Dänzer wrote: > On Mit, 2012-08-15 at 03:45 +0300, Maxim Levitsky wrote: > > This fixes fetching driconf options from the gallium drivers. > > > > Patch written by, Carl-Philip Haensch > > (http://lists.freedesktop.org/archives/mesa-dev/2011-May/007743.h

Re: [Mesa-dev] [PATCH 1/3] build: Require X11 pkg-config files

2012-08-15 Thread Andreas Boll
2012/8/14 Matt Turner : > Cc: Jeremy Huddleston > --- > Jeremy, does OS X ship the pkg-config files? > > configure.ac | 85 > +++--- > 1 files changed, 16 insertions(+), 69 deletions(-) > > diff --git a/configure.ac b/configure.ac > index 2ec

[Mesa-dev] [Bug 53513] src/gallium/state_trackers/egl/common/egl_g3d_api.c:56:18: error: ‘_EGLContext’ has no member named ‘ClientVersion’

2012-08-15 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=53513 Michel Dänzer changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Mesa-dev] [Bug 53513] src/gallium/state_trackers/egl/common/egl_g3d_api.c:56:18: error: ‘_EGLContext’ has no member named ‘ClientVersion’

2012-08-15 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=53513 --- Comment #1 from Andreas Boll 2012-08-15 08:50:39 UTC --- Created attachment 65593 --> https://bugs.freedesktop.org/attachment.cgi?id=65593 proposed patch Could you test the attached patch. I can't test it myself right now. -- Configure

Re: [Mesa-dev] [PATCH] gallium/st: Use driver name to access driconf

2012-08-15 Thread Michel Dänzer
On Mit, 2012-08-15 at 03:45 +0300, Maxim Levitsky wrote: > This fixes fetching driconf options from the gallium drivers. > > Patch written by, Carl-Philip Haensch > (http://lists.freedesktop.org/archives/mesa-dev/2011-May/007743.html) This should be reflected in the Git authorship directly. >

Re: [Mesa-dev] [QUESTION] If shared dricode/glapi is enabled by default, why it isn't used by gallium

2012-08-15 Thread Michel Dänzer
On Mit, 2012-08-15 at 04:51 +0300, Maxim Levitsky wrote: > I noticed that recently in addition to nouveau_dri.so, I also get > installed libdricore.so and libglsl.so. I assume you mean libglapi.so instead of libglsl.so, the latter is no longer built as a separate shared object. > But two later f

[Mesa-dev] [PATCH] r600g-llvm: Crude fix for a race in initialization of the llvm backend

2012-08-15 Thread Mathias Fröhlich
Hi, This change adds application global locking around compiling an r600 llvm shader. This fixes a race condition/crash that I observe when shaders are concurrently compiled from different contexts in different threads. The fix is crude as it just guards the whole compile with a global mutex, b