From patchwork Thu Aug 16 22:28:19 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Clark X-Patchwork-Id: 10778 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 F0BB023E41 for ; Thu, 16 Aug 2012 22:28:28 +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 A7EC7A1800F for ; Thu, 16 Aug 2012 22:28:28 +0000 (UTC) Received: by iadj38 with SMTP id j38so574523iad.11 for ; Thu, 16 Aug 2012 15:28:28 -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 :x-gm-message-state; bh=XvlI923L6vCquANW920mYu/mih2QxFaSIzJOMNdNfC8=; b=PDFPut2COAdLoI4lWNvmHk7AgKWEAl1x8N0JjJIq1JOQPafRvXEzB0smq+ZfaWrsEA YERvQmzlaHvGrrZra0aT3hFQGUBEEnGDu7kZvtgwG1ErNpvVQ7drazHK5RqbDJ/mpKCp mpQWbWrHTqOUkMt+GhIO+11/FFZzVwXXoyUEdsJ5+EyIinULwCi1h5/+a5mgKL+UBSKN vhIe0p7S4V5QZzfqxWl/RHBOXLl5bz/W3OsYVHMiMKGyDZm/W5goN1ApP2yVg4bssH+k 0EWPJGKoROZ4ueWAHHlWCuTl2qbJMLKVLoqgOPxl8/ZLbVVLFBaQVuIjolszJLkSqZ54 U9aA== Received: by 10.42.249.205 with SMTP id ml13mr2701374icb.49.1345156108079; Thu, 16 Aug 2012 15:28:28 -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.200 with SMTP id ew8csp154814igc; Thu, 16 Aug 2012 15:28:27 -0700 (PDT) Received: by 10.182.40.6 with SMTP id t6mr2265128obk.100.1345156107459; Thu, 16 Aug 2012 15:28:27 -0700 (PDT) Received: from mail-ob0-f178.google.com (mail-ob0-f178.google.com [209.85.214.178]) by mx.google.com with ESMTPS id im8si5565195obb.58.2012.08.16.15.28.27 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 16 Aug 2012 15:28:27 -0700 (PDT) Received-SPF: pass (google.com: domain of robdclark@gmail.com designates 209.85.214.178 as permitted sender) client-ip=209.85.214.178; Authentication-Results: mx.google.com; spf=pass (google.com: domain of robdclark@gmail.com designates 209.85.214.178 as permitted sender) smtp.mail=robdclark@gmail.com; dkim=pass header.i=@gmail.com Received: by obbwd20 with SMTP id wd20so5448928obb.37 for ; Thu, 16 Aug 2012 15:28:26 -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; bh=XvlI923L6vCquANW920mYu/mih2QxFaSIzJOMNdNfC8=; b=CpwAS/uoSe3wOOEgilShhQrpBOY4hHI5poA3PWFUEOWB6Xfj/WL3/oYpzlAlyT1IqF qyVyDcg3/T/meyXMNZbkrix3XopmmHMrgBLc27hGXRHZYw/pND6VYumgo19YmU+T4v7o pzHp7YJn7KyDTIHinYu2K4N5mOty7JfeVOvDfw2qy7rQxDPEdtNB9i7ccmkRvfn0giJG qsZw8bAy3oiZaHfwmYi2e3cMKfwoqN1nh6Y3207HUlChOTaYVSKw//9xr7oeQm6h/3zr h4BgCeOWCPNkq/2mB3q3wTug2+vozaw0ag7NMgvB7uojzOHog4Z0p3I6+q/0LY3gmeLr Ku8Q== Received: by 10.182.74.68 with SMTP id r4mr2324109obv.31.1345156106848; Thu, 16 Aug 2012 15:28:26 -0700 (PDT) Received: from localhost (dragon.ti.com. [192.94.94.33]) by mx.google.com with ESMTPS id ad9sm5102671obc.8.2012.08.16.15.28.25 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 16 Aug 2012 15:28:26 -0700 (PDT) Sender: Rob Clark From: Rob Clark To: wayland-devel@lists.freedesktop.org, mesa-dev@lists.freedesktop.org Cc: patches@linaro.org, Rob Clark Subject: [PATCH mesa] add EGL_TEXTURE_EXTERNAL_WL to WL_bind_wayland_display spec Date: Thu, 16 Aug 2012 17:28:19 -0500 Message-Id: <1345156101-28827-1-git-send-email-rob.clark@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Gm-Message-State: ALoCoQlEPk8KtqncsVHAYeWlvqa2wf6eJBaWPVyXoJU3AL/2dwcbLlR4xrCYa4kRNFmYdBTVAfVa From: Rob Clark Signed-off-by: Rob Clark --- docs/WL_bind_wayland_display.spec | 5 +++++ include/EGL/eglmesaext.h | 1 + 2 files changed, 6 insertions(+) diff --git a/docs/WL_bind_wayland_display.spec b/docs/WL_bind_wayland_display.spec index 02bd6ea..ce52e2d 100644 --- a/docs/WL_bind_wayland_display.spec +++ b/docs/WL_bind_wayland_display.spec @@ -75,6 +75,7 @@ New Tokens EGL_TEXTURE_Y_U_V_WL 0x31D7 EGL_TEXTURE_Y_UV_WL 0x31D8 EGL_TEXTURE_Y_XUXV_WL 0x31D9 + EGL_TEXTURE_EXTERNAL_WL 0x31DA Additions to the EGL 1.4 Specification: @@ -143,6 +144,10 @@ Additions to the EGL 1.4 Specification: Two planes, samples Y from the first plane to r in the shader, U and V from the second plane to g and a. + EGL_TEXTURE_EXTERNAL_WL + Treated as a single plane texture, but sampled with + samplerExternalOES according to OES_EGL_image_external + After querying the wl_buffer layout, create EGLImages for the planes by calling eglCreateImageKHR with wl_buffer as EGLClientBuffer, EGL_WAYLAND_BUFFER_WL as the target, NULL diff --git a/include/EGL/eglmesaext.h b/include/EGL/eglmesaext.h index d476d18..2b91897 100644 --- a/include/EGL/eglmesaext.h +++ b/include/EGL/eglmesaext.h @@ -118,6 +118,7 @@ typedef EGLDisplay (EGLAPIENTRYP PFNEGLGETDRMDISPLAYMESA) (int fd); #define EGL_TEXTURE_Y_U_V_WL 0x31D7 #define EGL_TEXTURE_Y_UV_WL 0x31D8 #define EGL_TEXTURE_Y_XUXV_WL 0x31D9 +#define EGL_TEXTURE_EXTERNAL_WL 0x31DA struct wl_display; struct wl_buffer;