[Mesa-dev] [PATCH 2/3] Add dri image entry point for creating image from fd

2013-02-27 Thread Kristian Høgsberg
--- include/GL/internal/dri_interface.h| 14 +++- src/mesa/drivers/dri/intel/intel_regions.c | 33 +++ src/mesa/drivers/dri/intel/intel_regions.h | 6 src/mesa/drivers/dri/intel/intel_screen.c | 53 -- 4 files changed, 102

[Mesa-dev] [PATCH 3/3] wayland: Add prime fd passing as a buffer sharing mechanism

2013-02-27 Thread Kristian Høgsberg
--- src/egl/drivers/dri2/egl_dri2.c | 27 --- src/egl/drivers/dri2/egl_dri2.h | 1 + src/egl/drivers/dri2/platform_wayland.c | 69 ++--- src/egl/wayland/wayland-drm/wayland-drm.c | 40 ++---

Re: [Mesa-dev] [RFC 12/13] i965: support for YUV formatted external textures

2013-02-27 Thread Kristian Høgsberg
On Wed, Feb 27, 2013 at 8:15 PM, Ian Romanick i...@freedesktop.org wrote: On 02/27/2013 03:41 PM, Kristian Høgsberg wrote: On Wed, Feb 27, 2013 at 2:32 AM, Pohjolainen, Topi topi.pohjolai...@intel.com wrote: On Tue, Feb 26, 2013 at 12:28:14PM -0500, Kristian H?gsberg wrote: On Tue, Feb 26

Re: [Mesa-dev] [RFC 10/13] dri: introduce YVU420 (YV12)

2013-02-26 Thread Kristian Høgsberg
On Tue, Feb 26, 2013 at 8:19 AM, Topi Pohjolainen topi.pohjolai...@intel.com wrote: Signed-off-by: Topi Pohjolainen topi.pohjolai...@intel.com --- include/GL/internal/dri_interface.h |1 + src/mesa/drivers/dri/intel/intel_screen.c |5 + 2 files changed, 6 insertions(+)

Re: [Mesa-dev] [RFC 12/13] i965: support for YUV formatted external textures

2013-02-26 Thread Kristian Høgsberg
On Tue, Feb 26, 2013 at 8:19 AM, Topi Pohjolainen topi.pohjolai...@intel.com wrote: Namely YUV420, YVU420 (YV12) and NV12. Here one extends the shader program with instructions that sample the separate Y- and U/V-planes and convert the YUV to RGB as specified by ITU-R BT.601. Packed formats

Re: [Mesa-dev] [PATCH] egl/dri: Don't invoke dri2_dpy-flush if it's NULL.

2013-02-07 Thread Kristian Høgsberg
On Thu, Feb 7, 2013 at 3:37 AM, Jose Fonseca jfons...@vmware.com wrote: - Original Message - On Wed, Feb 6, 2013 at 4:30 PM, Kristian Høgsberg k...@bitplanet.net wrote: On Tue, Feb 5, 2013 at 8:43 AM, jfons...@vmware.com wrote: From: José Fonseca jfons...@vmware.com I'd like

Re: [Mesa-dev] [PATCH] egl/dri: Don't invoke dri2_dpy-flush if it's NULL.

2013-02-06 Thread Kristian Høgsberg
On Tue, Feb 5, 2013 at 8:43 AM, jfons...@vmware.com wrote: From: José Fonseca jfons...@vmware.com I'd like to test Mesa OpenGL ES along side with NVIDIA libGL drivers. But without this change, I get a NULL pointer dereference. Which DRI driver doesn't support the flush extension? EGL is

Re: [Mesa-dev] [PATCH] egl/dri: Don't invoke dri2_dpy-flush if it's NULL.

2013-02-06 Thread Kristian Høgsberg
On Wed, Feb 6, 2013 at 4:30 PM, Kristian Høgsberg k...@bitplanet.net wrote: On Tue, Feb 5, 2013 at 8:43 AM, jfons...@vmware.com wrote: From: José Fonseca jfons...@vmware.com I'd like to test Mesa OpenGL ES along side with NVIDIA libGL drivers. But without this change, I get a NULL pointer

Re: [Mesa-dev] [PATCH V7 8/8] intel: implement create image from texture

2013-01-30 Thread Kristian Høgsberg
On Wed, Jan 30, 2013 at 03:40:26PM +0200, Abdiel Janulgue wrote: Save miptree level info to DRIImage: - Appropriately-aligned base offset pointing to the image - Additional x/y adjustment offsets from above. In non-tile-aligned surface cases where resolving back to the original image

Re: [Mesa-dev] [PATCH 9.0 stable branch] egl/wayland: Destroy the pending buffer callback with the egl surface

2013-01-22 Thread Kristian Høgsberg
platform code was heavily changed in master for the implementation of the EGL_EXT_buffer_age extension, so this bug does not exist there neither does this patch apply. Looks good to me. Reviewed-by: Kristian Høgsberg k...@bitplanet.net Thanks, Ander src/egl/drivers/dri2/egl_dri2.h

Re: [Mesa-dev] [PATCH v2 3/3] egl/wayland: Implement EGL_EXT_buffer_age

2013-01-14 Thread Kristian Høgsberg
On Mon, Jan 14, 2013 at 03:50:22PM +0200, Ander Conselvan de Oliveira wrote: On 01/09/2013 04:45 PM, Kristian Høgsberg wrote: --- src/egl/drivers/dri2/platform_wayland.c | 25 - 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/src/egl/drivers/dri2

[Mesa-dev] EGL_buffer_age v2

2013-01-09 Thread Kristian Høgsberg
Hi, I committed the extension boilerplate, the eglext.h update and the misc wayland egl fixes. What's left is the EGL_buffer_age implementation for drm and wayland platforms as well as the wayland buffer management refactoring. What's new in these patches is that we now update buffer age when

[Mesa-dev] [PATCH v2 1/3] egl/gbm: Implement EGL_EXT_buffer_age

