[Mesa-dev] [Bug 55998] Pretty huge slowdown in mesa 9.0

2012-10-27 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=55998 runetmem...@gmail.com changed: What|Removed |Added CC||runetmem...@gmail.com -- You are

Re: [Mesa-dev] [PATCH] xlib: Do not undefine _R, _G, and _B.

2012-10-27 Thread Vinson Lee
On Sat, Oct 27, 2012 at 7:15 PM, Kenneth Graunke wrote: > On 10/27/2012 01:01 PM, Vinson Lee wrote: >> >> Fixes build error on Cygwin and Solaris. _R, _G, and _B are used in >> ctype.h on those platforms. >> >> Signed-off-by: Vinson Lee >> --- >> src/mesa/drivers/x11/xfonts.c |3 --- >> 1

Re: [Mesa-dev] R600 tiling halves the frame rate

2012-10-27 Thread Matt Turner
On Sat, Oct 27, 2012 at 4:51 PM, Tzvetan Mikov wrote: > On 10/26/2012 08:45 PM, Jerome Glisse wrote: >>> This is interesting. All I am doing is rotating a big texture on the >>> screen. I am using EGL+Gallium, so it is as simple as it gets. >>> >>> The hack I am using to disable texture tiling is

Re: [Mesa-dev] [PATCH] xlib: Do not undefine _R, _G, and _B.

2012-10-27 Thread Kenneth Graunke
On 10/27/2012 01:01 PM, Vinson Lee wrote: Fixes build error on Cygwin and Solaris. _R, _G, and _B are used in ctype.h on those platforms. Signed-off-by: Vinson Lee --- src/mesa/drivers/x11/xfonts.c |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/src/mesa/drivers/x1

Re: [Mesa-dev] R600 tiling halves the frame rate

2012-10-27 Thread Tzvetan Mikov
On 10/27/2012 06:58 AM, Marek Olšák wrote: > If you upload the texture every frame, set pipe_resource::usage to > PIPE_USAGE_STAGING. That will make the texture linear. > > Marek No, I am not uploading it for every frame. It is a static texture. I am getting only 35 FPS on a HD6460, which is path

Re: [Mesa-dev] R600 tiling halves the frame rate

2012-10-27 Thread Tzvetan Mikov
On 10/26/2012 08:45 PM, Jerome Glisse wrote: >> This is interesting. All I am doing is rotating a big texture on the >> screen. I am using EGL+Gallium, so it is as simple as it gets. >> >> The hack I am using to disable texture tiling is also extremely simple >> (see below). It speeds up the FPS me

[Mesa-dev] [PATCH] wayland: Destroy frame callback when destroying surface

2012-10-27 Thread Jonas Ådahl
If a frame callback is not destroyed when destroying a surface, its handler function will be invoked if the surface was destroyed after the callback was requested but before it was invoked, causing a write on free:ed memory. This can happen if eglDestroySurface() is called shortly after eglSwapBuf

Re: [Mesa-dev] [PATCH] r600g: avoid shader needing too many gpr to lockup the gpu

2012-10-27 Thread Alex Deucher
On Fri, Oct 26, 2012 at 10:01 PM, wrote: > From: Jerome Glisse > > On r6xx/r7xx shader resource management need to make sure that the > shader does not goes over the gpr register limit. Each specific > asic has a maxmimum register that can be split btw shader stage. > For each stage the shader m

[Mesa-dev] [PATCH] scons: Add -fno-rtti to CXXFLAGS with llvm-3.2.

