[Mesa-dev] Add wayland EGL platform

2011-02-04 Thread Benjamin Franzke
Hi Mesa List, This patch series add a egl wayland platform. A helper library was needed in order to provide native types for the egl routines. The types are used to cache wayland events but also to create an interface for the application, e.g. for resizing. The library header will be provided by

[Mesa-dev] [PATCH 01/11] Add dri2::{Allocate, Release}Buffer extension

2011-02-04 Thread Benjamin Franzke
--- include/GL/internal/dri_interface.h|8 src/mesa/drivers/dri/common/dri_util.c | 20 +++- src/mesa/drivers/dri/common/dri_util.h |6 ++ 3 files changed, 33 insertions(+), 1 deletions(-) diff --git a/include/GL/internal/dri_interface.h

[Mesa-dev] [PATCH 02/11] st/dri: Implement dri2::{Allocate, Release}Buffer

2011-02-04 Thread Benjamin Franzke
--- src/gallium/state_trackers/dri/drm/dri2.c| 89 ++ src/gallium/state_trackers/dri/drm/dri2_buffer.h | 22 ++ 2 files changed, 111 insertions(+), 0 deletions(-) create mode 100644 src/gallium/state_trackers/dri/drm/dri2_buffer.h diff --git

[Mesa-dev] [PATCH 03/11] intel: Implement dri2::{Allocate, Release}Buffer

2011-02-04 Thread Benjamin Franzke
--- src/mesa/drivers/dri/intel/intel_screen.c | 47 + 1 files changed, 47 insertions(+), 0 deletions(-) diff --git a/src/mesa/drivers/dri/intel/intel_screen.c b/src/mesa/drivers/dri/intel/intel_screen.c index 5d14bcd..2f35fe7 100644 ---

[Mesa-dev] [PATCH 06/11] st/egl: native_helper: Add resource_surface_import_resource

2011-02-04 Thread Benjamin Franzke
--- .../state_trackers/egl/common/native_helper.c |8 .../state_trackers/egl/common/native_helper.h |5 + 2 files changed, 13 insertions(+), 0 deletions(-) diff --git a/src/gallium/state_trackers/egl/common/native_helper.c

[Mesa-dev] [PATCH 04/11] egl: Add wayland platform

2011-02-04 Thread Benjamin Franzke
--- configure.ac |4 src/egl/Makefile |4 src/egl/main/Makefile |5 - src/egl/main/egldisplay.c |1 + src/egl/main/egldisplay.h |1 + 5 files changed, 14 insertions(+), 1 deletions(-) diff --git a/configure.ac b/configure.ac index

[Mesa-dev] [PATCH 07/11] st/egl: drm_image: Check for MESA_drm_image

2011-02-04 Thread Benjamin Franzke
MESA_drm_image isnt limited to drm platform, others can enable the extension too. --- .../state_trackers/egl/common/egl_g3d_image.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/state_trackers/egl/common/egl_g3d_image.c

[Mesa-dev] [PATCH 08/11] st/egl: Add wayland platform

2011-02-04 Thread Benjamin Franzke
--- src/gallium/state_trackers/egl/Makefile| 14 + src/gallium/state_trackers/egl/common/egl_g3d.c|8 + src/gallium/state_trackers/egl/common/native.h |3 + .../state_trackers/egl/wayland/native_wayland.c| 569

[Mesa-dev] [PATCH 09/11] egl_dri2: Enable pixmap bind_to_texture according to the extension

2011-02-04 Thread Benjamin Franzke
--- src/egl/drivers/dri2/egl_dri2.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c index f16bec2..fc479cf 100644 --- a/src/egl/drivers/dri2/egl_dri2.c +++ b/src/egl/drivers/dri2/egl_dri2.c @@ -173,7

[Mesa-dev] [PATCH 11/11] egl_dri2: Add wayland platform

2011-02-04 Thread Benjamin Franzke
--- src/egl/drivers/dri2/Makefile |7 + src/egl/drivers/dri2/egl_dri2.c |6 + src/egl/drivers/dri2/egl_dri2.h | 43 +++ src/egl/drivers/dri2/platform_wayland.c | 588 +++ 4 files changed, 644 insertions(+), 0 deletions(-) create

[Mesa-dev] [PATCH 05/11] egl: Implement libwayland-egl

2011-02-04 Thread Benjamin Franzke
This library is required and defined by wayland for EGL implementations supporting wayland. --- configs/autoconf.in|9 ++ configs/default|7 + configure.ac | 17 +++ src/egl/wayland/Makefile | 67 +++