2013-01-09 Thread Kristian Høgsberg
--- src/egl/drivers/dri2/egl_dri2.h |1 + src/egl/drivers/dri2/platform_drm.c | 23 +++ 2 files changed, 24 insertions(+) diff --git a/src/egl/drivers/dri2/egl_dri2.h b/src/egl/drivers/dri2/egl_dri2.h index 4b63997..eb8c06e 100644 ---

[Mesa-dev] [PATCH v2 2/3] egl/wayland: Pull color buffers from dri2_surf-color_buffers pool

2013-01-09 Thread Kristian Høgsberg
We used to keep the color buffers in the dri_buffers array and swap __DRI_BUFFER_BACK_LEFT and __DRI_BUFFER_FRONT_LEFT around there and swap third_buffer in in case we needed to triple buffer. That gets a little fidgety with all the swaps, so lets use the color_buffers pool like the gbm platform

[Mesa-dev] [PATCH v2 3/3] egl/wayland: Implement EGL_EXT_buffer_age

2013-01-09 Thread Kristian Høgsberg
--- src/egl/drivers/dri2/platform_wayland.c | 25 - 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c index 5b5c849..e9a66af 100644 ---

Re: [Mesa-dev] [PATCH] wayland: Don't cancel a roundtrip when any event is received

2013-01-03 Thread Kristian Høgsberg
On Tue, Dec 25, 2012 at 01:01:08PM +0100, Jonas Ådahl wrote: Since wl_display_dispatch_queue() returns the number of processed events or -1 on error, only cancel the roundtrip if an -1 is returned. This also fixes a potential memory corruption bug happening when the roundtrip does an early

Re: [Mesa-dev] [PATCH 6/8] egl/wayland: Pull color buffers from dri2_surf-color_buffers pool

2013-01-03 Thread Kristian Høgsberg
On Thu, Dec 20, 2012 at 02:56:13PM -0200, Ander Conselvan de Oliveira wrote: 2012/12/14 Kristian Høgsberg k...@bitplanet.net We used to keep the color buffers in the dri_buffers array and swap __DRI_BUFFER_BACK_LEFT and __DRI_BUFFER_FRONT_LEFT around there and swap third_buffer in in case

Re: [Mesa-dev] [PATCH 7/8] egl/wayland: Implement EGL_EXT_buffer_age

2013-01-03 Thread Kristian Høgsberg
thing for the gbm backend, although there this would be only for clarity, since we don't destroy the third buffer and gbm does not support surface resizing. Yeah, good point. Kristian Cheers, Ander On 12/14/2012 03:05 AM, Kristian Høgsberg wrote: --- src/egl/drivers/dri2

Re: [Mesa-dev] [PATCH 3/8] egl/gbm: Implement EGL_EXT_buffer_age

2012-12-19 Thread Kristian Høgsberg
On Sat, Dec 15, 2012 at 2:44 AM, Kristian Høgsberg hoegsb...@gmail.com wrote: On Fri, Dec 14, 2012 at 04:54:32PM -0800, Eric Anholt wrote: Kristian Høgsberg k...@bitplanet.net writes: --- src/egl/drivers/dri2/egl_dri2.h |1 + src/egl/drivers/dri2/platform_drm.c | 23

Re: [Mesa-dev] [PATCH 3/8] egl/gbm: Implement EGL_EXT_buffer_age

2012-12-19 Thread Kristian Høgsberg
On Wed, Dec 19, 2012 at 11:17 PM, Eric Anholt e...@anholt.net wrote: Kristian Høgsberg k...@bitplanet.net writes: On Sat, Dec 15, 2012 at 2:44 AM, Kristian Høgsberg hoegsb...@gmail.com wrote: On Fri, Dec 14, 2012 at 04:54:32PM -0800, Eric Anholt wrote: Kristian Høgsberg k...@bitplanet.net

Re: [Mesa-dev] Mesa master branch: forced update

2012-12-14 Thread Kristian Høgsberg
:15 AM, Kristian Høgsberg k...@bitplanet.net wrote: [snip] Chia-I hasn't been active for a long time and the suddenly pushes a forced update of the repo, I don't think anything was compromised or any history lost. The freedesktop.org account has been disabled until we hear back from Chia-I

Re: [Mesa-dev] [PATCH 3/8] egl/gbm: Implement EGL_EXT_buffer_age

2012-12-14 Thread Kristian Høgsberg
On Fri, Dec 14, 2012 at 04:54:32PM -0800, Eric Anholt wrote: Kristian Høgsberg k...@bitplanet.net writes: --- src/egl/drivers/dri2/egl_dri2.h |1 + src/egl/drivers/dri2/platform_drm.c | 23 +++ 2 files changed, 24 insertions(+) diff --git a/src/egl

Re: [Mesa-dev] [PATCH 5/8] egl/wayland: Remove confusing comment about front buffer rendering

2012-12-14 Thread Kristian Høgsberg
On Fri, Dec 14, 2012 at 04:57:07PM -0800, Ian Romanick wrote: On 12/13/2012 09:05 PM, Kristian Høgsberg wrote: At least the way I build, this will cause unused parameter warnings. Oh, right, I'll add the (void) driDrawable back in. Kristian --- src/egl/drivers/dri2/platform_wayland.c

[Mesa-dev] [PATCH 1/8] egl: Update to revision 19987 of eglext.h

2012-12-13 Thread Kristian Høgsberg
This pulls in EGL_EXT_buffer_age. --- include/EGL/eglext.h | 72 ++ 1 file changed, 67 insertions(+), 5 deletions(-) diff --git a/include/EGL/eglext.h b/include/EGL/eglext.h index a5c9009..b2b5a80 100644 --- a/include/EGL/eglext.h +++

[Mesa-dev] [PATCH 2/8] egl: Add extension infrastructure for EGL_EXT_buffer_age

2012-12-13 Thread Kristian Høgsberg
--- src/egl/main/eglapi.h |6 ++ src/egl/main/egldisplay.h |1 + src/egl/main/eglmisc.c|1 + src/egl/main/eglsurface.c |8 4 files changed, 16 insertions(+) diff --git a/src/egl/main/eglapi.h b/src/egl/main/eglapi.h index ec3ad7e..85b8f1a 100644 ---

