Re: [Mesa-dev] [PATCH 0/2] Disable the EGL state tracker for Linux/DRI builds

2014-11-05 Thread Michel Dänzer
On 05.11.2014 07:42, Marek Olšák wrote: Hi everybody, I'm about to address this long-standing issue: The EGL state tracker is redundant. It duplicates what st/dri does and it also duplicates what the common loader egl_dri2 does, which is used by all classic drivers and even works better with gal

Re: [Mesa-dev] [PATCH 0/2] Disable the EGL state tracker for Linux/DRI builds

2014-11-05 Thread Pekka Paalanen
On Tue, 4 Nov 2014 23:42:43 +0100 Marek Olšák wrote: > Hi everybody, > > I'm about to address this long-standing issue: The EGL state tracker is > redundant. It duplicates what st/dri does and it also duplicates what > the common loader egl_dri2 does, which is used by all classic drivers > and

Re: [Mesa-dev] [PATCH 2/3][RFC v2] mesa/main/x86: Add sse2 streaming clamping

2014-11-05 Thread Juha-Pekka Heikkila
Hi, I did rely on gcc optimization run on moving things around for me. What _mesa_streaming_clamp_float_rgba really look like when I compile it is this: Dump of assembler code for function _mesa_streaming_clamp_float_rgba: 0x7401a0a0 <+0>: test %edi,%edi 0x7401a0a2 <+2

Re: [Mesa-dev] [PATCH 2/3][RFC v2] mesa/main/x86: Add sse2 streaming clamping

2014-11-05 Thread Juha-Pekka Heikkila
On 04.11.2014 21:46, Patrick Baggett wrote: > > > On Tue, Nov 4, 2014 at 6:05 AM, Juha-Pekka Heikkila > mailto:juhapekka.heikk...@gmail.com>> wrote: > > Signed-off-by: Juha-Pekka Heikkila > > --- > src/mesa/Makefile.am | 8 +++

Re: [Mesa-dev] [PATCH 2/3][RFC v2] mesa/main/x86: Add sse2 streaming clamping

2014-11-05 Thread Juha-Pekka Heikkila
On 04.11.2014 23:24, Roland Scheidegger wrote: > Am 04.11.2014 um 13:05 schrieb Juha-Pekka Heikkila: >> Signed-off-by: Juha-Pekka Heikkila >> --- >> src/mesa/Makefile.am | 8 +++ >> src/mesa/main/x86/sse2_clamping.c | 103 >> ++ >> src/mesa/main

Re: [Mesa-dev] [PATCH 2/2] i965: Remove non-existent vertical strides from array.

2014-11-05 Thread Kenneth Graunke
On Friday, October 31, 2014 05:47:14 PM Matt Turner wrote: > These never existed, as far as I can tell. > --- > src/mesa/drivers/dri/i965/brw_eu_emit.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/mesa/drivers/dri/i965/brw_eu_emit.c b/src/mesa/drivers/dri/i965/brw

Re: [Mesa-dev] [PATCH 3/3] gk20a: use NOUVEAU_BO_GART as VRAM domain

2014-11-05 Thread Alexandre Courbot
On 10/30/2014 12:29 AM, Ilia Mirkin wrote: On Mon, Oct 27, 2014 at 6:34 AM, Alexandre Courbot wrote: GK20A does not have dedicated VRAM, therefore allocating in VRAM can be sub-optimal and sometimes even harmful. Set its VRAM domain to NOUVEAU_BO_GART so all objects are allocated in system memo

Re: [Mesa-dev] [PATCH] i965: Fix sampler state pointer adjustment for nonconst samplers

2014-11-05 Thread Chris Forbes
I haven't bisected, but this will have got broken when we changed the execsize guessing. Previously we would have picked a larger execsize here, but now it is and(1). This is the d/u indexing case, so sampler_index is a vec8/vec16 grf. Most of the other cases are immediates, or individual vec1s al

[Mesa-dev] [Bug 85869] Offscreen rendering to pixmap EGLSurface is odd

2014-11-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=85869 Tapani Pälli changed: What|Removed |Added CC||lem...@gmail.com --- Comment #1 from Tapa

Re: [Mesa-dev] [PATCH 0/2] Disable the EGL state tracker for Linux/DRI builds