Re: [Mesa-dev] How to obtain OpenGL implementation/driver information?

2011-02-04 Thread Benoit Jacob
- Original Message - On Thu, Feb 3, 2011 at 4:37 PM, Benoit Jacob bja...@mozilla.com wrote: Hi, I'm trying to see how to implement selective whitelisting/blacklisting of driver versions on X11 (my use case is to whitelist drivers for Firefox). The naive approach consists in

Re: [Mesa-dev] Add wayland EGL platform

2011-02-04 Thread Kristian Høgsberg
On Fri, Feb 4, 2011 at 11:31 AM, Benjamin Franzke benjaminfran...@googlemail.com wrote: Hi Mesa List, This patch series add a egl wayland platform. A helper library was needed in order to provide native types for the egl routines. The types are used to cache wayland events but also to

Re: [Mesa-dev] Mesa (master): glsl: Add using statements for standard library functions.

2011-02-04 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/03/2011 10:36 PM, Jose Fonseca wrote: This is very odd behavior from Sun's compiler -- unless we include cstdio, printf should be available, not std::printf. I think we might use cstdio in some places. I find it odd that Sun's compiler

Re: [Mesa-dev] Mesa (master): glsl: Add using statements for standard library functions.

2011-02-04 Thread José Fonseca
On Fri, 2011-02-04 at 09:58 -0800, Ian Romanick wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/03/2011 10:36 PM, Jose Fonseca wrote: This is very odd behavior from Sun's compiler -- unless we include cstdio, printf should be available, not std::printf. I think we might use

Re: [Mesa-dev] Mesa (master): glsl: Add using statements for standard library functions.

2011-02-04 Thread Vinson Lee
-Original Message- On 02/03/2011 10:36 PM, Jose Fonseca wrote: This is very odd behavior from Sun's compiler -- unless we include cstdio, printf should be available, not std::printf. I think we might use cstdio in some places. I find it odd that Sun's compiler differs from GCC,

[Mesa-dev] [Bug 29279] Define precision of float variables in the es2gears fragment shader

2011-02-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29279 Ricardo Salveti rsalv...@rsalveti.net changed: What|Removed |Added Status|RESOLVED|REOPENED

[Mesa-dev] [Bug 29279] Define precision of float variables in the es2gears fragment shader

2011-02-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29279 Ricardo Salveti rsalv...@rsalveti.net changed: What|Removed |Added Attachment #37421|0 |1 is

[Mesa-dev] [PATCH] mesa: Fix the Mesa IR copy propagation to not read past writes to the reg.

2011-02-04 Thread Eric Anholt
Fixes glsl-vs-post-increment-01. --- src/mesa/program/ir_to_mesa.cpp | 47 +- 1 files changed, 40 insertions(+), 7 deletions(-) diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp index 3794c0d..d0ec23f 100644 ---

[Mesa-dev] glXMakeCurrent crashes (was: Re: How to obtain OpenGL implementation/driver information?)

2011-02-04 Thread tom fogal
Benoit Jacob wrote: - Original Message - On Thu, Feb 3, 2011 at 4:37 PM, Benoit Jacob bja...@mozilla.com wrote: I'm trying to see how to implement selective whitelisting/blacklisting of driver versions on X11 (my use case is to whitelist drivers for Firefox). The naive approach

Re: [Mesa-dev] glXMakeCurrent crashes (was: Re: How to obtain OpenGL implementation/driver information?)

2011-02-04 Thread Benoit Jacob
- Original Message - Benoit Jacob wrote: - Original Message - On Thu, Feb 3, 2011 at 4:37 PM, Benoit Jacob bja...@mozilla.com wrote: I'm trying to see how to implement selective whitelisting/blacklisting of driver versions on X11 (my use case is to whitelist

Re: [Mesa-dev] glXMakeCurrent crashes (was: Re: How to obtain OpenGL implementation/driver information?)

2011-02-04 Thread tom fogal
Benoit Jacob bja...@mozilla.com writes: - Original Message - Benoit Jacob wrote: - Original Message - On Thu, Feb 3, 2011 at 4:37 PM, Benoit Jacob bja...@mozilla.com wrote: I'm trying to see how to implement selective whitelisting/blacklisting of driver versions

Re: [Mesa-dev] glXMakeCurrent crashes (was: Re: How to obtain OpenGL implementation/driver information?)

2011-02-04 Thread Michel Dänzer
On Fre, 2011-02-04 at 14:21 -0800, Benoit Jacob wrote: - Original Message - Benoit Jacob wrote: - Original Message - On Thu, Feb 3, 2011 at 4:37 PM, Benoit Jacob bja...@mozilla.com wrote: I'm trying to see how to implement selective whitelisting/blacklisting of

