[Mesa-dev] DRI1 Cleanup

2011-10-28 Thread Kristian Høgsberg
Hello, Here's a follow-up series to Eric's removal of the last DRI1 driver. Now that all DRI drivers are DRI2-only, there's a lot of DRI1 driver infrastructure that we can remove. Kristian .../state_trackers/dri/common/dri_drawable.c |6 +- src/gallium/state_trackers/dri/drm/Makefile

[Mesa-dev] [PATCH 01/27] dri: Drop driLegacyExtension

2011-10-28 Thread Kristian Høgsberg
There are no DRI1 drivers left. --- src/gallium/state_trackers/dri/drm/dri2.c |1 - src/mesa/drivers/dri/common/dri_util.c |8 src/mesa/drivers/dri/common/dri_util.h |1 - src/mesa/drivers/dri/radeon/radeon_screen.c |1 - 4 files changed, 0 insertions(+), 11

[Mesa-dev] [PATCH 02/27] dri: Drop driReadDrawableExtension

2011-10-28 Thread Kristian Høgsberg
All DRI2 drivers support setting a separate read drawable. --- src/gallium/state_trackers/dri/drm/dri2.c |2 -- src/mesa/drivers/dri/common/dri_util.c |8 src/mesa/drivers/dri/common/dri_util.h |1 - src/mesa/drivers/dri/intel/intel_screen.c |1 -

[Mesa-dev] [PATCH 03/27] dri: Drop driCopySubBufferExtension

2011-10-28 Thread Kristian Høgsberg
Another DRI1-only extension. --- src/gallium/state_trackers/dri/drm/dri2.c |2 -- src/mesa/drivers/dri/common/dri_util.c | 19 --- src/mesa/drivers/dri/common/dri_util.h |1 - src/mesa/drivers/dri/radeon/radeon_screen.c |1 - 4 files changed, 0

[Mesa-dev] [PATCH 04/27] dri: Remove driSwapControlExtension

2011-10-28 Thread Kristian Høgsberg
DRI1-only as well. --- src/gallium/state_trackers/dri/drm/dri2.c |2 -- src/mesa/drivers/dri/common/dri_util.c | 17 - src/mesa/drivers/dri/common/dri_util.h |1 - src/mesa/drivers/dri/radeon/radeon_screen.c |4 +--- 4 files changed, 1 insertions(+), 23

[Mesa-dev] [PATCH 06/27] dri: Remove unused __DRIswapInfoRec

2011-10-28 Thread Kristian Høgsberg
--- src/mesa/drivers/dri/common/dri_util.h | 40 1 files changed, 0 insertions(+), 40 deletions(-) diff --git a/src/mesa/drivers/dri/common/dri_util.h b/src/mesa/drivers/dri/common/dri_util.h index 2f33a62..1ace19e 100644 ---

[Mesa-dev] [PATCH 07/27] dri: Remove unsused driCreateNewScreen

2011-10-28 Thread Kristian Høgsberg
--- src/mesa/drivers/dri/common/dri_util.c | 93 1 files changed, 0 insertions(+), 93 deletions(-) diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c index 1118b19..46ef661 100644 ---

[Mesa-dev] [PATCH 08/27] dri: Fold driCreateNewDrawable into dri2CreateNewDrawable

2011-10-28 Thread Kristian Høgsberg
--- src/mesa/drivers/dri/common/dri_util.c | 81 +++- 1 files changed, 28 insertions(+), 53 deletions(-) diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c index 46ef661..15f600c 100644 ---

[Mesa-dev] [PATCH 09/27] dri: Drop unused driCreateNewContext

2011-10-28 Thread Kristian Høgsberg
--- src/mesa/drivers/dri/common/dri_util.c | 52 1 files changed, 0 insertions(+), 52 deletions(-) diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c index 15f600c..348b06a 100644 ---

[Mesa-dev] [PATCH 10/27] dri: Remove unused driSwapBuffers

2011-10-28 Thread Kristian Høgsberg
--- src/mesa/drivers/dri/common/dri_util.c | 65 +--- 1 files changed, 1 insertions(+), 64 deletions(-) diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c index 348b06a..b3e6b12 100644 ---

[Mesa-dev] [PATCH 11/27] dri: Drop __driUtilUpdateDrawableInfo and helper macros

2011-10-28 Thread Kristian Høgsberg
--- src/mesa/drivers/dri/common/dri_util.c | 88 src/mesa/drivers/dri/common/dri_util.h | 57 2 files changed, 0 insertions(+), 145 deletions(-) diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c