[Mesa-dev] [PATCH 3/8] egl/gbm: Implement EGL_EXT_buffer_age

2012-12-13 Thread Kristian Høgsberg
--- src/egl/drivers/dri2/egl_dri2.h |1 + src/egl/drivers/dri2/platform_drm.c | 23 +++ 2 files changed, 24 insertions(+) diff --git a/src/egl/drivers/dri2/egl_dri2.h b/src/egl/drivers/dri2/egl_dri2.h index be359d3..fa2a9f3 100644 ---

[Mesa-dev] [PATCH 4/8] egl_dri2: Remove unused struct dri2_egl_buffer from header file

2012-12-13 Thread Kristian Høgsberg
--- src/egl/drivers/dri2/egl_dri2.h |5 - 1 file changed, 5 deletions(-) diff --git a/src/egl/drivers/dri2/egl_dri2.h b/src/egl/drivers/dri2/egl_dri2.h index fa2a9f3..eb8c06e 100644 --- a/src/egl/drivers/dri2/egl_dri2.h +++ b/src/egl/drivers/dri2/egl_dri2.h @@ -205,11 +205,6 @@ struct

[Mesa-dev] [PATCH 5/8] egl/wayland: Remove confusing comment about front buffer rendering

2012-12-13 Thread Kristian Høgsberg
--- src/egl/drivers/dri2/platform_wayland.c | 12 1 file changed, 12 deletions(-) diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c index ba54286..260a80d 100644 --- a/src/egl/drivers/dri2/platform_wayland.c +++

[Mesa-dev] [PATCH 6/8] egl/wayland: Pull color buffers from dri2_surf-color_buffers pool

2012-12-13 Thread Kristian Høgsberg
We used to keep the color buffers in the dri_buffers array and swap __DRI_BUFFER_BACK_LEFT and __DRI_BUFFER_FRONT_LEFT around there and swap third_buffer in in case we needed to triple buffer. That gets a little fidgety with all the swaps, so lets use the color_buffers pool like the gbm platform

[Mesa-dev] [PATCH 7/8] egl/wayland: Implement EGL_EXT_buffer_age

2012-12-13 Thread Kristian Høgsberg
--- src/egl/drivers/dri2/platform_wayland.c | 21 + 1 file changed, 21 insertions(+) diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c index 3c6bdd9..6f8f3b0 100644 --- a/src/egl/drivers/dri2/platform_wayland.c +++

[Mesa-dev] [PATCH 8/8] egl/wayland: Remove kooky flush code

2012-12-13 Thread Kristian Høgsberg
We used to have to jump through hoops to call glFlush at swap buffer time, but the flush extension made that unnecessary a long time ago. --- src/egl/drivers/dri2/platform_wayland.c |6 -- 1 file changed, 6 deletions(-) diff --git a/src/egl/drivers/dri2/platform_wayland.c

Re: [Mesa-dev] [PATCH mesa] egl/wayland: Don't invalidate drawable on swap buffers

2012-11-30 Thread Kristian Høgsberg
On Fri, Nov 30, 2012 at 05:41:02PM +0200, Ander Conselvan de Oliveira wrote: We used to invalidate the drawable after a call to eglSwapBuffers(), so that a wl_egl_window_resize() would take effect for the next frame. However, that leads to calling dri2_get_buffers() when eglMakeCurrent() is

Re: [Mesa-dev] [PATCH mesa] egl/wayland: Don't invalidate drawable on swap buffers

2012-11-30 Thread Kristian Høgsberg
On Fri, Nov 30, 2012 at 11:07:09AM -0500, Kristian Høgsberg wrote: On Fri, Nov 30, 2012 at 05:41:02PM +0200, Ander Conselvan de Oliveira wrote: We used to invalidate the drawable after a call to eglSwapBuffers(), so that a wl_egl_window_resize() would take effect for the next frame. However

[Mesa-dev] [PATCH] egl: Only enable GLX backend if X11 EGL platform is enabled

2012-11-29 Thread Kristian Høgsberg
We don't want to compile in a bunch of X11 dependencies in libEGL if we can't run EGL on X11. --- configure.ac |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index f484dc4..6ccd935 100644 --- a/configure.ac +++ b/configure.ac @@ -1273,10

Re: [Mesa-dev] [PATCH] wayland: Destroy frame callback when destroying surface

2012-10-29 Thread Kristian Høgsberg
On Sun, Oct 28, 2012 at 12:50:12AM +0200, Jonas Ådahl wrote: If a frame callback is not destroyed when destroying a surface, its handler function will be invoked if the surface was destroyed after the callback was requested but before it was invoked, causing a write on free:ed memory. This

Re: [Mesa-dev] [PATCH 06/19] glx: Unifdef some dri_interface.h defines.

2012-09-26 Thread Kristian Høgsberg
On Tue, Sep 25, 2012 at 10:50 PM, Eric Anholt e...@anholt.net wrote: dri_interface.h comes from our tree, so why litter our tree with ifdefs for older versions of it? Yeah, lets get rid of those, it's a bad habit carried over form the aiglx code. Reviewed-by: Kristian Høgsberg

Re: [Mesa-dev] Proposal for an Updated Linux OpenGL ABI

2012-09-13 Thread Kristian Høgsberg
On Wed, Sep 12, 2012 at 5:09 PM, Andy Ritger arit...@nvidia.com wrote: There was some recent Khronos discussion about updating the OpenGL Implementer's Guide for Linux, to which Ian Romanick noted that this topic will be discussed at XDC as part of the broad Discuss the future of EGL, GLX, and

Re: [Mesa-dev] [PATCH v2 07/12] mesa: glGet: simplify the 'enum not found' condition

2012-09-11 Thread Kristian Høgsberg
On Tue, Sep 11, 2012 at 11:47 AM, Brian Paul bri...@vmware.com wrote: On 09/10/2012 12:41 AM, Imre Deak wrote: When traversing the hash table looking up an enum that is invalid we eventually reach the first element in the descriptor array. By looking at the type of that element, which is

Re: [Mesa-dev] [PATCH 2/2] intel: Support new dri image interface v2