2014-11-05 Thread Marek Olšák
On Wed, Nov 5, 2014 at 9:02 AM, Michel Dänzer wrote: > On 05.11.2014 07:42, Marek Olšák wrote: >> >> Hi everybody, >> >> I'm about to address this long-standing issue: The EGL state tracker is >> redundant. It duplicates what st/dri does and it also duplicates what >> the common loader egl_dri2 do

[Mesa-dev] [PATCH] egl: dri2: Use present extension. (Was: Re: [RFC] egl: Add DRI3 support to the EGL backend.)

2014-11-05 Thread Joonas Lahtinen
Hi, Modified not refer to DRI3, just uses the present extension to get rid of the excess buffer invalidations. Regards, Joonas From 257e2a8c750f9dcf868cce9da8632df3cae0fcec Mon Sep 17 00:00:00 2001 From: Joonas Lahtinen Date: Wed, 5 Nov 2014 12:25:32 +0200 Subject: [PATCH] egl: dri2: Use presen

[Mesa-dev] [Bug 85869] Offscreen rendering to pixmap EGLSurface is odd

2014-11-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=85869 --- Comment #2 from Tapani Pälli --- bisected to: 8< commit 8f55174fbdc27076f310c4dfb1f87072588b8b0b Author: Kristian Høgsberg Date: Fri Aug 15 23:19:52 2014 -0700 meta: Make MESA_META_DRAW_BUFFERS restore properly A meta b

Re: [Mesa-dev] [PATCH 2/3][RFC v2] mesa/main/x86: Add sse2 streaming clamping

2014-11-05 Thread Roland Scheidegger
Am 05.11.2014 um 10:13 schrieb Juha-Pekka Heikkila: > On 04.11.2014 23:24, Roland Scheidegger wrote: >> Am 04.11.2014 um 13:05 schrieb Juha-Pekka Heikkila: >>> Signed-off-by: Juha-Pekka Heikkila >>> --- >>> src/mesa/Makefile.am | 8 +++ >>> src/mesa/main/x86/sse2_clamping.c | 103

[Mesa-dev] [Bug 85918] Mesa: MSVC 2010/2012 Compile error

2014-11-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=85918 Bug ID: 85918 Summary: Mesa: MSVC 2010/2012 Compile error Product: Mesa Version: unspecified Hardware: x86-64 (AMD64) OS: Windows (All) Status: NEW Severi

Re: [Mesa-dev] [PATCH] egl: dri2: Use present extension. (Was: Re: [RFC] egl: Add DRI3 support to the EGL backend.)

2014-11-05 Thread Emil Velikov
Hi Joonas, Does getting rid of the viewport hack give you any noticeable performance improvement ? Is there any interest in converting the egl_dri2 backend to dri3, rather than just copying over the present bits ? On 05/11/14 11:14, Joonas Lahtinen wrote: > Hi, > > Modified not refer to DRI3, ju

Re: [Mesa-dev] [PATCH 0/3][RFC v2] Clamp rgba floats with sse

2014-11-05 Thread Emil Velikov
Hi Juha-Pekka, On 04/11/14 12:05, Juha-Pekka Heikkila wrote: [snip] > I made 'x86' folder under > src/mesa/main. The idea here being if there is optimization targeting > architecture it'd exist directly under the place where it was used, in its > own subdirectly indicating targeted architecture. I

[Mesa-dev] [Bug 85918] Mesa: MSVC 2010/2012 Compile error

2014-11-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=85918 --- Comment #1 from Roland Scheidegger --- This was already fixed on mesa master in a similar fashion quite a while ago - commit 9608193cbc6ea14e49adcd0193f9e7c6058d5a2f. I guess we forgot about nominating it for 10.3 branch, I'm going to do that

[Mesa-dev] [Bug 85918] Mesa: MSVC 2010/2012 Compile error

2014-11-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=85918 --- Comment #2 from Emil Velikov --- Roland, Can we encourage "newcomers" to use MSVC 2013 and later (if ever available) ? This way once you guys (and others) are over to 2013 we can just go with - anything prior to MSVC2013 is not supported :P I

[Mesa-dev] [Bug 85918] Mesa: MSVC 2010/2012 Compile error

2014-11-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=85918 --- Comment #3 from Roland Scheidegger --- (In reply to Emil Velikov from comment #2) > Roland, > Can we encourage "newcomers" to use MSVC 2013 and later (if ever available) > ? This way once you guys (and others) are over to 2013 we can just go

Re: [Mesa-dev] [PATCH 0/2] Disable the EGL state tracker for Linux/DRI builds