[Mesa-dev] [PATCH 12/27] dri: Remove unused driIntersectArea

2011-10-28 Thread Kristian Høgsberg
--- src/mesa/drivers/dri/common/dri_util.c | 13 - src/mesa/drivers/dri/common/dri_util.h |3 --- 2 files changed, 0 insertions(+), 16 deletions(-) diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c index c7154df..5d5f99d 100644 ---

[Mesa-dev] [PATCH 13/27] dri: Drop unused driCalculateSwapUsage

2011-10-28 Thread Kristian Høgsberg
--- src/mesa/drivers/dri/common/dri_util.c | 63 src/mesa/drivers/dri/common/dri_util.h |4 -- 2 files changed, 0 insertions(+), 67 deletions(-) diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c index

[Mesa-dev] [PATCH 14/27] dri: Remove cliprect information from __DRIdrawable

2011-10-28 Thread Kristian Høgsberg
--- src/gallium/state_trackers/dri/drm/dri2.c | 19 + src/mesa/drivers/dri/common/dri_util.c | 17 src/mesa/drivers/dri/common/dri_util.h | 28 +--- src/mesa/drivers/dri/common/spantmp_common.h | 11 +++-

[Mesa-dev] [PATCH 15/27] dri: Remove remaining DRI1 vblank code

2011-10-28 Thread Kristian Høgsberg
--- src/mesa/drivers/dri/common/Makefile.sources |1 - src/mesa/drivers/dri/common/vblank.c | 434 src/mesa/drivers/dri/common/vblank.h | 71 src/mesa/drivers/dri/r200/r200_ioctl.c |2 -

[Mesa-dev] [PATCH 16/27] dri: Remove DRI1 fields from DRI structs

2011-10-28 Thread Kristian Høgsberg
--- src/mesa/drivers/dri/common/dri_util.c | 29 +- src/mesa/drivers/dri/common/dri_util.h | 105 .../drivers/dri/radeon/radeon_common_context.c |6 - 3 files changed, 2 insertions(+), 138 deletions(-) diff --git

[Mesa-dev] [PATCH 17/27] dri: Remove dri2.enabled flag

2011-10-28 Thread Kristian Høgsberg
DRI2 is always enabled now. --- src/mesa/drivers/dri/common/dri_util.c |1 - src/mesa/drivers/dri/common/dri_util.h |1 - src/mesa/drivers/dri/radeon/radeon_common.c|3 - .../drivers/dri/radeon/radeon_common_context.c | 80 ++-

[Mesa-dev] [PATCH 18/27] dri: Remove unused fields from __DriverAPIRec

2011-10-28 Thread Kristian Høgsberg
--- src/mesa/drivers/dri/common/dri_util.h | 34 1 files changed, 0 insertions(+), 34 deletions(-) diff --git a/src/mesa/drivers/dri/common/dri_util.h b/src/mesa/drivers/dri/common/dri_util.h index ac0cef0..ab11d45 100644 ---

[Mesa-dev] [PATCH 19/27] dri: Remove unnecessary timestamp pointer indirection

2011-10-28 Thread Kristian Høgsberg
--- .../state_trackers/dri/common/dri_drawable.c |6 +++--- src/gallium/state_trackers/dri/drm/dri2.c |2 +- src/gallium/state_trackers/dri/sw/dri_drawable.c |6 +++--- src/mesa/drivers/dri/common/dri_util.c |4 +---

[Mesa-dev] [PATCH 20/27] dri: Remove unnecessary #defines and #includes

2011-10-28 Thread Kristian Høgsberg
--- src/mesa/drivers/dri/common/dri_util.c |8 1 files changed, 0 insertions(+), 8 deletions(-) diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c index 9deb997..7ffa860 100644 --- a/src/mesa/drivers/dri/common/dri_util.c +++

[Mesa-dev] [PATCH 21/27] dri: Stop using driUpdateFramebufferSize() wrapper function

2011-10-28 Thread Kristian Høgsberg
--- src/mesa/drivers/dri/intel/intel_context.c |3 +-- .../drivers/dri/radeon/radeon_common_context.c | 10 ++ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/mesa/drivers/dri/intel/intel_context.c b/src/mesa/drivers/dri/intel/intel_context.c index

[Mesa-dev] [PATCH 22/27] dri: Drop unused dri renderbuffer helper functions