2012-10-27 Thread Vinson Lee
llvm-3.2svn r166772 no longer requires RTTI for lib/Support. Signed-off-by: Vinson Lee --- scons/llvm.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scons/llvm.py b/scons/llvm.py index f87766a..e1ed760 100644 --- a/scons/llvm.py +++ b/scons/llvm.py @@ -183,6 +183,9 @@ def generate(env

[Mesa-dev] [PATCH] xlib: Do not undefine _R, _G, and _B.

2012-10-27 Thread Vinson Lee
Fixes build error on Cygwin and Solaris. _R, _G, and _B are used in ctype.h on those platforms. Signed-off-by: Vinson Lee --- src/mesa/drivers/x11/xfonts.c |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/src/mesa/drivers/x11/xfonts.c b/src/mesa/drivers/x11/xfonts.c ind

Re: [Mesa-dev] [PATCH 3/7] r600g: fix evergreen 8x MSAA sample positions

2012-10-27 Thread Marek Olšák
On Tue, Aug 28, 2012 at 2:18 AM, Paul Berry wrote: > On 26 August 2012 18:04, Marek Olšák wrote: >> >> On Thu, Aug 23, 2012 at 11:39 PM, Paul Berry >> wrote: >> > On 23 August 2012 10:42, Marek Olšák wrote: >> >> >> >> On Thu, Aug 23, 2012 at 6:42 PM, Paul Berry >> >> wrote: >> >> > On 22 Augu

[Mesa-dev] [PATCH] r600g: tgsi-to-llvm emits right input intrinsics

2012-10-27 Thread Vincent Lejeune
--- src/gallium/drivers/r600/r600_llvm.c | 62 +++--- src/gallium/drivers/r600/r600_shader.c | 22 2 files changed, 64 insertions(+), 20 deletions(-) diff --git a/src/gallium/drivers/r600/r600_llvm.c b/src/gallium/drivers/r600/r600_llvm.c index 321966e.

Re: [Mesa-dev] [PATCH] glsl: Make access to type flyweight global state thread safe

2012-10-27 Thread Kenneth Graunke
On 10/25/2012 11:17 AM, Eric Anholt wrote: Ian Romanick writes: From: Ian Romanick This should fix some problems related to compiling shaders in different contextes from multiple threads. This is pretty nasty. I think de-rallocing this file might end up nicer (we'd need a destructor that

[Mesa-dev] [Bug 55788] mesa fails to build against git version of xserver

2012-10-27 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=55788 Marvin Schmidt changed: What|Removed |Added Attachment #69161|0 |1 is obsolete|

[Mesa-dev] [Bug 55788] mesa fails to build against git version of xserver

2012-10-27 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=55788 --- Comment #3 from Marvin Schmidt --- Created attachment 69161 --> https://bugs.freedesktop.org/attachment.cgi?id=69161&action=edit remove miInitializeBackingStore call The fix has to be made in mesa, as the mentioned commit in xserver explai

[Mesa-dev] [PATCH] gallium/auxiliary: Fix build with newer LLVM.

2012-10-27 Thread Johannes Obermayr
rtti was removed from more llvm libraries. Thanks to d0k for the hint via IRC #llvm on irc.oftc.net --- src/gallium/auxiliary/Makefile |4 1 Datei geändert, 4 Zeilen hinzugefügt(+) diff --git a/src/gallium/auxiliary/Makefile b/src/gallium/auxiliary/Makefile index 3ba3f9c..690b7f5 100644

[Mesa-dev] [PATCH] mesa: remove array size so the static assert can work

2012-10-27 Thread Brian Paul
With the explit NUM_TEXTURE_TARGETS array size, the assertion that Elements(targets) == NUM_TEXTURE_TARGETS would pass even if elements were missing. --- src/mesa/main/shared.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/mesa/main/shared.c b/src/mesa/main/shared.c

[Mesa-dev] [PATCH 8/8] mesa: use GLuint for more gl_constants fields

2012-10-27 Thread Brian Paul
To silence assorted MSVC warnings. --- src/mesa/main/mtypes.h | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index c3378cd..7f2adc7 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -2763,12 +276

[Mesa-dev] [PATCH 7/8] vbo: silence MSVC double/float conversion warnings

2012-10-27 Thread Brian Paul
--- src/mesa/vbo/vbo_attrib_tmp.h |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/vbo/vbo_attrib_tmp.h b/src/mesa/vbo/vbo_attrib_tmp.h index d3fc77e..ece9394 100644 --- a/src/mesa/vbo/vbo_attrib_tmp.h +++ b/src/mesa/vbo/vbo_attrib_tmp.h @@ -61,12 +61,12 @@ USE

[Mesa-dev] [PATCH 6/8] mesa: silence some MSVC conversion warnings in get.c

2012-10-27 Thread Brian Paul
--- src/mesa/main/get.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c index e38d594..805f0f9 100644 --- a/src/mesa/main/get.c +++ b/src/mesa/main/get.c @@ -1149,7 +1149,7 @@ _mesa_GetFloatv(GLenum pname, GLfloat *params)

[Mesa-dev] [PATCH 5/8] mesa: silence MSVC signed/unsigned comparision warnings in hash_table.c

2012-10-27 Thread Brian Paul
--- src/mesa/program/hash_table.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/mesa/program/hash_table.c b/src/mesa/program/hash_table.c index 7dabadc..f45ed46 100644 --- a/src/mesa/program/hash_table.c +++ b/src/mesa/program/hash_table.c @@ -193,7 +193,7 @@ hash_t

[Mesa-dev] [PATCH 4/8] mesa: silence MSVC signed/unsigned comparision warnings in transformfeedback.c

2012-10-27 Thread Brian Paul
--- src/mesa/main/transformfeedback.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mesa/main/transformfeedback.c b/src/mesa/main/transformfeedback.c index 0669b3a..1afc0dc 100644 --- a/src/mesa/main/transformfeedback.c +++ b/src/mesa/main/transformfeedback.c @

[Mesa-dev] [PATCH 3/8] mesa: silence MSVC signed/unsigned comparision warnings in accum.c

2012-10-27 Thread Brian Paul
--- src/mesa/main/accum.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/main/accum.c b/src/mesa/main/accum.c index 8b71640..e2d7726 100644 --- a/src/mesa/main/accum.c +++ b/src/mesa/main/accum.c @@ -205,7 +205,7 @@ accum_scale_or_bias(struct gl_context *ctx,

[Mesa-dev] [PATCH 2/8] mesa: silence MSVC signed/unsigned comparison warning in texstorage.c

2012-10-27 Thread Brian Paul
--- src/mesa/main/texstorage.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/mesa/main/texstorage.c b/src/mesa/main/texstorage.c index ca02ef3..283aefa 100644 --- a/src/mesa/main/texstorage.c +++ b/src/mesa/main/texstorage.c @@ -284,7 +284,7 @@ tex_storage_error_che

[Mesa-dev] [PATCH 1/8] mesa: silence MSVC double/float assignment warnings in pixel unpack code

2012-10-27 Thread Brian Paul
--- src/mesa/main/format_unpack.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mesa/main/format_unpack.c b/src/mesa/main/format_unpack.c index 7b46dfc..04fd1d6 100644 --- a/src/mesa/main/format_unpack.c +++ b/src/mesa/main/format_unpack.c @@ -633,7 +633,7 @@

[Mesa-dev] [PATCH] r600g: use better sample positions for 8x MSAA

2012-10-27 Thread Marek Olšák
Taken from the intel driver. The sample positions are actually a solution to the 8 queens puzzle. It gives more accurate and smoother AA. --- src/gallium/drivers/r600/evergreen_state.c | 18 +- src/gallium/drivers/r600/r600_state.c |6 +++--- 2 files changed, 12 inserti

Re: [Mesa-dev] [PATCH] r600g: avoid shader needing too many gpr to lockup the gpu

2012-10-27 Thread Marek Olšák
FWIW, instead of putting the discard_draw flag in r600_context, it would be cleaner to have r600_adjust_gprs return false if drawing should be skipped, then r600_update_derived_state would return false and draw_vbo would skip rendering. That way you wouldn't have to add any comments in draw_vbo, be

Re: [Mesa-dev] R600 tiling halves the frame rate

2012-10-27 Thread Marek Olšák
If you upload the texture every frame, set pipe_resource::usage to PIPE_USAGE_STAGING. That will make the texture linear. Marek On Sat, Oct 27, 2012 at 4:26 AM, Tzvetan Mikov wrote: >> -Original Message- >> From: Jerome Glisse > >> > Can anyone shed some light on this? Is this by design

[Mesa-dev] [PATCH] i965: Add "alpha to coverage" to performance debug recompile messages.

2012-10-27 Thread Kenneth Graunke
This was missing and got labeled "Something else". Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_wm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/drivers/dri/i965/brw_wm.c b/src/mesa/drivers/dri/i965/brw_wm.c index bfb36db..ad4059c 100644 --- a/src/mesa/drive