Re: [Mesa-dev] glXMakeCurrent crashes (was: Re: How to obtain OpenGL implementation/driver information?)

2011-02-04 Thread Benoit Jacob
- Original Message - On Fre, 2011-02-04 at 14:21 -0800, Benoit Jacob wrote: - Original Message - Benoit Jacob wrote: - Original Message - On Thu, Feb 3, 2011 at 4:37 PM, Benoit Jacob bja...@mozilla.com wrote: I'm trying to see how to implement

Re: [Mesa-dev] glXMakeCurrent crashes (was: Re: How to obtain OpenGL implementation/driver information?)

2011-02-04 Thread Benoit Jacob
The problem with this approach is that this is affect the startup time of my application. I am looking for a solution that is not only safe, but also fast. This could conceivably be run in parallel, though. If that eliminated the performance issue, it would remain that such a solution is a lot

Re: [Mesa-dev] How to obtain OpenGL implementation/driver information?

2011-02-04 Thread Eric Anholt
On Fri, 4 Feb 2011 08:58:31 -0800 (PST), Benoit Jacob bja...@mozilla.com wrote: - Original Message - On Thu, Feb 3, 2011 at 4:37 PM, Benoit Jacob bja...@mozilla.com wrote: Hi, I'm trying to see how to implement selective whitelisting/blacklisting of driver versions on X11

Re: [Mesa-dev] How to obtain OpenGL implementation/driver information?

2011-02-04 Thread Benoit Jacob
- Original Message - On Fri, 4 Feb 2011 08:58:31 -0800 (PST), Benoit Jacob bja...@mozilla.com wrote: - Original Message - On Thu, Feb 3, 2011 at 4:37 PM, Benoit Jacob bja...@mozilla.com wrote: Hi, I'm trying to see how to implement selective

Re: [Mesa-dev] Availability of LunarGLASS exploration: using LLVM in Mesa's compiler stack

2011-02-04 Thread John Kessenich
I started a wiki page on what to do next in the LunarGLASS project at http://code.google.com/p/lunarglass/wiki/NextSteps Discussion could be posted there at that page, or in lunarglass-de...@googlegroups.com. We'll be doing actual on-going planning and development through the code.google site,

Re: [Mesa-dev] How to obtain OpenGL implementation/driver information?

2011-02-04 Thread Jerome Glisse
On Fri, Feb 4, 2011 at 6:50 PM, Benoit Jacob bja...@mozilla.com wrote: - Original Message - On Fri, 4 Feb 2011 08:58:31 -0800 (PST), Benoit Jacob bja...@mozilla.com wrote: - Original Message - On Thu, Feb 3, 2011 at 4:37 PM, Benoit Jacob bja...@mozilla.com wrote:

Re: [Mesa-dev] glXMakeCurrent crashes (was: Re: How to obtain OpenGL implementation/driver information?)

2011-02-04 Thread James Jones
On 2/4/11 3:26 PM, Benoit Jacob bja...@mozilla.com wrote: - Original Message - On Fre, 2011-02-04 at 14:21 -0800, Benoit Jacob wrote: - Original Message - Benoit Jacob wrote: - Original Message - On Thu, Feb 3, 2011 at 4:37 PM, Benoit Jacob

Re: [Mesa-dev] How to obtain OpenGL implementation/driver information?

2011-02-04 Thread Corbin Simpson
God, I hate flying while sick. A bigger problem is that there is no good way to divine this info without actually loading the DRI driver, unless we want to reduce Linux compatibility to the same level as Win32 by only supporting the system graphics. OTOH, there are a lot of coincidental

Re: [Mesa-dev] glXMakeCurrent crashes (was: Re: How to obtain OpenGL implementation/driver information?)

2011-02-04 Thread Dave Airlie
We're doing driver blacklists on all platforms, and it tends to be quite easy on other platforms. For example, on Windows, we just read all the driver information from the registry. Couldn't X drivers likewise have some metadata stored on disk, that could be queried via some new API? I

Re: [Mesa-dev] glXMakeCurrent crashes (was: Re: How to obtain OpenGL implementation/driver information?)

2011-02-04 Thread Henri Verbeet
On 4 February 2011 23:21, Benoit Jacob bja...@mozilla.com wrote: glXDestroyContext(...) in your code. If that crashes, there's a bug in the implementation, so report it and let's get it fixed! This is for Web browsers. This would be considered a security flaw. Considering the difficulty of