2011-10-28 Thread Kristian Høgsberg
--- src/gallium/state_trackers/dri/drm/Makefile |3 +- src/gallium/targets/Makefile.dri |3 +- src/mesa/drivers/dri/common/Makefile.sources |1 - src/mesa/drivers/dri/common/drirenderbuffer.c | 200 -

[Mesa-dev] [PATCH 23/27] r200: Don't use driIsTextureResident helper

2011-10-28 Thread Kristian Høgsberg
With DRI2, textures are always resident and using the DRI texmem helper here is broken anyway, since nothing else uses it. --- src/mesa/drivers/dri/r200/r200_tex.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/src/mesa/drivers/dri/r200/r200_tex.c

[Mesa-dev] [PATCH 24/27] dri: Move _dri_texformat_* to radeon_texture.c

2011-10-28 Thread Kristian Høgsberg
They are only used by the r200 driver now. --- src/mesa/drivers/dri/radeon/radeon_fbo.c |6 +- src/mesa/drivers/dri/radeon/radeon_texture.c | 78 ++ src/mesa/drivers/dri/radeon/radeon_texture.h |8 +++ 3 files changed, 65 insertions(+), 27 deletions(-) diff

[Mesa-dev] [PATCH 25/27] dri: Remove unused dri texmem.c

2011-10-28 Thread Kristian Høgsberg
--- src/gallium/state_trackers/dri/drm/Makefile|3 +- src/gallium/targets/Makefile.dri |3 +- src/mesa/drivers/dri/common/Makefile.sources |3 +- src/mesa/drivers/dri/common/texmem.c | 1338

[Mesa-dev] [PATCH 26/27] dri: Remove a few unused dri helper functions

2011-10-28 Thread Kristian Høgsberg
--- src/mesa/drivers/dri/common/utils.c | 118 --- 1 files changed, 0 insertions(+), 118 deletions(-) diff --git a/src/mesa/drivers/dri/common/utils.c b/src/mesa/drivers/dri/common/utils.c index 54156d3..d8656a7 100644 --- a/src/mesa/drivers/dri/common/utils.c

[Mesa-dev] [PATCH 27/27] dri: Remove unused memops.h

2011-10-28 Thread Kristian Høgsberg
--- src/mesa/drivers/dri/common/memops.h | 17 - src/mesa/drivers/dri/common/utils.h | 25 - 2 files changed, 0 insertions(+), 42 deletions(-) delete mode 100644 src/mesa/drivers/dri/common/memops.h diff --git a/src/mesa/drivers/dri/common/memops.h

Re: [Mesa-dev] DRI1 Cleanup

2011-10-31 Thread Kristian Høgsberg
2011/10/28 Kristian Høgsberg k...@bitplanet.net: Hello, Here's a follow-up series to Eric's removal of the last DRI1 driver. Now that all DRI drivers are DRI2-only, there's a lot of DRI1 driver infrastructure that we can remove. I'll merge this in a day or two if there are no objections

Re: [Mesa-dev] [PATCH 21/27] dri: Stop using driUpdateFramebufferSize() wrapper function

2011-10-31 Thread Kristian Høgsberg
On Mon, Oct 31, 2011 at 12:08 PM, Eric Anholt e...@anholt.net wrote: On Fri, 28 Oct 2011 18:11:51 -0400, Kristian Høgsberg k...@bitplanet.net wrote: ---  src/mesa/drivers/dri/intel/intel_context.c         |    3 +--  .../drivers/dri/radeon/radeon_common_context.c     |   10 ++  2

Re: [Mesa-dev] Mesa (master): 27 new commits

2011-11-02 Thread Kristian Høgsberg
state tracker needs updating and/or removed? Jose - Original Message - URL:     http://cgit.freedesktop.org/mesa/mesa/commit/?id=8b65c33eb8a26c14df11462caea3044eda7b6349 Author: Kristian Høgsberg k...@bitplanet.net Date:   Fri Oct 28 17:47:53 2011 -0400     dri: Remove unused

Re: [Mesa-dev] [PATCH 1/2] gbm: Introduce a new API gbm_bo_create_from_name.

2011-12-15 Thread Kristian Høgsberg
On Thu, Dec 15, 2011 at 11:08 AM, zhigang gong zhigang.g...@gmail.com wrote: On Thu, Dec 15, 2011 at 11:57 PM, Eric Anholt e...@anholt.net wrote: On Thu, 15 Dec 2011 17:58:45 +0800, zhigang.g...@linux.intel.com wrote: From: Zhigang Gong zhigang.g...@linux.intel.com Glamor need a function to

