From patchwork Thu Aug 30 21:47:17 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Clark X-Patchwork-Id: 11113 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 3651C23F27 for ; Thu, 30 Aug 2012 21:47:33 +0000 (UTC) Received: from mail-iy0-f180.google.com (mail-iy0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id 83B9AA192CE for ; Thu, 30 Aug 2012 21:46:56 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id j25so3732075iaf.11 for ; Thu, 30 Aug 2012 14:47:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf :dkim-signature:sender:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state; bh=PtSnNnWBMQcpdhXOQcjasTV+DguYBLeWRzEGoWL80N8=; b=ifWfzPM1965DefyFFmpiHa48wUrFjr04CT/89M8sjzlG7K62RSsjwAsBePfFbZdsiz X4yd4i+SOKeukJan/tj8Kn6o2OydHwYYLBDrG6QoR82+GfBUr5wRJyK+GXTHmh8sPSle MoXBP4TF0p7d8zS79AjPMTPtI0OJlvvv0u/ugS6/m0DO3yHC5L6s9y+y0ZreeQsLU3yT iKqbD2c1QF/QhP689dT4gr8S4I0YS/2sFcwE48yq9wZEdViY+LKif5IZu80rVSxgCFPW iWts8uFHTV0TnoGzac2dJzojEAuwmlkuzr7bZrFdfpNFaekTR9SVjUrJW+LgzvzTaP8e f8zA== Received: by 10.50.10.201 with SMTP id k9mr2534664igb.28.1346363252579; Thu, 30 Aug 2012 14:47:32 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.184.232 with SMTP id ex8csp33025igc; Thu, 30 Aug 2012 14:47:32 -0700 (PDT) Received: by 10.68.189.196 with SMTP id gk4mr2277138pbc.97.1346363251751; Thu, 30 Aug 2012 14:47:31 -0700 (PDT) Received: from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50]) by mx.google.com with ESMTPS id iq5si4768719pbc.314.2012.08.30.14.47.31 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 30 Aug 2012 14:47:31 -0700 (PDT) Received-SPF: pass (google.com: domain of robdclark@gmail.com designates 209.85.160.50 as permitted sender) client-ip=209.85.160.50; Authentication-Results: mx.google.com; spf=pass (google.com: domain of robdclark@gmail.com designates 209.85.160.50 as permitted sender) smtp.mail=robdclark@gmail.com; dkim=pass header.i=@gmail.com Received: by mail-pb0-f50.google.com with SMTP id md12so4150965pbc.37 for ; Thu, 30 Aug 2012 14:47:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=PtSnNnWBMQcpdhXOQcjasTV+DguYBLeWRzEGoWL80N8=; b=uBz+z52MsPI735hoTpNXZD35MsMQIMtKGlUSai61k86/XCERqz3caerR/dClzND5UU uS4+oZ4W7oaTumCVFof4tIkFA0CI7A2jttTGiuasri6y6st+1RwJ6q4OjAkOal65+uHr mklRtA+l6EwgRoqIYdCpyB7xRlWBNC1N4PC0fOV+7BuMCtrVC1VIYxa8QYe92oRdX8cW DbyDXVvF1DDLJqec6tAS71FIL6SBXue/aD6R2k8vtYx+fx35F95WA6hRsF75oTUfQGrg XR7P9OL/YoBGCsIaYg85ezv4QbJLtYeTUCOSC78EmGQIUKWWc8sJ6Tok0PdTCQ3Xj4p/ f7MA== Received: by 10.68.221.70 with SMTP id qc6mr13774580pbc.92.1346363251484; Thu, 30 Aug 2012 14:47:31 -0700 (PDT) Received: from localhost ([38.96.16.75]) by mx.google.com with ESMTPS id gt2sm2209855pbc.62.2012.08.30.14.47.29 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 30 Aug 2012 14:47:29 -0700 (PDT) Sender: Rob Clark From: Rob Clark To: wayland-devel@lists.freedesktop.org Cc: patches@linaro.org, Rob Clark Subject: [PATCH weston 1/5] compositor: add support for OES_EGL_image_external Date: Thu, 30 Aug 2012 16:47:17 -0500 Message-Id: <1346363241-29219-2-git-send-email-rob.clark@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1346363241-29219-1-git-send-email-rob.clark@linaro.org> References: <1346363241-29219-1-git-send-email-rob.clark@linaro.org> X-Gm-Message-State: ALoCoQnHi9XZjkpHHwBP0RyTRUmy5dMhL5NUB0JXaboWXLsSMoAmy7MTn3dIBriq5TBVPYJy+M2m From: Rob Clark In cases where the GPU can natively handle certain YUV formats, eglQueryWaylandBufferWL() can return the value EGL_TEXTURE_EXTERNAL_WL and the compositor will treat the buffer as a single egl-image-external. See: http://www.khronos.org/registry/gles/extensions/OES/OES_EGL_image_external.txt v1: original v2: rename EGL_TEXTURE_EXTERNAL_OES -> EGL_TEXTURE_EXTERNAL_WL and query for the extension v3: fix build without updated mesa headers, if EGL_TEXTURE_EXTERNAL_WL #define is missing from older mesa headers. Signed-off-by: Rob Clark --- src/weston-egl-ext.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/weston-egl-ext.h b/src/weston-egl-ext.h index 5369f02..1d4b76b 100644 --- a/src/weston-egl-ext.h +++ b/src/weston-egl-ext.h @@ -54,4 +54,8 @@ typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYWAYLANDBUFFERWL) (EGLDisplay dpy, st #endif +#ifndef EGL_TEXTURE_EXTERNAL_WL +#define EGL_TEXTURE_EXTERNAL_WL 0x31DA +#endif + #endif