[Mesa-dev] [PATCH 7/7] i965: Rework the extra flushes surrounding occlusion queries.

2012-08-07 Thread Kenneth Graunke
Separate out the depth stall from the depth count write. Workarounds say that a depth stall needs to be preceeded with a non-zero post-sync op (in this case, the depth count write). Also, before the non-zero post-sync op, we need a CS stall, which needs a stall at scoreboard. Signed-off-by: Dani

[Mesa-dev] [PATCH 6/7] i965: Use 64-bit writes for occlusion queries.

2012-08-07 Thread Kenneth Graunke
The hardware seems to use the length of the PIPE_CONTROL command to indicate whether the write is 64-bits or 32-bits. Which makes sense for immediate writes. Daniel discovered this by writing a pattern into the query object bo and noticing that the high 32-bits were left intact, even on those pip

[Mesa-dev] [PATCH 5/7] i965: Refactor depth count write PIPE_CONTROLs into a helper function.

2012-08-07 Thread Kenneth Graunke
This consolidates the complexity in one place, which is important because it's about to get even more complicated. Signed-off-by: Kenneth Graunke Signed-off-by: Daniel Vetter --- src/mesa/drivers/dri/i965/brw_queryobj.c | 111 --- 1 file changed, 43 insertions(+), 68

[Mesa-dev] [PATCH 4/7] i965: Emit a CS stall before timestamp writes.

2012-08-07 Thread Kenneth Graunke
This implements one of the Sandybridge PIPE_CONTROL workarounds. It doesn't appear to be required for Ivybridge. Signed-off-by: Kenneth Graunke Signed-off-by: Daniel Vetter --- src/mesa/drivers/dri/i965/brw_queryobj.c | 14 ++ 1 file changed, 14 insertions(+) Unlike Daniel's serie

[Mesa-dev] [PATCH 3/7] i965: Use 64-bit writes for timestamp queries.

2012-08-07 Thread Kenneth Graunke
The hardware seems to use the length of the PIPE_CONTROL command to indicate whether the write is 64-bits or 32-bits. Which makes sense for immediate writes. Daniel discovered this by writing a pattern into the query object bo and noticing that the high 32-bits were left intact, even on those pip

[Mesa-dev] [PATCH 2/7] i965: Refactor timestamp write PIPE_CONTROLs into a helper function.

2012-08-07 Thread Kenneth Graunke
This consolidates the complexity in one place, which is important because it's about to get even more complicated. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_queryobj.c | 80 1 file changed, 30 insertions(+), 50 deletions(-) Eric wanted a h

[Mesa-dev] [PATCH 1/7] intel: Make the length for PIPE_CONTROL explicit.

2012-08-07 Thread Kenneth Graunke
PIPE_CONTROL has variable length, depending upon generation and whether we want to do 32-bit or 64-bit data writes. Make it explicit, rather than hiding a length of 4 in the #define for _3DSTATE_PIPE_CONTROL. Generated by s/3DSTATE_PIPE_CONTROL/3DSTATE_PIPE_CONTROL | (4 - 2)/g. This is equivalent

[Mesa-dev] Pipe control patches redux