Re: [Mesa-dev] Drooping multiple driver support in EGL?

2012-01-13 Thread Kristian Høgsberg
On Thu, Jan 12, 2012 at 12:06 PM, Chia-I Wu olva...@gmail.com wrote: On Tue, Jan 10, 2012 at 12:55 AM, Jose Fonseca jfons...@vmware.com wrote: - Original Message - On Fri, Dec 23, 2011 at 7:51 PM, Chia-I Wu olva...@gmail.com wrote: On Sat, Dec 24, 2011 at 12:37 AM, Ian Romanick

Re: [Mesa-dev] [mesa-demos] License clarification for eglkms.c?

2011-08-18 Thread Kristian Høgsberg
be the case here. Would it be possible to clarify the license for eglkms.c? Our goal: provide an EGL platform backend for Qt, hopefully feeding it eventually upstream. I have cc'd the relevant people in our company. I believe it should be under the MIT license too.  I'm copying Kristian Høgsberg

Re: [Mesa-dev] DEATH to old drivers!

2011-08-24 Thread Kristian Høgsberg
On Wed, Aug 24, 2011 at 3:11 PM, Ian Romanick i...@freedesktop.org wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'd like to propose giving the ax to a bunch of old, unmaintained drivers.  I've been doing a bunch of refactoring and reworking of core Mesa code, and these drivers have

Re: [Mesa-dev] DEATH to old drivers!

2011-08-26 Thread Kristian Høgsberg
On Fri, Aug 26, 2011 at 4:52 AM, matthew green m...@eterna.com.au wrote: hi folks,  - Remove all DRI1 drivers: i810, mach64, mga, r128, savage, sis, tdfx, and unichrome. over in netbsd land we're still lagging on DRI2 support[*].  of the above cards, i've hard successful reports on mach64,

Re: [Mesa-dev] DEATH to old drivers!

2011-08-26 Thread Kristian Høgsberg
originally pointed the link. 10:18 +idr The DRI1 GLX code is back, and some other core Mesa code has been removed. With those changes, Acked-by: Kristian Høgsberg k...@bitplanet.net ___ mesa-dev mailing list mesa-dev

Re: [Mesa-dev] [PATCH 6/8] mesa: Remove OES_read_format extension enable flag

2011-09-19 Thread Kristian Høgsberg
correct. The extra stuff is for checking various constraints or triggering side-effects. If the extension is always enabled, we can just use extra_new_buffers as you do. Reviewed-by: Kristian Høgsberg k...@bitplanet.net Cc: Kristian Høgsberg k...@bitplanet.net ---  src/mesa/main/extensions.c

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

2011-10-18 Thread Kristian Høgsberg
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? It's defined in the code generated from the drm.xml definition. Kristian

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 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] 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] 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] [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] [RFC 12/13] i965: support for YUV formatted external textures

2013-02-27 Thread Kristian Høgsberg
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, 2013 at 8:19 AM, Topi Pohjolainen topi.pohjolai...@intel.com wrote: Namely YUV420, YVU420 (YV12) and NV12. Here one extends

[Mesa-dev] wl_drm: Buffer-sharing by fd-passing

2013-02-27 Thread Kristian Høgsberg
This little patch series adds support for creating a __DRIimage from a prime/dma_buf fd and then uses that to add support for wl_drm buffer sharing by fd-passing. The __DRIimage patch is interesting in itself as it should enable the EGL_EXT_dmabuf_image extension that's come up a few times.

[Mesa-dev] [PATCH 1/3] wayland: allocate a __DRIimage for the color buffer

2013-02-27 Thread Kristian Høgsberg
No functional change here, but this will let us query the image for an fd handle later. --- src/egl/drivers/dri2/egl_dri2.h | 3 +- src/egl/drivers/dri2/platform_wayland.c | 57 - 2 files changed, 37 insertions(+), 23 deletions(-) diff --git

[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] OES_external_image for i965

2013-03-01 Thread Kristian Høgsberg
On Fri, Mar 1, 2013 at 3:51 AM, Pohjolainen, Topi topi.pohjolai...@intel.com wrote: On Tue, Feb 26, 2013 at 04:05:25PM +, Tom Cooksey wrote: Hi Topi, The second more or less questionable part is the support for creating YUV buffers. In order to test for YUV sampling one needs a way of

Re: [Mesa-dev] [RFC] OES_external_image for i965