2012-08-31 Thread Kristian Høgsberg
here too: Tested-by: Kristian Høgsberg k...@bitplanet.net Reviewed-by: Kristian Høgsberg k...@bitplanet.net thanks, Kristian --- src/mesa/drivers/dri/intel/intel_regions.h | 26 ++ src/mesa/drivers/dri/intel/intel_screen.c | 135 ++-- 2 files changed, 153

Re: [Mesa-dev] [PATCH demos] eglkms: Track mesa function rename.

2012-08-13 Thread Kristian Høgsberg
Just commited it, thanks. Kristian On Mon, Aug 13, 2012 at 2:56 AM, Scott Moreau ore...@gmail.com wrote: Hi. I tried to build mesa demos today but this problem still exists. Is there anything that can be done so demos builds against latest mesa? Thanks, Scott

Re: [Mesa-dev] [PATCH 2/2] gbm: Use libkms to work around missing cursor support in dri drivers

2012-08-13 Thread Kristian Høgsberg
ja...@vmware.com That looks good, using libkms is a fine way to handle this as long as it doesn't leak through the gbm API. Using libkms or dumb_bo ioctl entirely for cursor gbm bo's would be fine too. Reviewed-by: Kristian Høgsberg k...@bitplanet.net --- configure.ac

Re: [Mesa-dev] [PATCH 1/2] egl_dri2: Avoid using createSubImage when not neccassery

2012-08-13 Thread Kristian Høgsberg
On Mon, Aug 13, 2012 at 10:16 AM, Jakob Bornecrantz ja...@vmware.com wrote: Makes it possible to run Wayland on Gallium drivers. At least a bit until it tries to use gbm cursor bo's. Reviewed-by: Kristian Høgsberg k...@bitplanet.net Signed-off-by: Jakob Bornecrantz ja...@vmware.com --- src

Re: [Mesa-dev] [PATCH 2/2] gbm: Use libkms to work around missing cursor support in dri drivers

2012-08-13 Thread Kristian Høgsberg
On Mon, Aug 13, 2012 at 1:00 PM, Scott Moreau ore...@gmail.com wrote: On Mon, Aug 13, 2012 at 10:51 AM, Kristian Høgsberg k...@bitplanet.net wrote: On Mon, Aug 13, 2012 at 10:16 AM, Jakob Bornecrantz ja...@vmware.com wrote: Uses libkms to work around missing dri image cursor support. One

Re: [Mesa-dev] [PATCH 3/5] egl_dri2: Refactor dereference of dri2_ctx_shared

2012-08-03 Thread Kristian Høgsberg
On Fri, Aug 3, 2012 at 2:58 PM, Chad Versace chad.vers...@linux.intel.com wrote: On 08/01/2012 05:21 PM, Ian Romanick wrote: From: Ian Romanick ian.d.roman...@intel.com Signed-off-by: Ian Romanick ian.d.roman...@intel.com Cc: Kristian Høgsberg k...@bitplanet.net Cc: Matt Turner matts

Re: [Mesa-dev] [PATCH 4/5] egl: Replace KHR_surfaceless_* extensions with KHR_surfaceless_context

2012-08-02 Thread Kristian Høgsberg
with EGL_KHR_surfaceless_context since that extension actually exists. Looks good to me, thanks Ian. Reviewed-by: Kristian Høgsberg k...@bitplanet.net Signed-off-by: Ian Romanick ian.d.roman...@intel.com Cc: Kristian Høgsberg k...@bitplanet.net Cc: Matt Turner matts...@gmail.com --- src/egl

Re: [Mesa-dev] [PATCH 3/5] egl_dri2: Refactor dereference of dri2_ctx_shared

2012-08-02 Thread Kristian Høgsberg
On Wed, Aug 01, 2012 at 05:21:36PM -0700, Ian Romanick wrote: From: Ian Romanick ian.d.roman...@intel.com Signed-off-by: Ian Romanick ian.d.roman...@intel.com Cc: Kristian Høgsberg k...@bitplanet.net Cc: Matt Turner matts...@gmail.com --- src/egl/drivers/dri2/egl_dri2.c | 11

Re: [Mesa-dev] [PATCH] gbm : Fix build for wayland include

2012-07-30 Thread Kristian Høgsberg
On Thu, Jul 19, 2012 at 01:54:05PM +0900, Elvis Lee wrote: backends/gbm_dri.c fails to find wayland-server.h. Thanks, pushed. Signed-off-by: Elvis Lee kwangwoong@lge.com --- src/gbm/Makefile.am |1 + 1 file changed, 1 insertion(+) diff --git a/src/gbm/Makefile.am

Re: [Mesa-dev] Can --enable-shared-glapi die?

2012-07-23 Thread Kristian Høgsberg
On Mon, Jul 23, 2012 at 9:08 PM, Matt Turner matts...@gmail.com wrote: On Mon, Jul 23, 2012 at 3:15 PM, Kenneth Graunke kenn...@whitecape.org wrote: On 07/23/2012 12:59 PM, Ian Romanick wrote: Perhaps someone can refresh my memory as to what exactly this option does? Can we make this the

Re: [Mesa-dev] [PATCH demos] eglkms: Track mesa function rename.

2012-07-19 Thread Kristian Høgsberg
On Thu, Jul 19, 2012 at 8:39 AM, Michel Dänzer mic...@daenzer.net wrote: On Don, 2012-07-19 at 01:15 -0600, Scott Moreau wrote: gbm_bo_get_pitch was renamed to gbm_bo_get_stride. eglkms fails to build against mesa master without this. --- src/egl/opengl/eglkms.c |2 +- 1 file changed, 1

Re: [Mesa-dev] Mesa (master): gallium-egl: Implement eglQueryWaylandBufferWL

2012-07-19 Thread Kristian Høgsberg
On Thu, Jul 19, 2012 at 2:44 PM, Jose Fonseca jfons...@vmware.com wrote: - Original Message - This commit is causing build failures in several platforms because EGL_WL_bind_wayland_display is defined everywhere (including windows), and not just on platforms where wayland-drm.h