2012-08-07 Thread Kenneth Graunke
Here's v3 of Daniel's PIPE_CONTROL series. I reworked it substantially, moving the length change to the beginning and splitting up the patches into smaller ones that only do one thing at a time, to make it easier to bisect or revert if there are any issues. (I'm pretty paranoid when it comes to P

Re: [Mesa-dev] R600 VDPAU 422 regression since r600g: make sure copying of all texture formats is accelerated

2012-08-07 Thread Andy Furniss
Marek Olšák wrote: Do you have any idea what could be wrong with the patch? Also could please tell me how to setup VDPAU and where to download the tests, so that I can test this. I don't know about the patch. One thing which may be a clue or a red herring is that when Christian first implemen

Re: [Mesa-dev] [PATCH] mesa: Fix glPopAttrib() behavior on GL_FRAMEBUFFER_SRGB.

2012-08-07 Thread Brian Paul
On 08/07/2012 03:05 PM, Eric Anholt wrote: I happened to notice this while looking at a blit pass in l4d2, which had an optional push/pop around framebuffer srgb setting. It didn't matter in the end, but the fix is sitting in my tree now. --- src/mesa/main/attrib.c | 13 + 1 fil

Re: [Mesa-dev] R600 VDPAU 422 regression since r600g: make sure copying of all texture formats is accelerated

2012-08-07 Thread Alex Deucher
On Tue, Aug 7, 2012 at 5:43 PM, Marek Olšák wrote: > Do you have any idea what could be wrong with the patch? Also could > please tell me how to setup VDPAU and where to download the tests, so > that I can test this. Just add: --enable-vdpau to your mesa configure line to enable it. To test it,

[Mesa-dev] [Bug 51749] make[6]: ../../../../src/mesa/Makefile.old: No such file or directory

2012-08-07 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=51749 --- Comment #1 from Matt Turner 2012-08-07 21:49:33 UTC --- Not a problem now, right? -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the b

Re: [Mesa-dev] R600 VDPAU 422 regression since r600g: make sure copying of all texture formats is accelerated

2012-08-07 Thread Marek Olšák
Do you have any idea what could be wrong with the patch? Also could please tell me how to setup VDPAU and where to download the tests, so that I can test this. Marek On Tue, Aug 7, 2012 at 11:25 AM, Andy Furniss wrote: > Marek Olšák wrote: >> >> Does the attached patch fix this issue? > > > Not

[Mesa-dev] [Bug 53226] mesa/demos does not build with mesa git because of gbm API changes

2012-08-07 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=53226 --- Comment #1 from Olivier Blin 2012-08-07 21:14:27 UTC --- Created attachment 65255 --> https://bugs.freedesktop.org/attachment.cgi?id=65255 eglkms: adapt to gbm stride API change This patch fixes build with mesa git. -- Configure bugmail

[Mesa-dev] [Bug 53226] New: mesa/demos does not build with mesa git because of gbm API changes

2012-08-07 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=53226 Bug #: 53226 Summary: mesa/demos does not build with mesa git because of gbm API changes Classification: Unclassified Product: Mesa Version: git Platform: Other

[Mesa-dev] [PATCH] mesa: Fix glPopAttrib() behavior on GL_FRAMEBUFFER_SRGB.

2012-08-07 Thread Eric Anholt
I happened to notice this while looking at a blit pass in l4d2, which had an optional push/pop around framebuffer srgb setting. It didn't matter in the end, but the fix is sitting in my tree now. --- src/mesa/main/attrib.c | 13 + 1 file changed, 13 insertions(+) diff --git a/src/m

Re: [Mesa-dev] [PATCH] glsl: Add a lowering pass to turn complicated UBO references to vector loads.

2012-08-07 Thread Kenneth Graunke
On 08/06/2012 07:00 PM, Eric Anholt wrote: > v2: Reduce the impenetrable code in emit_ubo_loads() by 23 lines by keeping > the ir_variable as the variable part of the offset from handle_rvalue(), > and track the constant offsets from that with a plain old integer value, > avoiding a bun

Re: [Mesa-dev] [PATCH 2/8] i965: Add INTEL_DEBUG=perf for failure to compile 16-wide shaders.

2012-08-07 Thread Jordan Justen
On Tue, 2012-08-07 at 11:04 -0700, Eric Anholt wrote: > diff --git a/src/mesa/drivers/dri/intel/intel_context.h > b/src/mesa/drivers/dri/intel/intel_context.h > index 6d1a81c..c4efa54 100644 > --- a/src/mesa/drivers/dri/intel/intel_context.h > +++ b/src/mesa/drivers/dri/intel/intel_context.h > @@

[Mesa-dev] [PATCH 7/8] i965: Add performance debug for when the state cache gets nuked.

2012-08-07 Thread Eric Anholt
--- src/mesa/drivers/dri/i965/brw_state_cache.c |5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_state_cache.c b/src/mesa/drivers/dri/i965/brw_state_cache.c index 4ae8e12..57a5ee9 100644 --- a/src/mesa/drivers/dri/i965/brw_state_cache.c +++

[Mesa-dev] [PATCH 8/8] i965: Add perf debug for stalls during shader compiles.

2012-08-07 Thread Eric Anholt
--- src/mesa/drivers/dri/i965/brw_fs.cpp| 13 + src/mesa/drivers/dri/i965/brw_vec4_emit.cpp | 20 ++-- src/mesa/drivers/dri/intel/intel_screen.c | 13 + src/mesa/drivers/dri/intel/intel_screen.h |1 + 4 files changed, 45 insertions(+),

[Mesa-dev] [PATCH 5/8] i965: Add performance debug for fast clear fallbacks.

2012-08-07 Thread Eric Anholt
--- src/mesa/drivers/dri/i965/brw_clear.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_clear.c b/src/mesa/drivers/dri/i965/brw_clear.c index 31c2e45..71d7c48 100644 --- a/src/mesa/drivers/dri/i965/brw_clear.c +++ b/src/mesa/drivers/

[Mesa-dev] [PATCH 6/8] i965: Add performance debug for shader recompiles.

2012-08-07 Thread Eric Anholt
--- src/mesa/drivers/dri/i965/brw_context.h |2 + src/mesa/drivers/dri/i965/brw_fs.cpp|6 ++ src/mesa/drivers/dri/i965/brw_program.h |2 + src/mesa/drivers/dri/i965/brw_vec4_emit.cpp |6 ++ src/mesa/drivers/dri/i965/brw_wm.c | 84 +

[Mesa-dev] [PATCH 4/8] intel: Add performance debug for some common GPU stalls.

2012-08-07 Thread Eric Anholt
--- src/mesa/drivers/dri/i965/brw_queryobj.c |6 ++ src/mesa/drivers/dri/intel/intel_buffer_objects.c |8 +++- src/mesa/drivers/dri/intel/intel_regions.c|6 ++ 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_quer

[Mesa-dev] [PATCH 3/8] i965: Add performance debug for register spilling.

2012-08-07 Thread Eric Anholt
--- src/mesa/drivers/dri/i965/brw_vs.c |4 src/mesa/drivers/dri/i965/brw_wm.c |4 2 files changed, 8 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_vs.c b/src/mesa/drivers/dri/i965/brw_vs.c index b1b073e..5120167 100644 --- a/src/mesa/drivers/dri/i965/brw_vs.c +++ b/s

[Mesa-dev] intel: performance debug flag.

2012-08-07 Thread Eric Anholt
One of Valve's requests was for GL_ARB_debug_output for performance traps they should know about. Unfortunately, Mesa's ARB_debug_output support is very limited at the moment, so this just gets messages in place, which we can convert to GL_ARB_debug_output at some later time.

[Mesa-dev] [PATCH 2/8] i965: Add INTEL_DEBUG=perf for failure to compile 16-wide shaders.

2012-08-07 Thread Eric Anholt
--- src/mesa/drivers/dri/i965/brw_fs.cpp |5 - src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp |3 ++- src/mesa/drivers/dri/intel/intel_context.h|5 + 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/

[Mesa-dev] [PATCH 1/8] intel: Rename INTEL_DEBUG=fall to INTEL_DEBUG=perf.

2012-08-07 Thread Eric Anholt
I want to introduce some more debug output for performance surprises that includes fallbacks, but aren't necessarily software rasterization. Leave INTEL_DEBUG=fall in place for those that have used that flag before. --- src/mesa/drivers/dri/i915/i915_program.c|2 +- src/mesa/drivers/dri/i

Re: [Mesa-dev] [PATCH] i965/msaa: Add sample-alpha-to-coverage support for multiple render targets

2012-08-07 Thread Eric Anholt
Anuj Phogat writes: > Render Target Write message should include source zero alpha value when > sample-alpha-to-coverage is enabled for an FBO with multiple render targets. > Source zero alpha value is used as fragment coverage for all the render > targets. > diff --git a/src/mesa/drivers/dri/i

Re: [Mesa-dev] [PATCH 15/15] intel: Advertise multisample DRI2 configs on gen >= 6

2012-08-07 Thread Eric Anholt
Chad Versace writes: > On 08/06/2012 07:49 PM, Eric Anholt wrote: >> Chad Versace writes: >>> + /* Generate multisample configs. >>> +* >>> +* This loop breaks early, and hence is a no-op, on gen < 6. >>> +* >>> +* Multisample configs must follow the singlesample configs in ord

Re: [Mesa-dev] [PATCH 15/15] intel: Advertise multisample DRI2 configs on gen >= 6

2012-08-07 Thread Chad Versace
On 08/06/2012 07:49 PM, Eric Anholt wrote: > Chad Versace writes: >> + /* Generate multisample configs. >> +* >> +* This loop breaks early, and hence is a no-op, on gen < 6. >> +* >> +* Multisample configs must follow the singlesample configs in order to >> +* work around an

Re: [Mesa-dev] [PATCH 10/15] intel: Support mapping multisample miptrees (v2)

2012-08-07 Thread Chad Versace
On 08/06/2012 07:32 PM, Eric Anholt wrote: > Chad Versace writes: > >> Add two new functions: intel_miptree_{map,unmap}_multisample, to which >> intel_miptree_{map,unmap} dispatch. Only mapping flat, renderbuffer-like >> miptrees are supported. >> >> v2: >> - Move the introduction of >>

Re: [Mesa-dev] [PATCH mesa] i965: add more Haswell PCI IDs

2012-08-07 Thread Paulo Zanoni
2012/8/6 Kenneth Graunke : > On 08/06/2012 02:50 PM, Paulo Zanoni wrote: >> From: Paulo Zanoni >> >> Signed-off-by: Paulo Zanoni > > Reviewed-by: Kenneth Graunke > > Do you have push access? If not, I can commit this for you. I just discovered I have. Patch committed, thanks. -- Paulo Zanon

Re: [Mesa-dev] [PATCH 14/15] intel: Clarify intel_screen_make_configs

2012-08-07 Thread Chad Versace
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/06/2012 07:40 PM, Eric Anholt wrote: > Chad Versace writes: > >> This function felt sloppy, so this patch cleans it up a little bit. >> >> - Rename `color` to `i`. It is not a color value, only an iterator int. > > I'm meh on this change. A

Re: [Mesa-dev] [PATCH 13/15] dri: Simplify use of driConcatConfigs

2012-08-07 Thread Chad Versace
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/06/2012 07:33 PM, Eric Anholt wrote: > Chad Versace writes: > >> If either argument to driConcatConfigs(a, b) is null or the empty list, >> then simply return the other argument as the resultant list. >> >> All callers were accomplishing that

[Mesa-dev] [PATCH] gbm: Fix build without gallium_drm_loader

2012-08-07 Thread Chí-Thanh Christopher Nguyễn
pipe_loader_drm_probe_fd only exists if HAVE_PIPE_LOADER_DRM is defined. This addresses https://bugs.freedesktop.org/show_bug.cgi?id=52962 --- src/gallium/targets/gbm/gbm.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/gallium/targets/gbm/gbm.c b/src/gallium/targets

Re: [Mesa-dev] someone regressed tinderbox

2012-08-07 Thread Brian Paul
On 08/06/2012 10:38 PM, Dave Airlie wrote: http://tinderbox.x.org/builds/2012-08-06-0020/logs/libGL/#build Making all in glx gmake[4]: Entering directory `/home/tinderbox/mesa/mesa/src/egl/drivers/glx' CC egl_glx.lo In file included from ../../../../src/egl/main/egltypedefs.h:37,

[Mesa-dev] [Bug 53199] out-of-bounds read src/gallium/drivers/softpipe/sp_flush.c:59

2012-08-07 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=53199 Brian Paul changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

Re: [Mesa-dev] down to 1 test page failing in WebGL 1.0.1 test on Radeon driver

2012-08-07 Thread Andreas Boll
2012/8/6 Laurent Carlier : > Le lundi 6 août 2012 17:14:52 Alex Deucher a écrit : > >> On Mon, Aug 6, 2012 at 5:14 PM, Alex Deucher >> wrote: > >> > On Mon, Aug 6, 2012 at 12:43 AM, Benoit Jacob >> > wrote: > >> >> Hi, > >> >> > >> >> Just so you know: the WebGL 1.0.1 tests are now passing on 2 d

Re: [Mesa-dev] [PATCH] translate: Fix typo in is_legal_int_format_combo.

2012-08-07 Thread Jose Fonseca
Good catch. Reviewed-by: Jose Fonseca - Original Message - > Fixes same on both sides defect reported by Coverity. > > Signed-off-by: Vinson Lee > --- > src/gallium/auxiliary/translate/translate_generic.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/ga

Re: [Mesa-dev] R600 VDPAU 422 regression since r600g: make sure copying of all texture formats is accelerated

2012-08-07 Thread Andy Furniss
Marek Olšák wrote: Does the attached patch fix this issue? Not properly - it fixes the invalid command stream but the output is not quite right - http://www.andyqos.ukfsn.org/vdpau-422-patched.png Marek On Mon, Aug 6, 2012 at 5:40 PM, Andy Furniss wrote: Kernel is dcn card is rv790 -

[Mesa-dev] [PATCH] translate: Fix typo in is_legal_int_format_combo.

2012-08-07 Thread Vinson Lee
Fixes same on both sides defect reported by Coverity. Signed-off-by: Vinson Lee --- src/gallium/auxiliary/translate/translate_generic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/translate/translate_generic.c b/src/gallium/auxiliary/translate/trans

[Mesa-dev] [Bug 53199] New: out-of-bounds read src/gallium/drivers/softpipe/sp_flush.c:59

2012-08-07 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=53199 Bug #: 53199 Summary: out-of-bounds read src/gallium/drivers/softpipe/sp_flush.c:59 Classification: Unclassified Product: Mesa Version: unspecified Platform: All