[Mesa-dev] [ANNOUNCE] New mailing list for VDPAU discussion

2012-02-21 Thread Aaron Plattner
For those interested in VDPAU, I've created a new mailing list, vd...@lists.freedesktop.org. http://lists.freedesktop.org/mailman/listinfo/vdpau -- Aaron ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/lis

Re: [Mesa-dev] [PATCH 1/3] st/mesa: do vertex and fragment color clamping in shaders

2012-02-21 Thread Jose Fonseca
Draw module (aaline, aapoint, and pstipple stages) will also be broken with PIPE_SHADER_CAP_OUTPUT_READ=1. llvmpipe too, has analysis which rely on outputs not being read. Nothing of the above matters to r600, of course. Nevertheless, I can't help thinking that PIPE_SHADER_CAP_OUTPUT_READ is a

[Mesa-dev] [Bug 46376] display window will be black when run mesa demo gloss

2012-02-21 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=46376 --- Comment #1 from libo 2012-02-21 19:20:05 UTC --- The bug also exists when run the case with LIBGL_ALWAYS_SOFTWARE=1. Some mesa xdemos and EGL cases such as opengles2/es2_info also has this bug. -- Configure bugmail: https://bugs.freedeskt

[Mesa-dev] [PATCH 12/12] r600g: rework queries

2012-02-21 Thread Marek Olšák
We always mapped the query buffer in begin_query, causing stalls if the buffer was busy. This commit reworks it such that the query buffer is only mapped in get_query_result as it's supposed to be. The query buffer is no longer treated as a ring buffer. Instead, the results are just appended and

[Mesa-dev] [PATCH 11/12] r600g: cleanup magic numbers in set_xx_sampler

2012-02-21 Thread Marek Olšák
--- src/gallium/drivers/r600/evergreen_hw_context.c |4 ++-- src/gallium/drivers/r600/r600_hw_context.c |8 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/gallium/drivers/r600/evergreen_hw_context.c b/src/gallium/drivers/r600/evergreen_hw_context.c index

[Mesa-dev] [PATCH 10/12] r600g: remove duplicated evergreen_context_ps_partial_flush

2012-02-21 Thread Marek Olšák
--- src/gallium/drivers/r600/evergreen_hw_context.c | 15 +-- src/gallium/drivers/r600/r600_hw_context.c |2 +- src/gallium/drivers/r600/r600_hw_context_priv.h |1 + 3 files changed, 3 insertions(+), 15 deletions(-) diff --git a/src/gallium/drivers/r600/evergreen_hw_con

[Mesa-dev] [PATCH 09/12] r600g: remove duplicated evergreen_context_pipe_state_set_sampler

2012-02-21 Thread Marek Olšák
--- src/gallium/drivers/r600/evergreen_hw_context.c | 31 +- src/gallium/drivers/r600/r600_hw_context.c |4 +- src/gallium/drivers/r600/r600_hw_context_priv.h |1 + 3 files changed, 5 insertions(+), 31 deletions(-) diff --git a/src/gallium/drivers/r600/evergreen

[Mesa-dev] [PATCH 08/12] r600g: remove duplicated set_xx_resource functions

2012-02-21 Thread Marek Olšák
--- src/gallium/drivers/r600/evergreen_hw_context.c | 21 - src/gallium/drivers/r600/evergreen_state.c | 16 src/gallium/drivers/r600/r600.h |3 --- src/gallium/drivers/r600/r600_state_common.c| 21 + 4 fil

[Mesa-dev] [PATCH 07/12] r600g: remove duplicated function r600_state_sampler_init

2012-02-21 Thread Marek Olšák
--- src/gallium/drivers/r600/evergreen_hw_context.c | 16 src/gallium/drivers/r600/r600_hw_context.c |4 ++-- src/gallium/drivers/r600/r600_hw_context_priv.h |1 + 3 files changed, 3 insertions(+), 18 deletions(-) diff --git a/src/gallium/drivers/r600/evergreen_hw_

[Mesa-dev] [PATCH 06/12] r600g: fixup name of evergreen-specific function

2012-02-21 Thread Marek Olšák
--- src/gallium/drivers/r600/evergreen_hw_context.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/gallium/drivers/r600/evergreen_hw_context.c b/src/gallium/drivers/r600/evergreen_hw_context.c index 75fca22..a58570e 100644 --- a/src/gallium/drivers/r600/ever

[Mesa-dev] [PATCH 05/12] r600g: simplify fail paths in create_context

2012-02-21 Thread Marek Olšák
--- src/gallium/drivers/r600/r600_pipe.c | 37 + 1 files changed, 15 insertions(+), 22 deletions(-) diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c index b2b79cd..53f9bd6 100644 --- a/src/gallium/drivers/r600/r600_pipe.c