Re: [Mesa-dev] Mesa (master): gallium-egl: Implement eglQueryWaylandBufferWL

2012-07-19 Thread Kristian Høgsberg
On Thu, Jul 19, 2012 at 3:26 PM, Kristian Høgsberg k...@bitplanet.net wrote: On Thu, Jul 19, 2012 at 2:44 PM, Jose Fonseca jfons...@vmware.com wrote: - Original Message - This commit is causing build failures in several platforms because EGL_WL_bind_wayland_display is defined

Re: [Mesa-dev] [PATCH] __DRIimage: Add formats with implied swizzling

2012-07-18 Thread Kristian Høgsberg
On Wed, Jul 18, 2012 at 12:02 PM, Eric Anholt e...@anholt.net wrote: Kristian Høgsberg k...@bitplanet.net writes: When we sample U and V from YUYV buffers, U and V ends up in G and A in the shader. Instead of pushing this to the application, just swizzle U and V to R and G and set B to 0

Re: [Mesa-dev] [PATCH] Fix build for gbm having wayland

2012-07-17 Thread Kristian Høgsberg
On Tue, Jul 17, 2012 at 08:14:32PM +0900, Elvis Lee wrote: gbm: backends/dri/gbm_dri.c fails to find wayland-drm-server-protocol.h because egl/wayland is not built before gbm. I just pushed a different fix to include a copy of the format enums in wayland-drm.h instead and not try to include the

Re: [Mesa-dev] [PATCH] st/gbm: renaming pitch to stride on gallium

2012-07-17 Thread Kristian Høgsberg
On Tue, Jul 17, 2012 at 08:28:57PM +0900, Elvis Lee wrote: commit '7250cd506baa0bd4649b30d87509cdd0cbc06a57' changes struct gbm_bo, renaming it's 'pitch' to 'stride'. This applies to Gallium. Thanks, applied. I'm trying to update it to support the new gbm import function now. Did you

Re: [Mesa-dev] [PATCH] st/egl: Fix build for wayland includes

2012-07-17 Thread Kristian Høgsberg
On Tue, Jul 17, 2012 at 08:01:43PM +0900, Elvis Lee wrote: common/native_wayland_drm_bufmgr_helper.c fails to find wayland-server.h Applied, thanks. Kristian Signed-off-by: Elvis Lee kwangwoong@lge.com --- src/gallium/state_trackers/egl/Makefile |7 --- 1 file changed, 4

Re: [Mesa-dev] [PATCH] st/gbm: renaming pitch to stride on gallium

2012-07-17 Thread Kristian Høgsberg
On Tue, Jul 17, 2012 at 04:51:49PM +0200, Michel Dänzer wrote: On Die, 2012-07-17 at 09:07 -0400, Kristian Høgsberg wrote: On Tue, Jul 17, 2012 at 08:28:57PM +0900, Elvis Lee wrote: commit '7250cd506baa0bd4649b30d87509cdd0cbc06a57' changes struct gbm_bo, renaming it's 'pitch' to 'stride

[Mesa-dev] [PATCH] __DRIimage: Add formats with implied swizzling

2012-07-17 Thread Kristian Høgsberg
Add eglQueryWaylandBufferWL and the various buffer formats. (Kristian Høgsberg) +Version 4, July 10, 2012 +Drop Y_XUXV format and just make the driver swizzle incoming values +so they map to rgba in that order. (Kristian Høgsberg) diff --git a/include/EGL/eglmesaext.h b

Re: [Mesa-dev] [PATCH] Fix linking gallium drivers and with dricore after defadf2b1 (v2)

2012-07-13 Thread Kristian Høgsberg
On Fri, Jul 13, 2012 at 12:18 PM, Tom Stellard thomas.stell...@amd.com wrote: On Fri, Jul 13, 2012 at 05:05:05PM +0100, Jon TURNEY wrote: Commit defadf2b1 erroneously tries to make gallium drivers link with libdricore as a static library, not a shared library Also, change uses of DRI_LIB_DEPS

Re: [Mesa-dev] [PATCH v2 7/8] egl: Add EGL_WAYLAND_PLANE_WL attribute

