[Mesa-dev] [PATCH] st/mesa: Fix recurring surfaceless contexts

2012-01-24 Thread Benjamin Franzke
A current incomplete framebuffer was incorrectly used as a st_framebuffer. When accessing st_framebuffer childs bad things happen: e.g. st_framebuffer::iface was used to check whether its an incomplete fb, instead we need to compare st_framebuffer::Base against mesa_get_incomplete_framebuffer. Bug

[Mesa-dev] [PATCH] automake: src/egl/wayland

2012-01-25 Thread Benjamin Franzke
So we can use the wayland scanner makro, which is way better than our previous runtime-pkgconfig hack. --- configs/autoconf.in |7 --- configs/default |7 --- configure.ac | 24 +++-- src/egl/dri

Re: [Mesa-dev] Mesa (master): automake: src/egl/wayland

2012-01-26 Thread Benjamin Franzke
-lxcb-glx... no >> checking expat.h usability... yes >> checking expat.h presence... yes >> checking for expat.h... yes >> checking for XML_ParserCreate in -lexpat... yes >> checking for mincore... yes >> checking for LIBUDEV... yes >> checking

Re: [Mesa-dev] [PATCH] add wayland cflags when building wayland-egl

2012-01-29 Thread Benjamin Franzke
Thanks, commited. 2012/1/29 : > From: Juan Zhao > > to fix the header file missing when building wayland-egl > --- >  src/egl/wayland/wayland-egl/Makefile.am |    3 ++- >  1 files changed, 2 insertions(+), 1 deletions(-) > > diff --git a/src/egl/wayland/wayland-egl/Makefile.am > b/src/egl/wayla

[Mesa-dev] [PATCH] st/dri: Support 24bit formats in dri2_allocate_buffer

2012-01-29 Thread Benjamin Franzke
Prior commit 576161289df68eedade591fbca4013329c9e5ded, the parameter format was bpp, thus both 24bit and 32bit formats were requested with format set to 32. Handle 24bit seperately now. Fixes RGBX formats in wayland platform for egl_dri2 (EGL_ALPHA_SIZE=0). Note: This is a candidate for the 8.0 b

Re: [Mesa-dev] [PATCH] driconf: Updated German translation