[Mesa-dev] [PATCH 04/12] gallium/u_slab: fix possible crash in util_slab_destroy

2012-02-21 Thread Marek Olšák
It may happen if util_slab_create has not been called. --- src/gallium/auxiliary/util/u_slab.c |8 +--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/gallium/auxiliary/util/u_slab.c b/src/gallium/auxiliary/util/u_slab.c index 21bf2d7..f9f5ef6 100644 --- a/src/gallium/

[Mesa-dev] [PATCH 03/12] r600g: fix possible crashes in destroy_context when failing in create_context

2012-02-21 Thread Marek Olšák
--- src/gallium/drivers/r600/r600_hw_context.c | 36 --- src/gallium/drivers/r600/r600_pipe.c | 27 +--- 2 files changed, 38 insertions(+), 25 deletions(-) diff --git a/src/gallium/drivers/r600/r600_hw_context.c b/src/gallium/drivers/r600/r600_hw

[Mesa-dev] [PATCH 02/12] r600g: consolidate common context init code

2012-02-21 Thread Marek Olšák
--- src/gallium/drivers/r600/evergreen_hw_context.c | 16 src/gallium/drivers/r600/r600_hw_context.c | 18 -- src/gallium/drivers/r600/r600_pipe.c| 16 3 files changed, 16 insertions(+), 34 deletions(-) diff --git a/src/gall

[Mesa-dev] [PATCH 01/12] r600g: define GROUP_FORCE_NEW_BLOCK in common header

2012-02-21 Thread Marek Olšák
--- src/gallium/drivers/r600/evergreen_hw_context.c |2 -- src/gallium/drivers/r600/r600_hw_context.c |2 -- src/gallium/drivers/r600/r600_hw_context_priv.h |2 ++ 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/gallium/drivers/r600/evergreen_hw_context.c b/src

[Mesa-dev] [PATCH 00/12] R600g: cleanups and rework of queries

2012-02-21 Thread Marek Olšák
Hi everyone, Besides the cleanups, there are fixes for create_context fail paths and rework of queries. The rework is the most important, because it eliminates buffer_map calls (and therefore buffer_wait) in begin_query. There are no piglit regressions on Evergreen. Please review. Marek Olšák

[Mesa-dev] [PATCH 2/2] glcpp: Don't strlen() the output for every token being printed.

2012-02-21 Thread Kenneth Graunke
The ralloc string appending functions were originally intended for simple, non-hot-path uses like printing to an info log. Cuts Unigine Tropics load time by around 20% (6 seconds). Signed-off-by: Kenneth Graunke --- src/glsl/glcpp/glcpp-parse.y | 48 ++---

[Mesa-dev] [PATCH 1/2] ralloc: Make rewrite_tail increase "start" by the new text's length.

2012-02-21 Thread Kenneth Graunke
Both callers of rewrite_tail immediately compute the new total string length by adding the (known) length of the existing string plus the length of the newly appended text. Unfortunately, callers generally won't know the length of the new text, as it's printf-formatted. Since ralloc already compu

Re: [Mesa-dev] [PATCH 1/3] st/mesa: do vertex and fragment color clamping in shaders

2012-02-21 Thread Tilman Sauerbeck
Marek Olšák [2012-02-21 21:36]: > Hi Tilman, > > Thanks for the info. I didn't consider outputs to be readable, sorry. > A quick fix would be to move the outputs to temps. There is a GLSL pass > for that and it can be enabled by reporting > PIPE_SHADER_CAP_OUTPUT_READ --> 0 in r600_pipe.c. Can you

[Mesa-dev] [PATCH] gbm: track buffer format through DRI drivers