2012-07-11 Thread Kristian Høgsberg
On Wed, Jul 11, 2012 at 5:27 AM, Gwenole Beauchesne gb.de...@gmail.com wrote: Hi, 2012/7/9 Kristian Høgsberg k...@bitplanet.net: + switch (buffer-format) { + case WL_DRM_FORMAT_ARGB: + case WL_DRM_FORMAT_XRGB: + if (plane 0) { + _eglError(EGL_BAD_PARAMETER

Re: [Mesa-dev] Recent master build failure (upgrade gl2ext.h / glDrawBuffersNV fallout)

2012-07-11 Thread Kristian Høgsberg
to be regenerated via make clean, the build has progressed past the problem point. --Jeremy On Jul 10, 2012, at 8:19 PM, Kristian Høgsberg k...@bitplanet.net wrote: Hi Jeremy, I wasn't able to reproduce this problem when I committed the patch to update gl2ext.h, but I now figured out what

Re: [Mesa-dev] __DRIimage sub-image v2 series

2012-07-11 Thread Kristian Høgsberg
On Wed, Jul 11, 2012 at 10:44 AM, Ander Conselvan de Oliveira conselv...@gmail.com wrote: On 07/10/2012 12:03 AM, Kristian Høgsberg wrote: Here's the patch series with Erics suggestion and comments incorporated, and I've also added support for the packed YUYV format in this version

Re: [Mesa-dev] Mesa master branch: forced update

2012-07-10 Thread Kristian Høgsberg
On Tue, Jul 10, 2012 at 4:24 PM, Ferry Huberts maili...@hupie.com wrote: On 10-07-12 22:13, Kenneth Graunke wrote: On 07/10/2012 12:50 PM, Tom Stellard wrote: I just fetched from the master branch of the fdo mesa repo and was greeted with a forced update message, and the gitweb interface

Re: [Mesa-dev] Recent master build failure (upgrade gl2ext.h / glDrawBuffersNV fallout)

2012-07-10 Thread Kristian Høgsberg
3ed8d4285360047d78cfd3218ac4f8f325ae5d6e Author: Kristian Høgsberg k...@bitplanet.net Date: Tue Jul 3 20:47:04 2012 -0400 GLES2: upgrade gl2ext.h to version 18099 Redo this commit, and remove the inclusion of gl2ext.h from src/mapi/glapi/glapi_priv.h. The include was added

[Mesa-dev] __DRIimage sub-image v2 series

2012-07-09 Thread Kristian Høgsberg
Here's the patch series with Erics suggestion and comments incorporated, and I've also added support for the packed YUYV format in this version. The changes since last series boils down to: - Use __DRI_IMAGE_FORMAT_NONE when we create a __DRIimage we don't intend to texture from, and don't

[Mesa-dev] [PATCH v2 1/8] __DRIimage: version 5, add new formats and createSubImage

2012-07-09 Thread Kristian Høgsberg
(__DRI_IMAGE_FORMAT_R8) or the uv planes (__DRI_IMAGE_FORMAT_RG88) for formats such as NV12 where the u and v components are interleaved. Packed formats such as YUYV etc doesn't require any special treatment, we just sample those as a regular ARGB texture. Signed-off-by: Kristian Høgsberg k...@bitplanet.net

[Mesa-dev] [PATCH v2 3/8] intel: Add offset field to miptree

2012-07-09 Thread Kristian Høgsberg
This lets us specify an offset into the bo where the miptree starts, which will let us set up a texture for a single plane in a planar buffer. Signed-off-by: Kristian Høgsberg k...@bitplanet.net --- src/mesa/drivers/dri/i915/i915_texstate.c |2 +- src/mesa/drivers/dri/i965

[Mesa-dev] [PATCH v2 4/8] intel: Implement __DRIimage::createSubImage and bump supported version to 5

2012-07-09 Thread Kristian Høgsberg
We use the new miptree offset to pick out the sub-image when we bind the EGLImage to a texture. Signed-off-by: Kristian Høgsberg k...@bitplanet.net --- src/mesa/drivers/dri/intel/intel_regions.h |1 + src/mesa/drivers/dri/intel/intel_screen.c| 50 -- src/mesa

[Mesa-dev] [PATCH v2 5/8] wayland-drm: Pass struct wl_drm_buffer to the driver

2012-07-09 Thread Kristian Høgsberg
We're going to extend this to support multi-plane buffers, so pass this to the driver so it can access the details. --- src/egl/drivers/dri2/egl_dri2.c| 33 +--- src/egl/wayland/wayland-drm/wayland-drm.c | 19 +++

[Mesa-dev] [PATCH v2 6/8] wayland-drm: Add protocol to create planar buffers

2012-07-09 Thread Kristian Høgsberg
--- src/egl/drivers/dri2/egl_dri2.c| 11 ++- .../wayland/wayland-drm/protocol/wayland-drm.xml | 16 src/egl/wayland/wayland-drm/wayland-drm.c | 79 +++- src/egl/wayland/wayland-drm/wayland-drm.h |5 +-

[Mesa-dev] [PATCH v2 7/8] egl: Add EGL_WAYLAND_PLANE_WL attribute

2012-07-09 Thread Kristian Høgsberg
This lets us specify the plane to create the image for for multiplanar wl_buffers. Signed-off-by: Kristian Høgsberg k...@bitplanet.net --- docs/WL_bind_wayland_display.spec | 19 +- include/EGL/eglmesaext.h |1 + src/egl/drivers/dri2/egl_dri2.c | 117

[Mesa-dev] [PATCH v2 8/8] egl_dri2: Set content type for wl_buffer

2012-07-09 Thread Kristian Høgsberg
This lets the compositor know about the structure of the wl_buffer, namely which planes and components are available and in which order. --- src/egl/drivers/dri2/egl_dri2.c |5 + 1 file changed, 5 insertions(+) diff --git a/src/egl/drivers/dri2/egl_dri2.c

Re: [Mesa-dev] [PATCH 1/8] __DRIimage: version 5, add new formats and createSubImage

2012-07-06 Thread Kristian Høgsberg
On Fri, Jul 06, 2012 at 02:10:57PM -0700, Eric Anholt wrote: Kristian Høgsberg k...@bitplanet.net writes: The additions in version 5 enables creating EGLImages for different planes of a YUV buffer. createImageFromName is still used to create the containing __DRIimage, and createSubImage

Re: [Mesa-dev] [PATCH 3/8] intel: Add offset field to miptree

2012-07-06 Thread Kristian Høgsberg
On Fri, Jul 06, 2012 at 02:11:44PM -0700, Eric Anholt wrote: Kristian Høgsberg k...@bitplanet.net writes: This lets us specify an offset into the bo where the miptree starts, which will let us set up a texture for a single plane in a planar buffer. While I've not some questions about

Re: [Mesa-dev] [PATCH 4/8] intel: Implement __DRIimage::createSubImage and bump supported version to 5

2012-07-06 Thread Kristian Høgsberg
On Fri, Jul 06, 2012 at 02:16:23PM -0700, Eric Anholt wrote: Kristian Høgsberg k...@bitplanet.net writes: +static __DRIimage * +intel_create_sub_image(__DRIimage *parent, + int width, int height, int dri_format, + int offset, int pitch, void

[Mesa-dev] [PATCH 1/4] intel: Remove unused __DRIimage::data_type field

2012-07-05 Thread Kristian Høgsberg
Signed-off-by: Kristian Høgsberg k...@bitplanet.net --- src/mesa/drivers/dri/intel/intel_regions.h |1 - src/mesa/drivers/dri/intel/intel_screen.c | 12 2 files changed, 13 deletions(-) diff --git a/src/mesa/drivers/dri/intel/intel_regions.h b/src/mesa/drivers/dri/intel

[Mesa-dev] [PATCH 2/4] intel: Just look up image-internal_format using _mesa_get_format_base_format

2012-07-05 Thread Kristian Høgsberg
--- src/mesa/drivers/dri/intel/intel_screen.c | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/mesa/drivers/dri/intel/intel_screen.c b/src/mesa/drivers/dri/intel/intel_screen.c index 1cbd249..5fc56f7 100644 --- a/src/mesa/drivers/dri/intel/intel_screen.c

[Mesa-dev] [PATCH 3/4] intel: Share common __DRIimage allocation code

2012-07-05 Thread Kristian Høgsberg
We have the same switch and allocation code in two places. Signed-off-by: Kristian Høgsberg k...@bitplanet.net --- src/mesa/drivers/dri/intel/intel_screen.c | 59 ++--- 1 file changed, 19 insertions(+), 40 deletions(-) diff --git a/src/mesa/drivers/dri/intel

[Mesa-dev] [PATCH 4/4] egl_dri2: Reorganize the EGLImage constructors to share more code

2012-07-05 Thread Kristian Høgsberg
We factor out all the EGL book-keeping into dri2_create_image() and simplify the wayland case by using dupImage. Signed-off-by: Kristian Høgsberg k...@bitplanet.net --- src/egl/drivers/dri2/egl_dri2.c | 115 +-- 1 file changed, 37 insertions(+), 78 deletions

Re: [Mesa-dev] Mesa (master): GLES2: upgrade gl2ext.h to version 16994.

2012-07-05 Thread Kristian Høgsberg
On Thu, Jul 5, 2012 at 12:07 PM, Ian Romanick i...@freedesktop.org wrote: On 07/03/2012 04:58 PM, Kristian Høgsberg wrote: On Wed, Jul 04, 2012 at 01:48:18AM +0200, Marek Olšák wrote: On Wed, Jul 4, 2012 at 12:40 AM, Brian Paulbri...@vmware.com wrote: On 07/03/2012 02:23 PM, Kristian

Re: [Mesa-dev] [PATCH 1/4] intel: Remove unused __DRIimage::data_type field

2012-07-05 Thread Kristian Høgsberg
On Thu, Jul 5, 2012 at 1:17 PM, Kenneth Graunke kenn...@whitecape.org wrote: On 07/05/2012 08:54 AM, Kristian Høgsberg wrote: Signed-off-by: Kristian Høgsberg k...@bitplanet.net --- src/mesa/drivers/dri/intel/intel_regions.h |1 - src/mesa/drivers/dri/intel/intel_screen.c | 12

[Mesa-dev] [PATCH 1/8] __DRIimage: version 5, add new formats and createSubImage

2012-07-05 Thread Kristian Høgsberg
(__DRI_IMAGE_FORMAT_R8) or the uv planes (__DRI_IMAGE_FORMAT_RG88) for formats such as NV12 where the u and v components are interleaved. Packed formats such as YUYV etc doesn't require any special treatment, we just sample those as a regular ARGB texture. Signed-off-by: Kristian Høgsberg k...@bitplanet.net

[Mesa-dev] [PATCH 2/8] intel: Add support for new __DRIimage formats

2012-07-05 Thread Kristian Høgsberg
--- src/mesa/drivers/dri/intel/intel_screen.c | 16 1 file changed, 16 insertions(+) diff --git a/src/mesa/drivers/dri/intel/intel_screen.c b/src/mesa/drivers/dri/intel/intel_screen.c index 2b70aa4..6b6ddec 100644 --- a/src/mesa/drivers/dri/intel/intel_screen.c +++

[Mesa-dev] [PATCH 3/8] intel: Add offset field to miptree

2012-07-05 Thread Kristian Høgsberg
This lets us specify an offset into the bo where the miptree starts, which will let us set up a texture for a single plane in a planar buffer. Signed-off-by: Kristian Høgsberg k...@bitplanet.net --- src/mesa/drivers/dri/i915/i915_texstate.c |2 +- src/mesa/drivers/dri/i965

[Mesa-dev] [PATCH 4/8] intel: Implement __DRIimage::createSubImage and bump supported version to 5

2012-07-05 Thread Kristian Høgsberg
We use the new miptree offset to pick out the sub-image when we bind the EGLImage to a texture. Signed-off-by: Kristian Høgsberg k...@bitplanet.net --- src/mesa/drivers/dri/intel/intel_regions.h |1 + src/mesa/drivers/dri/intel/intel_screen.c| 36 -- src/mesa

[Mesa-dev] [PATCH 5/8] wayland-drm: Pass struct wl_drm_buffer to the driver

2012-07-05 Thread Kristian Høgsberg
We're going to extend this to support multi-plane buffers, so pass this to the driver so it can access the details. --- src/egl/drivers/dri2/egl_dri2.c| 33 +--- src/egl/wayland/wayland-drm/wayland-drm.c | 19 +++

[Mesa-dev] [PATCH 6/8] wayland-drm: Add protocol to create planar buffers

2012-07-05 Thread Kristian Høgsberg
--- src/egl/drivers/dri2/egl_dri2.c|8 +- .../wayland/wayland-drm/protocol/wayland-drm.xml | 16 src/egl/wayland/wayland-drm/wayland-drm.c | 77 +++- src/egl/wayland/wayland-drm/wayland-drm.h |5 +-

[Mesa-dev] [PATCH 7/8] egl: Add EGL_WAYLAND_PLANE_WL attribute

2012-07-05 Thread Kristian Høgsberg
This lets us specify the plane to create the image for for multiplanar wl_buffers. Signed-off-by: Kristian Høgsberg k...@bitplanet.net --- docs/WL_bind_wayland_display.spec | 16 +-- include/EGL/eglmesaext.h |1 + src/egl/drivers/dri2/egl_dri2.c | 86

[Mesa-dev] [PATCH 8/8] egl_dri2: Set content type for wl_buffer

2012-07-05 Thread Kristian Høgsberg
This lets the compositor know about the structure of the wl_buffer, namely which planes and components are available and in which order. --- src/egl/drivers/dri2/egl_dri2.c |4 1 file changed, 4 insertions(+) diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c

[Mesa-dev] [PATCH 1/2] GLES2: upgrade gl2ext.h to version 16994.

2012-07-03 Thread Kristian Høgsberg
From: Gwenole Beauchesne gwenole.beauche...@intel.com --- include/GLES2/gl2ext.h | 384 ++-- 1 file changed, 372 insertions(+), 12 deletions(-) diff --git a/include/GLES2/gl2ext.h b/include/GLES2/gl2ext.h index 4eae246..e4016a5 100644 ---

[Mesa-dev] [PATCH 2/2] mesa: add GL_EXT_texture_rg extension for OpenGL ES 2.x.

2012-07-03 Thread Kristian Høgsberg
From: Gwenole Beauchesne gwenole.beauche...@intel.com --- src/mapi/glapi/gen/es_EXT.xml |8 src/mesa/main/APIspec.xml |1 + src/mesa/main/extensions.c|1 + 3 files changed, 10 insertions(+) diff --git a/src/mapi/glapi/gen/es_EXT.xml b/src/mapi/glapi/gen/es_EXT.xml

Re: [Mesa-dev] [PATCH 2/2] mesa: add GL_EXT_texture_rg extension for OpenGL ES 2.x.

2012-07-03 Thread Kristian Høgsberg
On Tue, Jul 3, 2012 at 3:49 PM, Kenneth Graunke kenn...@whitecape.org wrote: On 07/03/2012 06:28 AM, Kristian Høgsberg wrote: From: Gwenole Beauchesne gwenole.beauche...@intel.com Brian and I actually reviewed this back in April, it just didn't get pushed for some reason. So I'd go ahead

Re: [Mesa-dev] [PATCH 1/2] GLES2: upgrade gl2ext.h to version 16994.

2012-07-03 Thread Kristian Høgsberg
and I just did make distclean and tried again, no error. What's your configure line? Kristian Marek On Tue, Jul 3, 2012 at 3:28 PM, Kristian Høgsberg k...@bitplanet.net wrote: From: Gwenole Beauchesne gwenole.beauche...@intel.com --- include/GLES2/gl2ext.h | 384

Re: [Mesa-dev] Mesa (master): GLES2: upgrade gl2ext.h to version 16994.

2012-07-03 Thread Kristian Høgsberg
On Wed, Jul 04, 2012 at 01:48:18AM +0200, Marek Olšák wrote: On Wed, Jul 4, 2012 at 12:40 AM, Brian Paul bri...@vmware.com wrote: On 07/03/2012 02:23 PM, Kristian Høgsberg wrote: Module: Mesa Branch: master Commit: 8818b88748bde6de5a4a98ad237c85151b44c774 URL: http

[Mesa-dev] [PATCH] GLES2: upgrade gl2ext.h to version 18099

2012-07-03 Thread Kristian Høgsberg
don't see the missing prototype here (with or without shared glapi) so I'm just removing the offending #include. Also, since we're redoing this, update to the most recent gl2ext.2. Signed-off-by: Kristian Høgsberg k...@bitplanet.net --- include/GLES2/gl2ext.h | 410

Re: [Mesa-dev] xeglgears: Make EGL_KHR_image usage portable

2012-06-29 Thread Kristian Høgsberg
On Fri, Jun 29, 2012 at 9:30 AM, Frank Binns frank.bi...@imgtec.com wrote: Hi, Please find attached a patch that allows xeglgears to link against EGL implementations that don't export extension functions (this is implementation dependent). Ah yea, oops. Thanks for fixing, patch applied.

Re: [Mesa-dev] [PATCH 8/9] mesa: Add support for glGetIntegeri_v from GL_ARB_uniform_buffer_object.

2012-06-20 Thread Kristian Høgsberg
On Tue, Jun 19, 2012 at 3:26 PM, Eric Anholt e...@anholt.net wrote: On Tue, 19 Jun 2012 08:10:25 -0600, Brian Paul bri...@vmware.com wrote: On 06/18/2012 07:35 PM, Eric Anholt wrote: Fixes piglit ARB_uniform_buffer_object/getintegeri_v. ---   src/mesa/main/get.c |   24

Re: [Mesa-dev] [PATCH 8/9] mesa: Add support for glGetIntegeri_v from GL_ARB_uniform_buffer_object.

2012-06-20 Thread Kristian Høgsberg
On Wed, Jun 20, 2012 at 10:11 AM, Brian Paul bri...@vmware.com wrote: On 06/20/2012 08:00 AM, Kristian Høgsberg wrote: On Tue, Jun 19, 2012 at 3:26 PM, Eric Anholte...@anholt.net  wrote: On Tue, 19 Jun 2012 08:10:25 -0600, Brian Paulbri...@vmware.com  wrote: On 06/18/2012 07:35 PM, Eric

Re: [Mesa-dev] [PATCH] i965/msaa: Only do multisample rasterization if GL_MULTISAMPLE enabled.

2012-06-19 Thread Kristian Høgsberg
On Tue, Jun 19, 2012 at 11:27:17AM -0700, Paul Berry wrote: On 19 June 2012 10:29, Kenneth Graunke kenn...@whitecape.org wrote: On 06/19/2012 08:16 AM, Paul Berry wrote: From the GL 3.0 spec (p.116): Multisample rasterization is enabled or disabled by calling Enable or

Re: [Mesa-dev] [PATCH] i965/msaa: Only do multisample rasterization if GL_MULTISAMPLE enabled.

2012-06-19 Thread Kristian Høgsberg
On Tue, Jun 19, 2012 at 2:56 PM, Kristian Høgsberg hoegsb...@gmail.com wrote: On Tue, Jun 19, 2012 at 11:27:17AM -0700, Paul Berry wrote: On 19 June 2012 10:29, Kenneth Graunke kenn...@whitecape.org wrote: On 06/19/2012 08:16 AM, Paul Berry wrote:  From the GL 3.0 spec (p.116

[Mesa-dev] [PATCH 1/2] get.c: Rename EXTRA_VERSION_ES2 to EXTRA_API_ES2

2012-06-15 Thread Kristian Høgsberg
This extra condition checks the API not the version of the API, so rename to reflect that. --- src/mesa/main/get.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c index 55dc205..a8e1d86 100644 --- a/src/mesa/main/get.c +++

<    3   4   5   6   7   8   9   10   >