Re: [Mesa-dev] swrast tfp cleanup

2011-11-02 Thread Benjamin Franzke
2011/11/2 George Sapountzis gsapount...@gmail.com: 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

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 tdro...@gmx.de: Signed-off-by: Tobias Droste tdro...@gmx.de Acked-by: Jakob Bornecrantz wallbra...@gmail.com Reviewed-by: Marek Olšák mar...@gmail.com ---  

[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

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

2011-08-04 Thread Benjamin Franzke
2011/8/4 Brian Paul bri...@vmware.com: 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 DrawBuffer[0] to GL_BACK

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

2011-08-04 Thread Benjamin Franzke
2011/8/4 Brian Paul bri...@vmware.com: On 08/04/2011 07:39 AM, Benjamin Franzke wrote: 2011/8/4 Brian Paulbri...@vmware.com: 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

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

2011-08-05 Thread Benjamin Franzke
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: master Commit: 32f4cf38085e4056b8e4a9fc78fea28897a1d05f

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

[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

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

2011-08-09 Thread Benjamin Franzke
Reviewed-by: Kristian Høgsberg k...@bitplanet.net --- 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 ---

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

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

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

2011-08-09 Thread Benjamin Franzke
2011/8/10 Chia-I Wu olva...@gmail.com: 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 benjaminfran...@googlemail.com wrote: diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c index 0ba7794..5d186c6 100644

[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

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

2011-08-15 Thread Benjamin Franzke
2011/8/15 Cooper Yuan coopery...@gmail.com: 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 b...@kemper.freedesktop.org wrote: Module: Mesa Branch: master Commit

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 olva...@gmail.com: 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(-)  

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

2011-08-19 Thread Benjamin Franzke
is of type uint64_t, so the cast should rather be to an unsigned type. Besides that: Reviewed-by: Benjamin Franzke benjaminfran...@googlemail.com +      ret = drmCommandWriteRead(fd, DRM_RADEON_INFO, info, sizeof(info)); +      if (ret) { +         _eglLog(_EGL_WARNING, failed to get info

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 olva...@gmail.com: On Fri, Aug 19, 2011 at 5:59 PM, Benjamin Franzke benjaminfran...@googlemail.com wrote: 2011/8/19 Chia-I Wu olva...@gmail.com: 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 olva...@gmail.com: 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

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

2011-08-24 Thread Benjamin Franzke
2011/8/24 Chia-I Wu olva...@gmail.com: On Wed, Aug 24, 2011 at 7:01 PM, Benjamin Franzke benjaminfran...@googlemail.com wrote: 2011/8/24 Chia-I Wu olva...@gmail.com: Add platform_android.c that supports _EGL_PLAFORM_ANDROID.  It works with drm_gralloc, where back buffers of windows are backed

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.

[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

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

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

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

2011-09-08 Thread Benjamin Franzke
*(*create_buffer)(struct wayland_display *display,                                       struct wayland_surface *surface,                                       enum native_attachment attachment); -- 1.7.5.4 From b903cf0b74038e932404214afb658cb6e20b0238 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke

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 olva...@gmail.com: From: Chia-I Wu o...@lunarg.com 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. ---  

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 olva...@gmail.com: On Thu, Sep 8, 2011 at 3:11 PM, Benjamin Franzke benjaminfran...@googlemail.com 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 event as well (like

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 olva...@gmail.com: On Thu, Sep 8, 2011 at 3:13 PM, Benjamin Franzke benjaminfran...@googlemail.com wrote: 2011/9/8 Chia-I Wu olva...@gmail.com: From: Chia-I Wu o...@lunarg.com Return true for NATIVE_PARAM_PREMULTIPLIED_ALPHA when all formats with alpha support

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

2011-10-18 Thread Benjamin Franzke
2011/10/18 chris wwzbw...@163.com: 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.

[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 there

[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

[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

[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] [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 +++

[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 +++

[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.

[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 +++--

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

2012-01-26 Thread Benjamin Franzke
/wayland-drm/protocol')' Jose - Original Message - Module: Mesa Branch: master Commit: 8b902056d53e0e14f7d58ac7f95091ab06abc72e URL:     http://cgit.freedesktop.org/mesa/mesa/commit/?id=8b902056d53e0e14f7d58ac7f95091ab06abc72e Author: Benjamin Franzke benjaminfran...@googlemail.com

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

2012-01-29 Thread Benjamin Franzke
Thanks, commited. 2012/1/29 juan.j.z...@linux.intel.com: From: Juan Zhao juan.j.z...@linux.intel.com 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

[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

Re: [Mesa-dev] Quick EGL questions

2012-02-09 Thread Benjamin Franzke
2012/2/9 Thomas Hellstrom thellst...@vmware.com: 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

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

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 halley.z...@intel.com: Resend the patch, it is required

[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 c...@chad-versace.us --- src/mesa/drivers/common/meta.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/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 stereotype...@gmail.com --- src/mesa/drivers/common/meta.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/mesa/drivers/common/meta.c

[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

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

2012-03-05 Thread Benjamin Franzke
2012/3/1 Chad Versace chad.vers...@linux.intel.com: On 03/01/2012 11:39 AM, Benjamin Franzke wrote: 2012/3/1 Chad Versace chad.vers...@linux.intel.com: 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

[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

[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

[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
100644 index 000..1d6efda --- /dev/null +++ b/src/gallium/state_trackers/egl/wayland/native_wayland.c @@ -0,0 +1,569 @@ +/* + * Mesa 3-D graphics library + * Version: 7.11 + * + * Copyright (C) 2011 Benjamin Franzke benjaminfran...@googlemail.com + * + * Permission is hereby granted, free

[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
WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + * + * Authors: + *Kristian Høgsberg k...@bitplanet.net + *Benjamin Franzke benjaminfran...@googlemail.com + */ + +#include stdlib.h +#include string.h +#include limits.h +#include dlfcn.h +#include errno.h +#include unistd.h + +#include

[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 +++

[Mesa-dev] [PATCH] st/mesa: Fix surfaceless opengl with non-dummy contexts

2011-02-08 Thread Benjamin Franzke
main/context.c:check_complatible() detecs an incomplete framebuffer using its pointer, so do not copy it. This should fix https://bugs.freedesktop.org/show_bug.cgi?id=34042 --- src/mesa/state_tracker/st_manager.c | 15 +-- 1 files changed, 5 insertions(+), 10 deletions(-) diff

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 dan...@ffwll.ch: On Sun, May 1, 2011 at 11:59 PM, Marcin Slusarz marcin.slus...@gmail.com

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

2011-05-06 Thread Benjamin Franzke
/common/native_wayland_bufmgr.h @@ -0,0 +1,46 @@ +/* + * Mesa 3-D graphics library + * Version: 7.11 + * + * Copyright (C) 2011 Benjamin Franzke benjaminfran...@googlemail.com + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated

[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 +++

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

[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

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 alexdeuc...@gmail.com: On Mon, Jun 6, 2011 at 11:49 AM, Benjamin Franzke benjaminfran...@googlemail.com wrote: We need pci id to driver-name mapping for drm

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

2011-06-06 Thread Benjamin Franzke
2011/6/6 Alex Deucher alexdeuc...@gmail.com: 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 alexdeuc...@gmail.com Ok, moved the lists into

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

2011-06-06 Thread Benjamin Franzke
2011/6/6 Alex Deucher alexdeuc...@gmail.com: 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

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

2011-06-06 Thread Benjamin Franzke
2011/6/6 Eric Anholt e...@anholt.net: 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.

[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] [PATCH] mapi: Fix tls with shared/es-glapi on x86-64

2011-06-08 Thread Benjamin Franzke
. But in entry_get_public its declared 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

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 wallbra...@gmail.com: On Tue, Jun 21, 2011 at 1:32 PM, Benjamin Franzke benjaminfran...@googlemail.com wrote: ---  .../state_trackers

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

2011-06-21 Thread Benjamin Franzke
:40 PM, Benjamin Franzke benjaminfran...@googlemail.com wrote: Actually I wasnt sure, but theres nothing like that in glx/dri2_glx.c or egl_dri2. Furthermore the intel driver does sth similar. I was talking about st/mesa (GL), I'm not to familiar with the st_manager.c and/or the drawable code

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

2011-06-23 Thread Benjamin Franzke
2011/6/23 Chia-I Wu olva...@gmail.com: On Wed, Jun 22, 2011 at 10:30 PM, Benjamin Franzke benjaminfran...@googlemail.com 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 olva...@gmail.com: On Thu, Jun 23, 2011 at 7:46 PM, Benjamin Franzke benjaminfran...@googlemail.com wrote: 2011/6/23 Chia-I Wu olva...@gmail.com: On Wed, Jun 22, 2011 at 10:30 PM, Benjamin Franzke benjaminfran...@googlemail.com wrote: Hi List, This series adds

[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

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

2011-06-24 Thread Benjamin Franzke
2011/6/24 Chia-I Wu olva...@gmail.com: On Fri, Jun 24, 2011 at 8:38 AM, Chia-I Wu olva...@gmail.com wrote: On Thu, Jun 23, 2011 at 8:07 PM, Benjamin Franzke benjaminfran...@googlemail.com wrote: 2011/6/23 Chia-I Wu olva...@gmail.com: On Thu, Jun 23, 2011 at 7:46 PM, Benjamin Franzke