Re: [Mesa-dev] [PATCH] i965: handle gl_PointCoord for Gen4 and Gen5 platforms

2012-03-06 Thread Yuanhan Liu
On Tue, Mar 06, 2012 at 08:25:10AM -0800, Eric Anholt wrote: > On Mon, 27 Feb 2012 15:46:32 +0800, Yuanhan Liu > wrote: > > diff --git a/src/mesa/drivers/dri/i965/brw_sf.c > > b/src/mesa/drivers/dri/i965/brw_sf.c > > index 6e63583..7950c47 100644 > > --- a/src/mesa/drivers/dri/i965/brw_sf.c > >

[Mesa-dev] [Bug 47028] New: EGL: (r300) weston crashes in libEGL.so - bisected

2012-03-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=47028 Bug #: 47028 Summary: EGL: (r300) weston crashes in libEGL.so - bisected Classification: Unclassified Product: Mesa Version: git Platform: x86 (IA32) OS/Version: Linux (All)

Re: [Mesa-dev] [PATCH 4/7] i965: Change the hiz-override env var to a driconf option.

2012-03-06 Thread Chad Versace
On 03/06/2012 02:57 PM, Eric Anholt wrote: > The force-enable option is dropped, now that the hardware we were > concerned about has HiZ on by default. Now, instead of doing > INTEL_HIZ=0 to test disabling hiz, you can set hiz=false. > --- > src/mesa/drivers/dri/intel/intel_context.c |5 +++-

Re: [Mesa-dev] [PATCH] glx: Also put a symlink from libGL.so in lib/ for now.

2012-03-06 Thread Stéphane Marchesin
On Sat, Mar 3, 2012 at 09:11, Johannes Obermayr wrote: >  This fixes the libGLU.so.* build when a system libGL.so is not present since > it is relying on the lib/ to build against until it gets converted to > automake. > > --- >  src/glx/Makefile.am |    1 + >  1 files changed, 1 insertions(+),

[Mesa-dev] [PATCH 6/7] mesa: Skip looking at debug environment variables when setuid.

2012-03-06 Thread Eric Anholt
When a driver is loaded by the setuid root X Server, you don't want the debug flags to apply in case they can be used for nefarious purposes. --- src/mesa/main/imports.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/mesa/main/imports.c b/src/mesa/main/imports.c in

[Mesa-dev] [PATCH 1/7] intel: Drop the INTEL_STRICT_CONFORMANCE environment variable.

2012-03-06 Thread Eric Anholt
If you want to test the graphics driver, you want to test it under the conditions that users will see, not some set of additional fallbacks. If you want to test swrast, run the swrast driver (or no_rast=true) instead. --- src/mesa/drivers/dri/i915/intel_tris.c | 12 +- src/mesa/drive

[Mesa-dev] [PATCH 7/7] dri: Disable user-specified driconf options when in a setuid environment.

2012-03-06 Thread Eric Anholt
A user (for example, without DRI priveleges) should not be able to modify the behavior of the X Server's AIGLX driver. --- src/mesa/drivers/dri/common/xmlconfig.c | 10 +++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/mesa/drivers/dri/common/xmlconfig.c b/src/mesa/d

[Mesa-dev] [PATCH 3/7] intel: Drop the INTEL_NO_BLIT debug environment variable.

2012-03-06 Thread Eric Anholt
This was added in the i915/i965 merge from the i915 driver, but I don't recall it ever being used since then. --- src/mesa/drivers/dri/intel/intel_pixel.c |8 +++- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/mesa/drivers/dri/intel/intel_pixel.c b/src/mesa/drivers/dr

[Mesa-dev] [PATCH 5/7] intel: Skip looking at driver debug flags when setuid.

2012-03-06 Thread Eric Anholt
The idea is that when the driver is loaded by the setuid root X Server, you don't want the driver debug flags to apply in case they can be used for nefarious purposes. --- src/mesa/drivers/dri/intel/intel_context.c |6 +- src/mesa/drivers/dri/intel/intel_screen.c | 20 +++---

[Mesa-dev] [PATCH 2/7] i965: Turn the INTEL_FORCE_GS env var into a driconf option.

2012-03-06 Thread Eric Anholt
--- src/mesa/drivers/dri/i965/brw_context.c |1 + src/mesa/drivers/dri/i965/brw_context.h |3 +++ src/mesa/drivers/dri/i965/brw_gs.c|3 +-- src/mesa/drivers/dri/intel/intel_screen.c |6 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/mesa/driv

[Mesa-dev] [PATCH 4/7] i965: Change the hiz-override env var to a driconf option.

2012-03-06 Thread Eric Anholt
The force-enable option is dropped, now that the hardware we were concerned about has HiZ on by default. Now, instead of doing INTEL_HIZ=0 to test disabling hiz, you can set hiz=false. --- src/mesa/drivers/dri/intel/intel_context.c |5 +++- src/mesa/drivers/dri/intel/intel_screen.c | 31 ++