2012-02-21 Thread Jesse Barnes
GBM needs the buffer format in order to communicate with DRM and clients for things like scanout. So track the DRI format requested in the various back ends and use it to return the DRI format back to GBM when requested. GBM will then map this into the GBM surface type (which is in turn based on

[Mesa-dev] [Bug 40059] [SNB] hang in "Amnesia: The Dark Descent" demo

2012-02-21 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=40059 Kenneth Graunke changed: What|Removed |Added Version|git |8.0 --- Comment #5 from Kenneth Graunk

Re: [Mesa-dev] [PATCH 1/3] st/mesa: do vertex and fragment color clamping in shaders

2012-02-21 Thread Marek Olšák
Hi Tilman, Thanks for the info. I didn't consider outputs to be readable, sorry. A quick fix would be to move the outputs to temps. There is a GLSL pass for that and it can be enabled by reporting PIPE_SHADER_CAP_OUTPUT_READ --> 0 in r600_pipe.c. Can you try that and see if it helps? To Vadim: No

Re: [Mesa-dev] [PATCH 1/3] st/mesa: do vertex and fragment color clamping in shaders

2012-02-21 Thread Tilman Sauerbeck
Tilman Sauerbeck [2012-02-12 11:31]: > Marek Olšák [2012-01-23 13:32]: > > For ARB_color_buffer_float. Most hardware can't do it and st/mesa is > > the perfect place for a fallback. > > This breaks lighting in Heroes of Newerth on my rv730: > http://files.code-monkey.de/frag_color_clamp_bad.png

[Mesa-dev] [Bug 40059] [SNB] hang in "Amnesia: The Dark Descent" demo

2012-02-21 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=40059 Kenneth Graunke changed: What|Removed |Added Status|NEW |ASSIGNED AssignedTo|i...@freed

Re: [Mesa-dev] [PATCH 2/2] i965: handle gl_PointCoord for Gen4 and Gen5 platform

2012-02-21 Thread Eric Anholt
On Sun, 19 Feb 2012 13:31:33 +0800, Liu Aleaxander wrote: > On Sun, Feb 19, 2012 at 8:54 AM, Eric Anholt wrote: > > On Sat, 18 Feb 2012 23:07:32 +0800, Liu Aleaxander > > wrote: > >> +   /* > >> +    * gl_PointCoord is a FS instead of VS builtin variable, thus is not > >> +    * included in c->

Re: [Mesa-dev] [PATCH 1/2] i965: Make the userclip flag for the VUE map come from VS prog data.

2012-02-21 Thread Kenneth Graunke
On 02/14/2012 08:46 PM, Eric Anholt wrote: This reduces recomputation of state based on non-clipping-related transform changes, and is a step toward removing VUE map recomputation. This looks fantastic. There's really no point in doing all this computation over and over. Compile time makes f

Re: [Mesa-dev] [PATCH 2/2] i965: Move VUE map computation to once at VS compile time.

2012-02-21 Thread Kenneth Graunke
On 02/14/2012 08:46 PM, Eric Anholt wrote: With this and the previous patch, 640x480 nexuiz is running 0.169118% +/- 0.0863696% faster (n=121). On a VS state change microbenchmark, performance is increased 8.28645% +/- 0.460478% (n=52). --- To those who saw me throwing my hands in the air sayi

Re: [Mesa-dev] [PATCH] i965: Only set Last Render Target Select on the last FB write.

2012-02-21 Thread Eric Anholt
On Tue, 21 Feb 2012 10:39:11 -0800, Kenneth Graunke wrote: > Fixes GPU hangs in OilRush, which does depth buffer clears with MRT. Reviewed-by: Eric Anholt pgpmDr7oriDD7.pgp Description: PGP signature ___ mesa-dev mailing list mesa-dev@lists.freedesk

[Mesa-dev] [PATCH] i965: Only set Last Render Target Select on the last FB write.

2012-02-21 Thread Kenneth Graunke
Fixes GPU hangs in OilRush, which does depth buffer clears with MRT. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_eu_emit.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_eu_emit.c b/src/mesa/drivers/dri/i965/brw_eu_em

Re: [Mesa-dev] [PATCH 20/23] mesa: remove last of MAX_WIDTH, MAX_HEIGHT

2012-02-21 Thread Roland Scheidegger
Am 21.02.2012 16:08, schrieb Jose Fonseca: > - Original Message - >> On 02/21/2012 02:22 AM, Jose Fonseca wrote: >>> Your series is a huge step forward already. But I wonder if we >>> could go just a bit further and not add >>> MAX_VIEWPORT_WIDTH/HEIGHT and MAX_RENDERBUFFER_SIZE defines.

Re: [Mesa-dev] [PATCH] i915: fallback to swrast when gl_PointSize met

2012-02-21 Thread Liu Aleaxander
Sorry that I send the patch twice, the network connection here was terrifying bad just now. On 2/21/12, Liu Aleaxander wrote: > This patch(the way to fix this issue) is a little weird, as we already > fallbacked to swrast when handling gl_PointSize(in vertex shader). > Sounds that we didn't fallb

[Mesa-dev] [PATCH] i915: fallback to swrast when gl_PointSize met

2012-02-21 Thread Liu Aleaxander
This patch(the way to fix this issue) is a little weird, as we already fallbacked to swrast when handling gl_PointSize(in vertex shader). Sounds that we didn't fallback enough;) This patch servers as fixing the gl_PointSize issue on Pineview platform. Since the patch is a little weird, I thought a

[Mesa-dev] [PATCH] i915: fallback to swrast when gl_PointSize met

2012-02-21 Thread Liu Aleaxander
This patch(the way to fix this issue) is a little weird, as we already fallbacked to swrast when handling gl_PointSize(in vertex shader). Sounds that we didn't fallback enough;) This patch servers as fixing the gl_PointSize issue on Pineview platform. Since the patch is a little weird, I thought a

Re: [Mesa-dev] [PATCH 20/23] mesa: remove last of MAX_WIDTH, MAX_HEIGHT

2012-02-21 Thread Jose Fonseca
- Original Message - > On 02/21/2012 02:22 AM, Jose Fonseca wrote: > > Your series is a huge step forward already. But I wonder if we > > could go just a bit further and not add MAX_VIEWPORT_WIDTH/HEIGHT > > and MAX_RENDERBUFFER_SIZE defines. > > > > Would it be possible to derive these li

Re: [Mesa-dev] [PATCH 20/23] mesa: remove last of MAX_WIDTH, MAX_HEIGHT

2012-02-21 Thread Brian Paul
On 02/21/2012 02:22 AM, Jose Fonseca wrote: Your series is a huge step forward already. But I wonder if we could go just a bit further and not add MAX_VIEWPORT_WIDTH/HEIGHT and MAX_RENDERBUFFER_SIZE defines. Would it be possible to derive these limits from the maximum texture size? Either th

Re: [Mesa-dev] [PATCH 03/23] swrast: remove MAX_WIDTH arrays in s_zoom.c

2012-02-21 Thread Brian Paul
On 02/21/2012 01:30 AM, Jose Fonseca wrote: Shouldn't malloc be passed zoomedWidth instead of width? Oops, yes. I'll fix that patch. -Brian ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-

[Mesa-dev] [Bug 45292] Compilation failure on d3d1x state tracker: ‘ID3D10Include’ has not been declared

2012-02-21 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=45292 Sven Eden changed: What|Removed |Added CC||yamakuz...@gmx.net -- Configure bugmail: ht

[Mesa-dev] [Bug 45292] Compilation failure on d3d1x state tracker: ‘ID3D10Include’ has not been declared

2012-02-21 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=45292 --- Comment #5 from Sven Eden 2012-02-21 03:42:29 PST --- Created attachment 57383 --> https://bugs.freedesktop.org/attachment.cgi?id=57383 Re-insert neccessary typedef for ID3D10Include Hi! I have been able to get past this error with the at

[Mesa-dev] [PATCH 2/3] vl: rework winsys interface

2012-02-21 Thread Christian König
Throw out all the old and now unneeded stuff. Signed-off-by: Christian König --- src/gallium/state_trackers/vdpau/decode.c |2 +- src/gallium/state_trackers/vdpau/device.c | 10 +- src/gallium/state_trackers/vdpau/mixer.c |8 +- src/gallium/state_trackers/vd

Re: [Mesa-dev] [PATCH 23/23] mesa: move more swrast-related #defines out of core Mesa

2012-02-21 Thread Jose Fonseca
BTW, besides the remarks I made, the series looks great. Quite a nice cleanup. Jose - Original Message - > From: Brian Paul > > --- > src/mesa/main/config.h | 40 > > src/mesa/swrast/s_chan.h |8 > src/mesa/swrast/swrast.h |

Re: [Mesa-dev] [PATCH 20/23] mesa: remove last of MAX_WIDTH, MAX_HEIGHT

2012-02-21 Thread Jose Fonseca
Your series is a huge step forward already. But I wonder if we could go just a bit further and not add MAX_VIEWPORT_WIDTH/HEIGHT and MAX_RENDERBUFFER_SIZE defines. Would it be possible to derive these limits from the maximum texture size? Either the driver reported max texture size, or just de

[Mesa-dev] [Bug 46376] New: display window will be black when run mesa demo gloss

2012-02-21 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=46376 Bug #: 46376 Summary: display window will be black when run mesa demo gloss Classification: Unclassified Product: Mesa Version: 8.0 Platform: All OS/Version: Linux (All)

Re: [Mesa-dev] [PATCH 03/23] swrast: remove MAX_WIDTH arrays in s_zoom.c

2012-02-21 Thread Jose Fonseca
Shouldn't malloc be passed zoomedWidth instead of width? Jose - Original Message - > From: Brian Paul > > --- > src/mesa/swrast/s_zoom.c | 16 ++-- > 1 files changed, 14 insertions(+), 2 deletions(-) > > diff --git a/src/mesa/swrast/s_zoom.c b/src/mesa/swrast/s_zoom.c >