2013-03-04 Thread Kristian Høgsberg
On Mon, Mar 4, 2013 at 4:55 AM, Pohjolainen, Topi topi.pohjolai...@intel.com wrote: On Fri, Mar 01, 2013 at 10:03:45AM -0500, Kristian H?gsberg wrote: On Fri, Mar 1, 2013 at 3:51 AM, Pohjolainen, Topi topi.pohjolai...@intel.com wrote: On Tue, Feb 26, 2013 at 04:05:25PM +, Tom Cooksey

Re: [Mesa-dev] [RFC] OES_external_image for i965

2013-03-04 Thread Kristian Høgsberg
On Mon, Mar 4, 2013 at 10:11 AM, Pohjolainen, Topi topi.pohjolai...@intel.com wrote: On Mon, Mar 04, 2013 at 09:56:34AM -0500, Kristian H?gsberg wrote: On Mon, Mar 4, 2013 at 4:55 AM, Pohjolainen, Topi topi.pohjolai...@intel.com wrote: On Fri, Mar 01, 2013 at 10:03:45AM -0500, Kristian

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

2013-03-18 Thread Kristian Høgsberg
On Fri, Mar 01, 2013 at 02:03:20PM +0200, Ander Conselvan de Oliveira wrote: On 02/28/2013 03:52 AM, Kristian Høgsberg wrote: --- include/GL/internal/dri_interface.h| 14 +++- src/mesa/drivers/dri/intel/intel_regions.c | 33 +++ src/mesa/drivers/dri/intel

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

2013-03-18 Thread Kristian Høgsberg
On Fri, Mar 01, 2013 at 02:06:03PM +0200, Ander Conselvan de Oliveira wrote: On 02/28/2013 03:52 AM, Kristian Høgsberg wrote: diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c index b5cd04a..1b42a98 100644 --- a/src/egl/drivers/dri2

[Mesa-dev] [PATCH] egl_dri2: Lower __DRI_IMAGE version requirement back to 1

2013-03-19 Thread Kristian Høgsberg
We check the extension version manually instead and verify that we have the createImageFromFds function before enabling prime fd passing. --- src/egl/drivers/dri2/egl_dri2.c | 6 -- src/egl/drivers/dri2/platform_wayland.c | 9 + 2 files changed, 13 insertions(+), 2

Re: [Mesa-dev] [PATCH] st/egl: Fix build after changes in src/egl/wayland/

2013-03-20 Thread Kristian Høgsberg
I pushed a different fix for this. The gallium egl code doesn't have support for buffer sharing via fd passing so we can't just ask the protocol code to advertise that, even if the kernel has the DRM_CAP_PRIME features. Instead we just pass 0 for the flags argument. thanks, Kristian On Tue,

Re: [Mesa-dev] [PATCH mesa] wayland: Disable prime support on buggy kernels

2013-04-29 Thread Kristian Høgsberg
On Tue, Apr 23, 2013 at 9:54 AM, Ander Conselvan de Oliveira ander.conselvan.de.olive...@intel.com wrote: Linux kernel 3.8 shipped with a bug in the prime fd passing code that makes it unreliable. As of this writing, it seems unlikely that 3.9 will contain the fix for the issue. This patch

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

2013-04-29 Thread Kristian Høgsberg
-by: Kristian Høgsberg k...@bitplanet.net -- 8 -- Reviewed-by: Eric Anholt e...@anholt.net --- src/egl/drivers/dri2/platform_wayland.c | 29 ++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2

Re: [Mesa-dev] [PATCH] i965: Don't create a swrast context on ES2+.