Re: [Mesa-dev] [PATCH 1/3] gtest: Import sources from gtest 1.6.0.

2012-03-06 Thread Eric Anholt
On Tue, 06 Mar 2012 10:26:58 -0800, Kenneth Graunke wrote: > On 03/05/2012 05:01 PM, Eric Anholt wrote: > > The upstream of gtest has decided that the intended usage model is for > > projects to import the source and use it, which is reflected in their > > recent removal of the gtest-config tool.

Re: [Mesa-dev] [PATCH] nouveau_vieux: don't use nested functions

2012-03-06 Thread Francisco Jerez
nobled writes: > It's a GNU extension that isn't supported by clang right now: > http://gcc.gnu.org/onlinedocs/gcc-4.6.3/gcc/Nested-Functions.html > http://clang.llvm.org/docs/UsersManual.html#c_unimpl_gcc > > With this, clang now compiles the nouveau classic driver. > > Bugzilla: https://bugs.fr

Re: [Mesa-dev] Mesa as part of OpenGL-on-OpenGL ES 2.0 (/WebGL)?

2012-03-06 Thread Alon Zakai
On Tue, Mar 6, 2012 at 6:41 AM, Michel Dänzer wrote: > On Die, 2012-03-06 at 05:11 -0800, Benoit Jacob wrote: >> > > > For a bunch of it, apps don't use it so nobody would notice. >> > > > glBitmap and glDrawPixels are reasonably popular, though.  You >> > > > should >> > > > be >> > > > able to b

Re: [Mesa-dev] [PATCH 1/3] gtest: Import sources from gtest 1.6.0.

2012-03-06 Thread Kenneth Graunke
On 03/05/2012 05:01 PM, Eric Anholt wrote: The upstream of gtest has decided that the intended usage model is for projects to import the source and use it, which is reflected in their recent removal of the gtest-config tool. You've got to be kidding me :( But you're right: http://code.google.

Re: [Mesa-dev] [PATCH 2/3] gtest: Build as a convenience library.

2012-03-06 Thread Brian Paul
On 03/06/2012 10:47 AM, Kenneth Graunke wrote: On 03/05/2012 05:01 PM, Eric Anholt wrote: --- configure.ac | 1 + src/gtest/.gitignore | 5 + src/gtest/Makefile.am | 38 ++ 3 files changed, 44 insertions(+), 0 deletions(-) create mode 100644 src/gtest/.gitign

[Mesa-dev] [Bug 46815] Build fails with byacc and configuration script succeeds

2012-03-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=46815 --- Comment #1 from Kenneth Graunke 2012-03-06 09:53:33 PST --- Bison is definitely required, so yes, configure ought to detect that and fail. We should fix that. -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email

Re: [Mesa-dev] [PATCH 2/3] gtest: Build as a convenience library.

2012-03-06 Thread Kenneth Graunke
On 03/05/2012 05:01 PM, Eric Anholt wrote: --- configure.ac |1 + src/gtest/.gitignore |5 + src/gtest/Makefile.am | 38 ++ 3 files changed, 44 insertions(+), 0 deletions(-) create mode 100644 src/gtest/.gitignore create mode 10

Re: [Mesa-dev] [PATCH] mesa: handle array textures in strip_texture_border()

2012-03-06 Thread Brian Paul
On 03/05/2012 08:42 PM, Anuj Phogat wrote: On Wed 29 Feb 2012 07:36:21 PM PST, Brian Paul wrote: If the texture is a 1D array, don't remove the border pixel from the height. Similarly for 2D array textures and the depth direction. Simplify the function by assuming the border is always one pixel

Re: [Mesa-dev] Missing copyright header in dri/common/dri_util.c