2014-11-05 Thread Matt Turner
On Wed, Nov 5, 2014 at 12:02 AM, Michel Dänzer wrote: > On 05.11.2014 07:42, Marek Olšák wrote: >> - OpenVG - It has never taken off. If people want this on Linux, it should >> use egl_dri2 and st/dri, like OpenGL does. > > > The problem is doing so would probably be a lot of work, so this creates

Re: [Mesa-dev] [PATCH 0/2] Disable the EGL state tracker for Linux/DRI builds

2014-11-05 Thread Kristian Høgsberg
On Wed, Nov 5, 2014 at 2:43 AM, Marek Olšák wrote: > On Wed, Nov 5, 2014 at 9:02 AM, Michel Dänzer wrote: >> On 05.11.2014 07:42, Marek Olšák wrote: >>> >>> Hi everybody, >>> >>> I'm about to address this long-standing issue: The EGL state tracker is >>> redundant. It duplicates what st/dri does

Re: [Mesa-dev] [PATCH 2/3][RFC v2] mesa/main/x86: Add sse2 streaming clamping

2014-11-05 Thread Ian Romanick
On 11/04/2014 01:24 PM, Roland Scheidegger wrote: > Am 04.11.2014 um 13:05 schrieb Juha-Pekka Heikkila: >> + for(i = 0; i < n; i++) { >> + _mesa_clamp_float_rgba(rgba_src[i], temp, min, max); >> + >> + *operand = _mm_mul_ps(multiplier, *operand); >> + truncated_integers = _mm_cvttp

[Mesa-dev] ARB_texture_buffer_range offsets

2014-11-05 Thread Roland Scheidegger
Trying to fix some bug due to alignment issues in llvmpipe's vertex fetch, I came across some issue with ARB_texture_buffer_range. Namely, it looks like the offsets specified there are always in bytes, regardless the actual format (hence, as long as the TEXTURE_BUFFER_OFFSET_ALIGNMENT is 1, it woul

[Mesa-dev] [PATCH] gallivm: fix alignment issue for vertex data fetch

2014-11-05 Thread sroland
From: Roland Scheidegger We cannot guarantee that vertex buffers have the necessary alignment for fetching all AoS members at once (for instance 4x32bit XYZW data). We can however guarantee that for textures. This did not cause errors for older llvm versions but it now matters and will cause segf

Re: [Mesa-dev] [PATCH 0/2] Disable the EGL state tracker for Linux/DRI builds

2014-11-05 Thread Eric Anholt
Marek Olšák writes: > Hi everybody, > > I'm about to address this long-standing issue: The EGL state tracker is > redundant. It duplicates what st/dri does and it also duplicates what > the common loader egl_dri2 does, which is used by all classic drivers > and even works better with gallium driv

Re: [Mesa-dev] [PATCH V5] mesa: add SSE optimisation for glDrawElements

2014-11-05 Thread Timothy Arceri
There have been quite a few eyes over this now but nobody has given it a reviewed by yet. Would be nice to get it in before the code freeze. Any takers? On Wed, 2014-10-29 at 23:05 +1100, Timothy Arceri wrote: > Makes use of SSE to speed up compute of min and max elements > > Callgrind cpu usa

Re: [Mesa-dev] [Mesa-announce] Mesa 10.3 release candidate 1

2014-11-05 Thread Matt Turner
On Tue, Nov 4, 2014 at 7:44 PM, Matt Turner wrote: > On Tue, Nov 4, 2014 at 8:35 AM, Ausmus, James wrote: >> On Mon, Nov 3, 2014 at 8:12 PM, Matt Turner wrote: >>> On Mon, Nov 3, 2014 at 7:35 PM, Ausmus, James >>> wrote: >>> > I am able to reproduce this consistently with -j40 - it bisects to:

Re: [Mesa-dev] [PATCH V5] mesa: add SSE optimisation for glDrawElements

2014-11-05 Thread Matt Turner
On Wed, Nov 5, 2014 at 12:50 PM, Timothy Arceri wrote: > There have been quite a few eyes over this now but nobody has given it a > reviewed by yet. > > Would be nice to get it in before the code freeze. Any takers? Yes, I'll make sure that happens. ___

Re: [Mesa-dev] [PATCH 0/2] Disable the EGL state tracker for Linux/DRI builds

2014-11-05 Thread Jose Fonseca
> How many people/companies use EGL for Windows/fbdev, how about OpenVG on any platform ? I already said this privately to Marek when he was RFC'ing on this change: I'm fine if Linux-specific drivers abandon st/egl to focus solely on st/dri, but removing st/egl altogether seems unnecessary and s

[Mesa-dev] [PATCH] glsl/list: Add an exec_list_validate function

2014-11-05 Thread Jason Ekstrand
This can be very useful for trying to debug list corruptions. Signed-off-by: Jason Ekstrand Cc: Ian Romanick --- src/glsl/list.h | 14 ++ 1 file changed, 14 insertions(+) diff --git a/src/glsl/list.h b/src/glsl/list.h index aac13fd..1d18ec9 100644 --- a/src/glsl/list.h +++ b/src/gl

Re: [Mesa-dev] [PATCH] glsl/list: Add an exec_list_validate function

2014-11-05 Thread Matt Turner
On Wed, Nov 5, 2014 at 2:00 PM, Jason Ekstrand wrote: > This can be very useful for trying to debug list corruptions. > > Signed-off-by: Jason Ekstrand > Cc: Ian Romanick > --- > src/glsl/list.h | 14 ++ > 1 file changed, 14 insertions(+) > > diff --git a/src/glsl/list.h b/src/glsl/

[Mesa-dev] [PATCH 1/4] i965/cfg: Add functions to get first and last non-CF instructions.

2014-11-05 Thread Matt Turner
--- src/mesa/drivers/dri/i965/brw_cfg.h | 74 + 1 file changed, 74 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_cfg.h b/src/mesa/drivers/dri/i965/brw_cfg.h index e6403bd..c2029cc 100644 --- a/src/mesa/drivers/dri/i965/brw_cfg.h +++ b/src/mesa/drive

[Mesa-dev] [PATCH 3/4] i965: Add code to verify the CFG is sane.

2014-11-05 Thread Matt Turner
--- src/mesa/drivers/dri/i965/test_verify_cfg.cpp | 273 ++ src/mesa/drivers/dri/i965/test_verify_cfg.h | 26 +++ 2 files changed, 299 insertions(+) create mode 100644 src/mesa/drivers/dri/i965/test_verify_cfg.cpp create mode 100644 src/mesa/drivers/dri/i965/test_verif

[Mesa-dev] [PATCH 2/4] i965/fs: Wire up control flow correctly in predicated break pass.

2014-11-05 Thread Matt Turner
When the earlier block ended with control flow, we'd mistakenly remove some of its links to its children. The same happened with the later block. --- src/mesa/drivers/dri/i965/brw_fs_peephole_predicated_break.cpp | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/me

[Mesa-dev] [PATCH 4/4] i965/fs: Add unit tests for predicated break peephole.

2014-11-05 Thread Matt Turner
--- src/mesa/drivers/dri/i965/Makefile.am | 8 + .../drivers/dri/i965/test_fs_predicated_break.cpp | 292 + 2 files changed, 300 insertions(+) create mode 100644 src/mesa/drivers/dri/i965/test_fs_predicated_break.cpp diff --git a/src/mesa/drivers/dri/i965/Make

Re: [Mesa-dev] [PATCH] glsl/list: Add an exec_list_validate function

2014-11-05 Thread Jason Ekstrand
On Wed, Nov 5, 2014 at 2:46 PM, Matt Turner wrote: > On Wed, Nov 5, 2014 at 2:00 PM, Jason Ekstrand > wrote: > > This can be very useful for trying to debug list corruptions. > > > > Signed-off-by: Jason Ekstrand > > Cc: Ian Romanick > > --- > > src/glsl/list.h | 14 ++ > > 1 file

Re: [Mesa-dev] [PATCH 0/2] Disable the EGL state tracker for Linux/DRI builds

2014-11-05 Thread Chia-I Wu
On Thu, Nov 6, 2014 at 5:11 AM, Jose Fonseca wrote: >> How many people/companies use EGL for Windows/fbdev, how about OpenVG on > any platform ? > > I already said this privately to Marek when he was RFC'ing on this change: > I'm fine if Linux-specific drivers abandon st/egl to focus solely on st

Re: [Mesa-dev] [PATCH 0/2] Disable the EGL state tracker for Linux/DRI builds

2014-11-05 Thread Chia-I Wu
On Wed, Nov 5, 2014 at 6:42 AM, Marek Olšák wrote: > Hi everybody, > > I'm about to address this long-standing issue: The EGL state tracker is > redundant. It duplicates what st/dri does and it also duplicates what > the common loader egl_dri2 does, which is used by all classic drivers > and even