2013-07-29 Thread Kristian Høgsberg
* glDrawPixels(), glBitmap(), and other functions). */ - if (api != API_OPENGL_CORE) { + if (api != API_OPENGL_CORE api != API_OPENGLES2) { _swrast_CreateContext(ctx); } Awesome. Reviewed-by: Kristian Høgsberg k...@bitplanet.net

Re: [Mesa-dev] [PATCH mesa 3/3] egl: Update to Wayland 1.2 server API

2013-08-07 Thread Kristian Høgsberg
(Kristian Høgsberg) +Version 5, July 16, 2013 +Change eglQueryWaylandBufferWL to take a resource pointer to the +buffer instead of a pointer to a struct wl_buffer, as the latter has +been deprecated. (Ander Conselvan de Oliveira) diff --git a/include/EGL

Re: [Mesa-dev] [PATCH mesa 3/3] egl: Update to Wayland 1.2 server API

2013-08-12 Thread Kristian Høgsberg
@@ Revision History Use EGL_TEXTURE_FORMAT, EGL_TEXTURE_RGB, and EGL_TEXTURE_RGBA, and just define the new YUV texture formats. Add support for EGL_WIDTH and EGL_HEIGHT in the query attributes (Kristian Høgsberg) +Version 5, July 16, 2013 +Change

Re: [Mesa-dev] [Patch] Sharing flags should disable tiling

2013-08-13 Thread Kristian Høgsberg
On Mon, Aug 12, 2013 at 3:05 PM, Marek Olšák mar...@gmail.com wrote: On Mon, Aug 12, 2013 at 11:36 PM, Stéphane Marchesin stephane.marche...@gmail.com wrote: Other than hybrid systems (of which there are none with i915 graphics), is there any case where __DRI_IMAGE_USE_SHARE can occur? You

Re: [Mesa-dev] [PATCH 09/10] Float fbconfigs frontend patch [2/3] Creation of dummy X pixmap associated with float buffer.

2013-08-22 Thread Kristian Høgsberg
On Thu, Aug 22, 2013 at 03:11:06PM -0700, Ian Romanick wrote: On 07/17/2013 04:49 AM, Tomasz Lis wrote: From: Tomasz Lis tomasz@intel.com glx: Creation of dummy X pixmap associated with float buffer. This change addresses the fact that float configs can be only used for pbuffers,

Re: [Mesa-dev] [PATCH] gallium, intel: Implements new __DRI_IMAGE_USE_LINEAR and PIPE_BIND_LINEAR flags to enforce no tiling.

2013-09-06 Thread Kristian Høgsberg
On Sat, Aug 31, 2013 at 12:10:52AM +0200, Marek Olšák wrote: The Gallium changes look good to me. With Mareks OK on the gallium side changes, I'll go and commit this. The intel changes look good and the DRI driver interface changes do what we need. thanks, Kristian Marek On Thu, Aug 15,

[Mesa-dev] [PATCH] configure.ac: Fail if egl x11 platform dependencies are not available

2012-06-01 Thread Kristian Høgsberg
Currently, if you pass --with-egl-platforms=x11 but xcb-dri2 isn't available we just silently fail and disables building the EGL DRI2 driver. This commit cleans up the EGL platfrom checking and fails if a selected platform can't find its required dependencies. --- configure.ac | 71

Re: [Mesa-dev] [PATCH] configure.ac: Fail if egl x11 platform dependencies are not available

2012-06-03 Thread Kristian Høgsberg
On Fri, Jun 1, 2012 at 9:52 PM, Eric Anholt e...@anholt.net wrote: On Fri,  1 Jun 2012 14:29:44 -0400, Kristian Høgsberg k...@bitplanet.net wrote: Currently, if you pass --with-egl-platforms=x11 but xcb-dri2 isn't available we just silently fail and disables building the EGL DRI2 driver

[Mesa-dev] [PATCH v2] configure.ac: Fail if egl x11 platform dependencies are not available

2012-06-03 Thread Kristian Høgsberg
Currently, if you pass --with-egl-platforms=x11 but xcb-dri2 isn't available we just silently fail and disables building the EGL DRI2 driver. This commit cleans up the EGL platfrom checking and fails if a selected platform can't find its required dependencies. Signed-off-by: Kristian Høgsberg k

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

[Mesa-dev] [PATCH 2/2] gles2: Add GL_NV_read_buffer extension

2012-06-15 Thread Kristian Høgsberg
This lets us select the front buffer for reading under GLES2. --- src/mapi/glapi/gen/es_EXT.xml |7 +++ src/mapi/glapi/gen/gles_api.py |2 ++ src/mesa/main/APIspec.xml | 13 + src/mesa/main/extensions.c |1 + src/mesa/main/get.c| 20

Re: [Mesa-dev] [PATCH 2/2] gles2: Add GL_NV_read_buffer extension

2012-06-15 Thread Kristian Høgsberg
On Fri, Jun 15, 2012 at 4:31 PM, Brian Paul brian.e.p...@gmail.com wrote: On Fri, Jun 15, 2012 at 1:44 PM, Kristian Høgsberg k...@bitplanet.net wrote: This lets us select the front buffer for reading under GLES2. ---  src/mapi/glapi/gen/es_EXT.xml  |    7 +++  src/mapi/glapi/gen

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

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

[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

[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

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

  1   2   3   4   5   6   7   8   9   10   >