2012-03-06 Thread Brian Paul
On 03/06/2012 02:15 AM, Tomasz Kowal wrote: Would it be possible to add missing copyrights to dri_util.c? The oldest git commits for dri_util.c are from 2004, committed by Ian. Ian, would copying the blurb from utils.c be OK? /* * (C) Copyright IBM Corporation 2002, 2004 * All Rights Reserv

Re: [Mesa-dev] [PATCH] gallivm: Pass in a MCRegisterInfo to MCInstPrinter on llvm-3.1.

2012-03-06 Thread Brian Paul
On 03/05/2012 11:08 PM, Vinson Lee wrote: llvm-3.1svn r152043 changes createMCInstPrinter to take an additional MCRegisterInfo argument. Signed-off-by: Vinson Lee --- src/gallium/auxiliary/gallivm/lp_bld_debug.cpp | 13 - 1 files changed, 12 insertions(+), 1 deletions(-) diff -

Re: [Mesa-dev] [PATCH] i915: move the FALLBACK_DRAW_OFFSET check outside the drawing rect check

2012-03-06 Thread Eric Anholt
On Tue, 6 Mar 2012 14:40:32 +0800, Yuanhan Liu wrote: > We have to do fallback when the 'Clipped Drawing Rectangle X/Y Max' > exceed the hardware's limit no matter the drawing rectangle offset > changed or not. > > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=46665 > > NOTE: This is

Re: [Mesa-dev] [PATCH] i965: handle gl_PointCoord for Gen4 and Gen5 platforms

2012-03-06 Thread Eric Anholt
On Mon, 27 Feb 2012 15:46:32 +0800, Yuanhan Liu wrote: > diff --git a/src/mesa/drivers/dri/i965/brw_sf.c > b/src/mesa/drivers/dri/i965/brw_sf.c > index 6e63583..7950c47 100644 > --- a/src/mesa/drivers/dri/i965/brw_sf.c > +++ b/src/mesa/drivers/dri/i965/brw_sf.c > @@ -125,6 +135,7 @@ brw_upload_s

Re: [Mesa-dev] Mesa as part of OpenGL-on-OpenGL ES 2.0 (/WebGL)?

2012-03-06 Thread Benoit Jacob
- Original Message - > On Mon, 5 Mar 2012 19:41:14 -0800 (PST), Benoit Jacob > wrote: > > > For a bunch of it, apps don't use it so nobody would notice. > > > glBitmap and glDrawPixels are reasonably popular, though. You > > > should > > > be > > > able to build those with shaders, though

Re: [Mesa-dev] Mesa as part of OpenGL-on-OpenGL ES 2.0 (/WebGL)?

2012-03-06 Thread Eric Anholt
On Mon, 5 Mar 2012 19:41:14 -0800 (PST), Benoit Jacob wrote: > > For a bunch of it, apps don't use it so nobody would notice. > > glBitmap and glDrawPixels are reasonably popular, though. You should > > be > > able to build those with shaders, though. You can see partial > > implementations for

Re: [Mesa-dev] Mesa as part of OpenGL-on-OpenGL ES 2.0 (/WebGL)?

2012-03-06 Thread Benoit Jacob
- Original Message - > On Die, 2012-03-06 at 05:11 -0800, Benoit Jacob wrote: > That said, there's no denying that your use case is relatively > special, > so a more specialized solution which preserves some GLES API calls > might > provide significantly better performance. On the other h

Re: [Mesa-dev] Mesa as part of OpenGL-on-OpenGL ES 2.0 (/WebGL)?

2012-03-06 Thread Michel Dänzer
On Die, 2012-03-06 at 05:11 -0800, Benoit Jacob wrote: > > > > For a bunch of it, apps don't use it so nobody would notice. > > > > glBitmap and glDrawPixels are reasonably popular, though. You > > > > should > > > > be > > > > able to build those with shaders, though. You can see partial > > >

Re: [Mesa-dev] Mesa as part of OpenGL-on-OpenGL ES 2.0 (/WebGL)?

2012-03-06 Thread Benoit Jacob
- Original Message - > > > > http://people.mozilla.org/~eakhgari/es2gears.html > > Too bad it refuses to run on big endian hosts yet. :) Off-topic, but just FYI: Emscripten uses a Typed Array to represent the heap, and Typed Arrays expose endianness which means that it's up to the appl

Re: [Mesa-dev] Mesa as part of OpenGL-on-OpenGL ES 2.0 (/WebGL)?

2012-03-06 Thread Benoit Jacob
- Original Message - > To solve these, I don't think building a Mesa driver would help you > too > much -- it seems like a big detour to mostly get to the same point of > hooking desktop glBlendFunc up to WebGL glBlendFunc and so on (git > grep > ctx-\>API suggests not too many overrides ar

Re: [Mesa-dev] Mesa as part of OpenGL-on-OpenGL ES 2.0 (/WebGL)?

2012-03-06 Thread Benoit Jacob
> > > For a bunch of it, apps don't use it so nobody would notice. > > > glBitmap and glDrawPixels are reasonably popular, though. You > > > should > > > be > > > able to build those with shaders, though. You can see partial > > > implementations for these in on top of fixed function in Mesa as >

Re: [Mesa-dev] [PATCH 1/9] st/vdpau: implement support for extra mixer layers

2012-03-06 Thread Christian König
On 05.03.2012 23:56, Emil Velikov wrote: On Sun, 04 Mar 2012 11:52:36 -, Christian König wrote: Signed-off-by: Christian König --- src/gallium/state_trackers/vdpau/mixer.c | 27 +-- 1 files changed, 21 insertions(+), 6 deletions(-) Hello Christian Would yo

[Mesa-dev] Missing copyright header in dri/common/dri_util.c

2012-03-06 Thread Tomasz Kowal
Would it be possible to add missing copyrights to dri_util.c?   Thanks, Tomasz___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] Mesa as part of OpenGL-on-OpenGL ES 2.0 (/WebGL)?

2012-03-06 Thread Michel Dänzer
On Mon, 2012-03-05 at 19:41 -0800, Benoit Jacob wrote: > > - Original Message - > > On Sat, 3 Mar 2012 13:21:08 -0800, Alon Zakai > > wrote: > > > > > > In the project I work on (Emscripten, an open source C/C++ to > > > JavaScript compiler that utilizes LLVM), we want to be able to > >