2011-08-30 Thread Benjamin Franzke
The patch has autogenerated and manual changes mixed, that should always be avoided. Changes done by "make de.po" should be a first commit, then as a second your changes. Additionally options.h needs to be regenerated, use make PYTHON2=python options.h (of course as another commit again, but that

Re: [Mesa-dev] [PATCH 3/3] state_trackers/dri/sw: Implement texture_from_pixmap.

2011-08-31 Thread Benjamin Franzke
It looks like this should be converted to a new dri_drawable hook (like allocate_textures), so the the drisw specific bits would be in sw/drisw.c (the hook in drm/dri2.c would just be a noop). This is the way the other stuff in st/dri is implemented and dri_drawable.c wouldnt need to be cloned. 20

[Mesa-dev] [PATCH] st/egl: Prepare for EGL_ALPHA_FORMAT

2011-09-01 Thread Benjamin Franzke
In preparation for wayland ALPHA_FORMAT usage, see commit 7b1d94e5d1f53ac5f59000176aea1d02fc9a1181. Changes: - New native_config surface_type bit: alpha_format_pre_bit - Introduction of native_surface_attribs (as new parameter in create_{window,pixmap}_surface) - New attrib alpha_format in n

Re: [Mesa-dev] [PATCH] st/egl: Prepare for EGL_ALPHA_FORMAT

2011-09-02 Thread Benjamin Franzke
2011/9/2 Chia-I Wu : > On Thu, Sep 1, 2011 at 5:53 PM, Benjamin Franzke > wrote: >> In preparation for wayland ALPHA_FORMAT usage, >> see commit 7b1d94e5d1f53ac5f59000176aea1d02fc9a1181. >> >> Changes: >>  - New native_config surface_type bit: alpha_

Re: [Mesa-dev] [PATCH 4/5] st/egl: correctly return configs under wayland

2011-09-08 Thread Benjamin Franzke
gs = MALLOC(2 * sizeof(*configs)); + configs = MALLOC(display->num_configs * sizeof(*configs)); if (configs) { - configs[0] = &display->config[0].base; - configs[1] = &display->config[1].base; + for (i = 0; i < display->num_configs; ++i) +

Re: [Mesa-dev] [PATCH 5/5] st/egl: add premultiplied alpha support to wayland

2011-09-08 Thread Benjamin Franzke
2011/9/8 Chia-I Wu : > From: Chia-I Wu > > Return true for NATIVE_PARAM_PREMULTIPLIED_ALPHA when all formats with > alpha support premultiplied alpha.  Currently, it means when argb32 and > argb32_pre are both supported. > --- >  .../state_trackers/egl/wayland/native_drm.c        |    8 ++-- >

Re: [Mesa-dev] [PATCH 4/5] st/egl: correctly return configs under wayland

2011-09-08 Thread Benjamin Franzke
2011/9/8 Chia-I Wu : > On Thu, Sep 8, 2011 at 3:11 PM, Benjamin Franzke > wrote: >> First thanks for taking this on. >> >> There are some things I'd like to have addtionally/differently: >> >> Supported shm formats are exposed via a "format" ev

Re: [Mesa-dev] [PATCH 5/5] st/egl: add premultiplied alpha support to wayland

2011-09-08 Thread Benjamin Franzke
2011/9/8 Chia-I Wu : > On Thu, Sep 8, 2011 at 3:13 PM, Benjamin Franzke > wrote: >> 2011/9/8 Chia-I Wu : >>> From: Chia-I Wu >>> >>> Return true for NATIVE_PARAM_PREMULTIPLIED_ALPHA when all formats with >>> alpha support premultiplied alpha.  Cu

[Mesa-dev] [PATCH 1/3] Revert "state_trackers/dri/sw: Implement texture_from_pixmap."

2011-09-09 Thread Benjamin Franzke
This reverts commit 02f1b50987c0d24da3dcc36dbb44821c20d0660c. CC: Stuart Abercrombie CC: Stéphane Marchesin --- src/gallium/state_trackers/dri/sw/dri_drawable.c | 50 +++--- 1 files changed, 7 insertions(+), 43 deletions(-) diff --git a/src/gallium/state_trackers/dri/sw/dri_d

[Mesa-dev] [PATCH 2/3] Revert "Duplicate state_tracker/dri/sw/dri_drawable.c"

2011-09-09 Thread Benjamin Franzke
This reverts commit 569bde1fa7d03fb7688d0d391b32e61e857ad44e. CC: Stuart Abercrombie CC: Stéphane Marchesin --- src/gallium/state_trackers/dri/sw/dri_drawable.c | 270 +- 1 files changed, 1 insertions(+), 269 deletions(-) mode change 100644 => 12 src/gallium/state_trac

[Mesa-dev] [PATCH 3/3] st/dri/sw: Implement texture_from_pixmap

2011-09-09 Thread Benjamin Franzke
This is a cleanup of commit 02f1b50987c0d24da3dcc36dbb44821c20d0660c. Update tex buffer using a dri_drawable hook from implemented in sw/drisw.c. This saves us the duplication of dri_drawable.c. CC: Stuart Abercrombie CC: Stéphane Marchesin --- .../state_trackers/dri/common/dri_drawable.c

Re: [Mesa-dev] implicit declaration of function wl_drm_create

2011-10-18 Thread Benjamin Franzke
2011/10/18 chris : > Dear > > Could anyone tell me where is the "wl_drm_create" function defined? I can't > find it anywhere, no definition can be found. No google information can be > searched! Why? Seems like you're compiling mesa 7.11 again wayland master, but they are incompatible. The wl_drm_

Re: [Mesa-dev] swrast tfp cleanup

2011-11-02 Thread Benjamin Franzke
2011/11/2 George Sapountzis : > Hi, > > [please cc: me in any replies] > > I rebased (with minor cleanups) the patches submitted by Benjamin > Franzke and put them at: Thanks for reminding. I wanted to wait for feedback, but there was no answer (same as for my comments on the o

Re: [Mesa-dev] [PATCH] gallium/xorg st/nv50/i915: add PIPE_BIND_CURSOR

2011-05-02 Thread Benjamin Franzke
I think in i915g the CURSOR flag should be used in i9x5_scanout_layout for the "special case for cursors" as well, instead of only checking only pt->width0 == 64 && pt->height0 == 64. 2011/5/2 Daniel Vetter : > On Sun, May 1, 2011 at 11:59 PM, Marcin Slusarz > wrote: >> We need to distinguish sur

[Mesa-dev] [PATCH] st/egl: Implement EGL_WL_bind_wayland_display for x11, drm, wayland

2011-05-06 Thread Benjamin Franzke
*wayland_bufmgr; }; /** diff --git a/src/gallium/state_trackers/egl/common/native_wayland_bufmgr.h b/src/gallium/state_trackers/egl/common/native_wayland_bufmgr.h new file mode 100644 index 000..b29fd15 --- /dev/null +++ b/src/gallium/state_trackers/egl/common/native_wayland_bufmgr.h

[Mesa-dev] [PATCH 1/3] st/dri: Support dri2 useflags in dri2_create_image

2011-05-13 Thread Benjamin Franzke
--- src/gallium/state_trackers/dri/drm/dri2.c |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/src/gallium/state_trackers/dri/drm/dri2.c b/src/gallium/state_trackers/dri/drm/dri2.c index 30326a2..e471e8e 100644 --- a/src/gallium/state_trackers/dri/drm/dri2.c +++ b/

[Mesa-dev] [PATCH 2/3] st/egl: Add support for EGL_DRM_BUFFER_USE_CURSOR_MESA

2011-05-13 Thread Benjamin Franzke
--- .../state_trackers/egl/common/egl_g3d_image.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/src/gallium/state_trackers/egl/common/egl_g3d_image.c b/src/gallium/state_trackers/egl/common/egl_g3d_image.c index e1c8316..34bb92c 100644 --- a/src/gallium/state_t

[Mesa-dev] [PATCH 3/3] r600g: Add support for PIPE_BIND_CURSOR

2011-05-13 Thread Benjamin Franzke
--- If these checks are not sufficent see this as feature request. :) --- src/gallium/drivers/r600/r600_texture.c | 17 +++-- 1 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/gallium/drivers/r600/r600_texture.c b/src/gallium/drivers/r600/r600_texture.c index 7ffe

[Mesa-dev] [PATCH 0/6] Per driver pci id lists

2011-06-06 Thread Benjamin Franzke
SET definition. Hope this suits the need for driver loaders, but also driver implementations. Benjamin Franzke (6): Add i915 & i965 pci id lists Add radeon pci id lists egl_dri2: Use external driver pci list targets/egl: Support driver name lookup using pci lists radeon: Use pciid

[Mesa-dev] [PATCH 1/6] Add i915 & i965 pci id lists

2011-06-06 Thread Benjamin Franzke
--- src/mesa/drivers/dri/intel/i915_pci_ids.h | 19 +++ src/mesa/drivers/dri/intel/i965_pci_ids.h | 27 +++ 2 files changed, 46 insertions(+), 0 deletions(-) create mode 100644 src/mesa/drivers/dri/intel/i915_pci_ids.h create mode 100644 src/mesa/drive

[Mesa-dev] [PATCH 2/6] Add radeon pci id lists

2011-06-06 Thread Benjamin Franzke
--- src/mesa/drivers/dri/radeon/r200_pci_ids.h | 22 +++ src/mesa/drivers/dri/radeon/r300_pci_ids.h | 218 + src/mesa/drivers/dri/radeon/r600_pci_ids.h | 261 ++ src/mesa/drivers/dri/radeon/radeon_pci_ids.h | 23 +++ 4 files changed, 524 inse

[Mesa-dev] [PATCH 4/6] targets/egl: Support driver name lookup using pci lists

2011-06-06 Thread Benjamin Franzke
Make use of this in drm and wayland st/egl backends. --- src/gallium/state_trackers/egl/drm/native_drm.c| 33 + .../state_trackers/egl/wayland/native_drm.c| 40 +-- src/gallium/targets/egl/egl.c | 80 +++- src/gallium/targets/e

[Mesa-dev] [PATCH 5/6] radeon: Use pciid list to generate PCI_CHIP__ defines

2011-06-06 Thread Benjamin Franzke
--- src/mesa/drivers/dri/radeon/radeon_chipset.h | 499 +- 1 files changed, 8 insertions(+), 491 deletions(-) diff --git a/src/mesa/drivers/dri/radeon/radeon_chipset.h b/src/mesa/drivers/dri/radeon/radeon_chipset.h index bd23662..0e51325 100644 --- a/src/mesa/drivers/dri

[Mesa-dev] [PATCH 6/6] r600g: Use radeon pciid list for the family lookup table

2011-06-06 Thread Benjamin Franzke
--- src/gallium/winsys/r600/drm/Makefile |1 + src/gallium/winsys/r600/drm/radeon_pciid.c | 486 +--- 2 files changed, 6 insertions(+), 481 deletions(-) diff --git a/src/gallium/winsys/r600/drm/Makefile b/src/gallium/winsys/r600/drm/Makefile index 7310734..45fd

[Mesa-dev] [PATCH 3/6] egl_dri2: Use external driver pci list

2011-06-06 Thread Benjamin Franzke
--- src/egl/drivers/dri2/Makefile |2 +- src/egl/drivers/dri2/common.c | 110 ++ src/egl/drivers/dri2/egl_dri2.h |2 + src/egl/drivers/dri2/pci_ids.h | 62 src/egl/drivers/dri2/platform_drm.c | 663 +-- 5 files changed, 176

Re: [Mesa-dev] [PATCH 0/6] Per driver pci id lists

2011-06-06 Thread Benjamin Franzke
Well radeon_drm_public.h declares radeon_drm_winsys_create(), but yea is_r3xx should be replaced. Patch attached. 2011/6/6 Alex Deucher : > On Mon, Jun 6, 2011 at 11:49 AM, Benjamin Franzke > wrote: >> We need pci id to driver-name mapping for drm and >> wayland platfor

Re: [Mesa-dev] [PATCH 0/6] Per driver pci id lists

2011-06-06 Thread Benjamin Franzke
2011/6/6 Alex Deucher : > Looks good.  Thanks.  Overall the patch set looks fine to me.  I agree > with Marek that it might be better to put the pci ids together > somewhere.  For the series: > > Reviewed-by: Alex Deucher Ok, moved the lists into include/pci_ids/, hope thats ok. Updated patch se

Re: [Mesa-dev] [PATCH 0/6] Per driver pci id lists

2011-06-06 Thread Benjamin Franzke
2011/6/6 Alex Deucher : > Sorry, I just thought of one tricky situation.  Only r600g supports > CAYMAN asics, so r600c shouldn't have the CAYMAN pci ids.  Maybe just > split the CAYMAN ids out into a new header, cayman_pci_ids.h, and > include both r600_pci_ids.h and cayman_pci_ids.h in r600g and o

Re: [Mesa-dev] [PATCH 1/6] Add i915 & i965 pci id lists

2011-06-06 Thread Benjamin Franzke
2011/6/6 Eric Anholt : > These 4 chipsets aren't part of the i915 driver. > > Other than that, thanks for taking this on!  Looks like much more > sanity, and we've talked about using something like the third argument > to avoid some of the if trees we've got around. > Ok, thanks updated. If there

[Mesa-dev] [PATCH] mapi: Fix tls with shared/es-glapi on x86-64

2011-06-07 Thread Benjamin Franzke
x86_64_entry_start needs to be bound global, in order to have the correct address in entry_get_public (seems not to be needed on x86). Otherwise addresses needed for _glapi_proc_address will be computed from some random offset (0x6400229a61058b48 in my case). --- src/mapi/mapi/entry_x86-64_tls.h

Re: [Mesa-dev] Mesa (master): egl_dri2: Use external driver pci list

2011-06-07 Thread Benjamin Franzke
d by Jeff Chua I actually forgot the conditional for it. As I dont have commit access, would someone push these fixes, available at: git://anongit.freedesktop.org/~bnf/mesa egl_dri2-fixes Benjamin Franzke (3): egl_dri2: Use libudev only if available egl_dri2: Add missing license

Re: [Mesa-dev] [PATCH] mapi: Fix tls with shared/es-glapi on x86-64

2011-06-08 Thread Benjamin Franzke
clared as extern, the compiler will generate code to lookup a global object, not a local. By declaring x86_64_entry_start as static the correct local address is loaded here. Patch attached. From 7ca323bf472004066f35dbec51791c90a671a42e Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Wed,

Re: [Mesa-dev] [PATCH] mapi: Fix tls with shared/es-glapi on x86-64

2011-06-12 Thread Benjamin Franzke
2011/6/11 Chia-I Wu : > I got this warning after applying the patch > >  ../../../src/mapi/mapi/entry_x86-64_tls.h:69:1: warning: > ‘x86_64_current_tls’ used but never defined > > Maybe the function declaration should be decorated with "extern"? Yeah, should work at least, just checked that caling

Re: [Mesa-dev] [PATCH 1/6] configure.ac: remove redundant option --enable-gallium-egl

2011-06-14 Thread Benjamin Franzke
Removing this flag seems right to me, but always building the egl state tracker when gallium and egl is enabled not. So when --with-state-trackers is also removed, we'd need a new --with-egl-drivers=auto|gallium,dri2,glx or so. The usecase is that you could choose to use st/dri together with egl_d

[Mesa-dev] [PATCH] st/dri: Invalidate drawables on context switch

2011-06-21 Thread Benjamin Franzke
--- .../state_trackers/dri/common/dri_context.c|5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/src/gallium/state_trackers/dri/common/dri_context.c b/src/gallium/state_trackers/dri/common/dri_context.c index e23c1bc..0f9e4e5 100644 --- a/src/gallium/state_track

Re: [Mesa-dev] [PATCH] st/dri: Invalidate drawables on context switch

2011-06-21 Thread Benjamin Franzke
Actually I wasnt sure, but theres nothing like that in glx/dri2_glx.c or egl_dri2. Furthermore the intel driver does sth similar. 2011/6/21 Jakob Bornecrantz : > On Tue, Jun 21, 2011 at 1:32 PM, Benjamin Franzke > wrote: >> --- >>  .../state_trackers/dri/common/dri_conte

Re: [Mesa-dev] [PATCH] st/dri: Invalidate drawables on context switch

2011-06-21 Thread Benjamin Franzke
e but doesn't this happen already > or does this fix a bug? > > Cheers Jakob. > >> 2011/6/21 Jakob Bornecrantz : >>> On Tue, Jun 21, 2011 at 1:32 PM, Benjamin Franzke >>> wrote: >>>> --- >>>>  .../state_trackers/dri/common/dri_context.

[Mesa-dev] [PATCH 0/8] GBM Graphics Buffer Manager

2011-06-22 Thread Benjamin Franzke
. We wanted to use libkms, but since that's explicitly designed to no support hw renderable buffers we have to go a different route. Benjamin Franzke (8): dri: Add dupImage to DRIimageExtension intel: Implement DRIimageExtension::dupImage st/dri: Implement DRIimageExtension::dupImage

[Mesa-dev] [PATCH 1/8] dri: Add dupImage to DRIimageExtension

2011-06-22 Thread Benjamin Franzke
--- include/GL/internal/dri_interface.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h index f022b44..21b9af6 100644 --- a/include/GL/internal/dri_interface.h +++ b/include/GL/internal/dri_interfa

[Mesa-dev] [PATCH 2/8] intel: Implement DRIimageExtension::dupImage

2011-06-22 Thread Benjamin Franzke
--- src/mesa/drivers/dri/intel/intel_screen.c | 27 ++- 1 files changed, 26 insertions(+), 1 deletions(-) diff --git a/src/mesa/drivers/dri/intel/intel_screen.c b/src/mesa/drivers/dri/intel/intel_screen.c index e915ca0..2a3a601 100644 --- a/src/mesa/drivers/dri/intel/in

[Mesa-dev] [PATCH 3/8] st/dri: Implement DRIimageExtension::dupImage

2011-06-22 Thread Benjamin Franzke
--- src/gallium/state_trackers/dri/drm/dri2.c | 19 +++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/src/gallium/state_trackers/dri/drm/dri2.c b/src/gallium/state_trackers/dri/drm/dri2.c index e471e8e..0296a78 100644 --- a/src/gallium/state_trackers/dri/drm/dr

[Mesa-dev] [PATCH 4/8] Add gbm (generic/graphics buffer manager)

2011-06-22 Thread Benjamin Franzke
t notice and this permission notice (including the next + * paragraph) shall be included in all copies or substantial portions of the + * Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES O

[Mesa-dev] [PATCH 5/8] gbm: Add dri backend

2011-06-22 Thread Benjamin Franzke
H THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + * + * Authors: + *Kristian Høgsberg + *Benjamin Franzke + */ + +#include +#include + +#include + +#include "gbm_driint.h" +#define DRIVER_MAP_DRI2_ONLY +#include "pci_ids/pci_id_driver_map.h" + +char

[Mesa-dev] [PATCH 6/8] gbm: Add gallium (drm) backend

2011-06-22 Thread Benjamin Franzke
HE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + * + * Authors: + *Benjamin Franzke + */

[Mesa-dev] [PATCH 7/8] egl_dri2: Hookup gbm as drm platform

2011-06-22 Thread Benjamin Franzke
--- configure.ac|3 + src/egl/drivers/dri2/Makefile |2 + src/egl/drivers/dri2/egl_dri2.c | 76 +++ src/egl/drivers/dri2/egl_dri2.h | 11 src/egl/drivers/dri2/platform_drm.c | 99 +-- s

[Mesa-dev] [PATCH 8/8] st/egl: Hookup gbm for drm backend

2011-06-22 Thread Benjamin Franzke
--- src/gallium/state_trackers/egl/Makefile |3 +- src/gallium/state_trackers/egl/common/egl_g3d.c | 18 +- src/gallium/state_trackers/egl/common/native.h |3 + src/gallium/state_trackers/egl/drm/modeset.c| 36 +++ src/gallium/state_trackers/egl/drm/native_drm.

Re: [Mesa-dev] [PATCH 0/8] GBM Graphics Buffer Manager

2011-06-23 Thread Benjamin Franzke
2011/6/23 Chia-I Wu : > On Wed, Jun 22, 2011 at 10:30 PM, Benjamin Franzke > wrote: >> Hi List, >> >> This series adds a graphics buffer management library which is >> targeted to be used as native (drm) platform for egl on kms or openwfd, >> and thus replaces

Re: [Mesa-dev] [PATCH 0/8] GBM Graphics Buffer Manager

2011-06-23 Thread Benjamin Franzke
2011/6/23 Chia-I Wu : > On Thu, Jun 23, 2011 at 7:46 PM, Benjamin Franzke > wrote: >> 2011/6/23 Chia-I Wu : >>> On Wed, Jun 22, 2011 at 10:30 PM, Benjamin Franzke >>> wrote: >>>> Hi List, >>>> >>>> This series adds a graphics buf

[Mesa-dev] [PATCH] r600g: Add R8G8B8A8_UNORM to evergreen colorswap table

2011-06-23 Thread Benjamin Franzke
Fixes broken glTexImage2D with format=GL_RGBA since 1a339b6c71ebab6e1a64f05b2e133022d3bbcd15 The origin for this behaviour is that r600_is_format_supported checks only against r600_state_inline.h tables not evergreens. --- src/gallium/drivers/r600/eg_state_inlines.h |1 + 1 files changed, 1 i

Re: [Mesa-dev] [PATCH 0/8] GBM Graphics Buffer Manager

2011-06-23 Thread Benjamin Franzke
2011/6/24 Chia-I Wu : > On Fri, Jun 24, 2011 at 8:38 AM, Chia-I Wu wrote: >> On Thu, Jun 23, 2011 at 8:07 PM, Benjamin Franzke >> wrote: >>> 2011/6/23 Chia-I Wu : >>>> On Thu, Jun 23, 2011 at 7:46 PM, Benjamin Franzke >>>> wrote: >>>>

Re: [Mesa-dev] [PATCH 0/8] GBM Graphics Buffer Manager

2011-06-24 Thread Benjamin Franzke
2011/6/24 Chia-I Wu : > On Fri, Jun 24, 2011 at 3:34 PM, Benjamin Franzke > wrote: >> 2011/6/24 Chia-I Wu : >>> On Fri, Jun 24, 2011 at 8:38 AM, Chia-I Wu wrote: >>>> On Thu, Jun 23, 2011 at 8:07 PM, Benjamin Franzke >>>> wrote: >>>>>

Re: [Mesa-dev] [PATCH] egl/gallium: fix build without softpipe and llvmpipe

2011-07-27 Thread Benjamin Franzke
Looks good to me too, and since there were no complaints, pushed. Thanks. 2011/7/25 Tobias Droste : > Signed-off-by: Tobias Droste > Acked-by: Jakob Bornecrantz > Reviewed-by: Marek Olšák > --- >  src/gallium/targets/egl-static/Makefile |   12 +--- >  1 files changed, 9 insertions(+), 3

[Mesa-dev] [PATCH] intel: Set ctx's drawbuffer according to drawables visual

2011-08-04 Thread Benjamin Franzke
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=39588 egl_dri2 creates contexts with a doubleBufferConfig when PIXMAP and WINDOW bit is request, so _mesa_init_color sets DrawBuffer[0] to GL_BACK. If a pixmap surface is created egl_dri2 will use a single buffer config, so MakeCurrent has to adju

Re: [Mesa-dev] [PATCH] intel: Set ctx's drawbuffer according to drawables visual

2011-08-04 Thread Benjamin Franzke
2011/8/4 Brian Paul : > On 08/04/2011 06:31 AM, Benjamin Franzke wrote: >> >> Fixes https://bugs.freedesktop.org/show_bug.cgi?id=39588 >> >> egl_dri2 creates contexts with a doubleBufferConfig when PIXMAP and >> WINDOW bit is request, so _mesa_init_color sets Dra

Re: [Mesa-dev] [PATCH] intel: Set ctx's drawbuffer according to drawables visual

2011-08-04 Thread Benjamin Franzke
2011/8/4 Brian Paul : > On 08/04/2011 07:39 AM, Benjamin Franzke wrote: >> >> 2011/8/4 Brian Paul: >>> >>> On 08/04/2011 06:31 AM, Benjamin Franzke wrote: >>>> >>>> Fixes https://bugs.freedesktop.org/show_bug.cgi?id=39588 >>>>

Re: [Mesa-dev] Mesa (master): egl/gbm: Fix EGL_DEFAULT_DISPLAY

2011-08-05 Thread Benjamin Franzke
t messages can upset, but lets keep patient. > For commits of this complexity, write descriptive messages for the sake of > others. > > -- > Chad Versace > c...@chad-versace.us > > On 08/04/2011 05:18 AM, Benjamin Franzke wrote: >> Module: Mesa >> Branch: ma

Re: [Mesa-dev] Removing GLw from the main Mesa repository

2011-08-05 Thread Benjamin Franzke
There is nothing compiled since GLW_SOURCES is not substituted by configure: Makefile.am:29 libGLw_la_SOURCES = $(GLW_SOURCES) This would need AC_SUBST([GLW_SOURCES]) in configure.ac, but thats not allowed for _SOURCES variables, see automake output: configure.ac:96: `GLW_SOURCES' includes conf

[Mesa-dev] [PATCH 1/3][RFC] egl: Native Display autodetection

2011-08-09 Thread Benjamin Franzke
EGL doesnt define howto manage different native platforms. So mesa has a builtime configurable default platform, whith non-standard envvar (EGL_PLATFORM) overwrites. This caused unneeded bugreports, when EGL_PLATFORM was forgotten. Detection is grouped into basic types of NativeDisplays (which its

[Mesa-dev] [PATCH 2/3] egl: Dont cache native platform type as static local var

2011-08-09 Thread Benjamin Franzke
With new autodetection the type may change, and a local static variable isnt sufficient as cache anymore. Reviewed-by: Kristian Høgsberg --- src/egl/main/egldisplay.c |9 - 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/egl/main/egldisplay.c b/src/egl/main/egldisp

[Mesa-dev] [PATCH 3/3] egl: Log (debug) native platform type

2011-08-09 Thread Benjamin Franzke
Reviewed-by: Kristian Høgsberg --- src/egl/main/egldisplay.c | 29 ++--- 1 files changed, 18 insertions(+), 11 deletions(-) diff --git a/src/egl/main/egldisplay.c b/src/egl/main/egldisplay.c index 5421f5f..27399c3 100644 --- a/src/egl/main/egldisplay.c +++ b/src/egl/mai

Re: [Mesa-dev] [PATCH 1/3][RFC] egl: Native Display autodetection

2011-08-09 Thread Benjamin Franzke
2011/8/10 Chia-I Wu : > On Tue, Aug 9, 2011 at 10:53 PM, Benjamin Franzke > wrote: >> EGL doesnt define howto manage different native platforms. >> So mesa has a builtime configurable default platform, >> whith non-standard envvar (EGL_PLATFORM) overwrites. >> T

Re: [Mesa-dev] [PATCH 1/3][RFC] egl: Native Display autodetection

2011-08-09 Thread Benjamin Franzke
2011/8/10 Chia-I Wu : > I'd prefer to leave out the second patch for now.  One comment below > > On Tue, Aug 9, 2011 at 10:53 PM, Benjamin Franzke > wrote: >> diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c >> index 0ba7794..5d186c6 100644 >> --- a

[Mesa-dev] [PATCH] dri2: Add __DRI_BUFFER_COUNT token

2011-08-15 Thread Benjamin Franzke
Remove definition from egl_dri2. Defining this is egl_dri2.h breaks as soon as a new dri2 buffer token is added like with commit 4501a5d6e8d00fd0d87625352ed5ba1a8861f72e. --- include/GL/internal/dri_interface.h |1 + src/egl/drivers/dri2/egl_dri2.h |2 -- 2 files changed, 1 insertions(

Re: [Mesa-dev] Mesa (master): egl: Native Display autodetection

2011-08-15 Thread Benjamin Franzke
2011/8/15 Cooper Yuan : > so, export EGL_PLATFORM=drm, is still working, right? Yes, and has a higher priority than the autodetection. > > On Mon, Aug 15, 2011 at 3:47 PM, Benjamin Franzke > wrote: >> >> Module: Mesa >> Branch: master >> Commit: 85fe9484945

Re: [Mesa-dev] [PATCHv2 13/21] android: build st/egl with android backend

2011-08-19 Thread Benjamin Franzke
2011/8/19 Chia-I Wu : > This builds the static library libmesa_st_egl from st/egl. > --- >  src/gallium/Android.mk                    |    1 + >  src/gallium/state_trackers/egl/Android.mk |   56 > + >  2 files changed, 57 insertions(+), 0 deletions(-) >  create mode 100

Re: [Mesa-dev] [PATCHv2 10/21] targets/egl-static: do not rely on libudev on Android

2011-08-19 Thread Benjamin Franzke
;radeon") == 0) { > +      struct drm_radeon_info info; > +      int ret; > + > +      *vendor_id = 0x1002; > + > +      memset(&info, 0, sizeof(info)); > +      info.request = RADEON_INFO_DEVICE_ID; > +      info.value = (long) chip_id; Just a little nitpick: value

Re: [Mesa-dev] [PATCHv2 10/21] targets/egl-static: do not rely on libudev on Android

2011-08-19 Thread Benjamin Franzke
2011/8/19 Chia-I Wu : > On Fri, Aug 19, 2011 at 5:59 PM, Benjamin Franzke > wrote: >> 2011/8/19 Chia-I Wu : >>> There is no libudev on Android.  Use DRM to get the PCI ID directly. >>> --- >>>  src/gallium/targets/egl-static/egl.c |   62 >>>

Re: [Mesa-dev] [PATCH 2/3] egl_dri2: add support for Android

2011-08-24 Thread Benjamin Franzke
2011/8/24 Chia-I Wu : > Add platform_android.c that supports _EGL_PLAFORM_ANDROID.  It works > with drm_gralloc, where back buffers of windows are backed by GEM > objects. > > In Android a native window has a queue of back buffers allocated by the > server, through drm_gralloc.  For each frame, EGL

Re: [Mesa-dev] [PATCH 2/3] egl_dri2: add support for Android

2011-08-24 Thread Benjamin Franzke
2011/8/24 Chia-I Wu : > On Wed, Aug 24, 2011 at 7:01 PM, Benjamin Franzke > wrote: >> 2011/8/24 Chia-I Wu : >>> Add platform_android.c that supports _EGL_PLAFORM_ANDROID.  It works >>> with drm_gralloc, where back buffers of windows are backed by GEM >>&g

Re: [Mesa-dev] Quick EGL questions

2012-02-09 Thread Benjamin Franzke
2012/2/9 Thomas Hellstrom : > Hi! > > I have a couple of quick EGL questions that I hope someone knows the answer > to: > > 1) I'm trying to test the vmwgfx_dri driver with EGL driver egl_dri2, > platform drm, but it doesn't seem like this > configuration supports EGL_MESA_screen_surface so basical

Re: [Mesa-dev] [PATCH 1] wayland-egl: Add api to get window/pixmap attributes (enable libva over wayland)

2012-02-23 Thread Benjamin Franzke
Hi, Sorry for not responding earlier.. There are some objections from my side: 1. These functions only cover the driver-independent lookups. But for the wl_egl_pixmap there was a need to access driver_private: http://cgit.freedesktop.org/~bnf/libva/tree/va/wayland/va_wayland.c?h=wayland T

Re: [Mesa-dev] [Patch 2] wayland-drm: export wayland-drm-client-protocol.h for installation (enable libva over wayland)

2012-02-23 Thread Benjamin Franzke
If we really want the drm protocol header to be public, i'd prefer to have it in a seperate repository. But Kristian didnt want that. But in the meantime, whats so bad in having that simple protocol file copied over? 2012/2/23 Zhao, Halley : > Resend the patch, it is required to enable libva over

[Mesa-dev] [PATCH 1/4] meta: Fix compilation without FEATURE_feedback

2012-02-29 Thread Benjamin Franzke
That is when building with --disable-opengl. Fix for commit c5f4024a793f1209b1693aed9a46be9374ba4741. CC: Chad Versace --- src/mesa/drivers/common/meta.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/mesa/drivers/common/meta.c b/src/mesa/drivers/common/meta.c

[Mesa-dev] [PATCH 2/4] meta: Fix compilation without FEATURE_EXT_transform_feedback

2012-02-29 Thread Benjamin Franzke
That is when building with --disable-opengl. Fix for commit cb045880b113b0042d8dfb7e4cdf76e6cc76c1d1. CC: Paul Berry --- src/mesa/drivers/common/meta.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/mesa/drivers/common/meta.c b/src/mesa/drivers/common/meta.c in

[Mesa-dev] [PATCH 3/4] configure: Fix egl compilation without x11 headers

2012-02-29 Thread Benjamin Franzke
We dont want eglplatform.h to typedef egl native types to x11 types, when x11 headers are not available. --- configure.ac |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/configure.ac b/configure.ac index 0caa1b1..92a0e52 100644 --- a/configure.ac +++ b/configure.ac @@ -

[Mesa-dev] [PATCH 4/4] configure: Allow compiling egl_dri2 without xcb dri2

2012-02-29 Thread Benjamin Franzke
That is only when the egl x11 platform is not choosen to be build. --- configure.ac |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/configure.ac b/configure.ac index 92a0e52..345d865 100644 --- a/configure.ac +++ b/configure.ac @@ -1418,12 +1418,13 @@ if test "x$enab

Re: [Mesa-dev] [PATCH 3/4] configure: Fix egl compilation without x11 headers

2012-03-01 Thread Benjamin Franzke
2012/3/1 Chad Versace : > On 02/29/2012 07:36 AM, Benjamin Franzke wrote: >> We dont want eglplatform.h to typedef egl native types >> to x11 types, when x11 headers are not available. >> --- >>  configure.ac |    4 >>  1 files changed, 4 insertions(+),

Re: [Mesa-dev] [PATCH 3/4] configure: Fix egl compilation without x11 headers

2012-03-05 Thread Benjamin Franzke
2012/3/1 Chad Versace : > On 03/01/2012 11:39 AM, Benjamin Franzke wrote: >> 2012/3/1 Chad Versace : >>> On 02/29/2012 07:36 AM, Benjamin Franzke wrote: >>>> We dont want eglplatform.h to typedef egl native types >>>> to x11 types, when x11 headers are

[Mesa-dev] [PATCH 1/2] gles1: Enable GL_EXT_texture_format_BGRA8888 in APIspec

2012-03-24 Thread Benjamin Franzke
The extension is already exposed for GLES1, but the APIspec doesnt allow the usage of GL_BGRA_EXT in glTex(Sub)Image2D. --- src/mesa/main/APIspec.xml |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/mesa/main/APIspec.xml b/src/mesa/main/APIspec.xml index eeae599..437b96

[Mesa-dev] [PATCH 2/2] gles: Enable the GL_EXT_read_format_bgra extension

2012-03-24 Thread Benjamin Franzke
Also fixes the usage of GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES, which may be set to a BGRA format e.g. for a MESA_FORMAT_ARGB fb. --- src/mesa/main/APIspec.xml |2 ++ src/mesa/main/extensions.c |1 + 2 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/mesa/main/APIspec

[Mesa-dev] [PATCH 1/3] targets/egl: rename pipe_radeon to pipe_r300

2010-08-22 Thread Benjamin Franzke
st/egl/x11/x11_screen.c requests a driver named r300 not radeon KNOWN ISSUE: breaks st/egl/kms/ st/egl/kms requests a pipe named "radeon" that will not be found now so why not leaving pipe_radeon there? that was possible as long we have only r300g. now ther

[Mesa-dev] [PATCH 2/3] targets/egl: add passthrough pipe pipe_radeon

2010-08-22 Thread Benjamin Franzke
load pipe_r300 or pipe_r600 depending on the chip_id needed for st/egl/kms which requests a "radeon" pipe for both: r300 and r600 cards --- src/gallium/targets/egl/Makefile | 15 ++- src/gallium/targets/egl/pipe_radeon.c | 24 2 files changed, 38 inse

[Mesa-dev] [PATCH 3/3] targets/egl: add pipe_r600

2010-08-22 Thread Benjamin Franzke
KNOWN ISSUE: eglShowScreenSurfaceMESA in st/egl/kms fails but st/egl/x11 works --- src/gallium/targets/egl/Makefile| 13 + src/gallium/targets/egl/pipe_r600.c | 27 +++ 2 files changed, 40 insertions(+), 0 deletions(-) create mode 100644 src/gallium/tar

[Mesa-dev] [PATCH] st/egl image: multiply drm buf-stride with blocksize

2010-10-31 Thread Benjamin Franzke
This Patch fixes DRMBuffer stride, which is to short when using wayland with r300g. (only one quarter of the screen has real data, with some parts left out..) Funnily, on nouveau wayland runs with and without this patch for me.. But hey, now wayland runs fine on r300g using x11-compositor and the c

[Mesa-dev] [PATCH] r600g: implement texture_get_handle (wayland working now)

2010-11-03 Thread Benjamin Franzke
This patch adds support to use eglExportDRMImageMESA with r600g. so wayland runs with its x11-compositor and clients on it... 0001-r600g-implement-texture_get_handle-needed-for-eglExp.patch Description: Binary data ___ mesa-dev mailing list mesa-dev@lis

[Mesa-dev] [PATCH] st/mesa: Expose EXT_texture_fromat_BGRA8888 for gles1/2

2011-01-15 Thread Benjamin Franzke
--- src/mesa/state_tracker/st_extensions.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index d240cab..9534cc9 100644 --- a/src/mesa/state_tracker/st_extensions.c +++ b/src/mesa/state_trac

[Mesa-dev] [PATCH 1/2] mesa: support internalFormat=GL_BGRA in TexImage2D

2011-01-17 Thread Benjamin Franzke
internalFormat=GL_BGRA is only allowed with gles1/2 and GL_EXT_texture_format_BGRA enabled. --- src/mesa/main/texformat.c |4 src/mesa/main/teximage.c |9 + src/mesa/main/texparam.c |7 +-- src/mesa/main/texstate.c |1 + 4 files changed, 19 insertions(+), 2

[Mesa-dev] [PATCH 2/2] st/mesa: support internalFormat=GL_BGRA in textures

2011-01-17 Thread Benjamin Franzke
--- src/mesa/state_tracker/st_format.c | 11 ++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/src/mesa/state_tracker/st_format.c b/src/mesa/state_tracker/st_format.c index 2e0a664..a532e08 100644 --- a/src/mesa/state_tracker/st_format.c +++ b/src/mesa/state_tracker/st

Re: [Mesa-dev] [PATCH 1/2] mesa: support internalFormat=GL_BGRA in TexImage2D

2011-01-22 Thread Benjamin Franzke
format in gles' glTexImage2D. From c32e2399cbda229c3e5fb0943c45dcb5ef89ba32 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Fri, 21 Jan 2011 14:24:11 +0100 Subject: [PATCH 1/4] mesa: allow internalFormat=GL_BGRA_EXT in TexImage2D --- src/mesa/main/teximage.c |9 + 1 fi

[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 b/include/GL/in

[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 a/src/gallium/stat

[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 --- a/src/mesa/drivers/dri/intel/

[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 b/src/gallium/state_trackers/egl/common/na

[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 46938f

  1   2   >