From patchwork Mon Aug 13 22:39:16 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Clark X-Patchwork-Id: 10710 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 0897223E29 for ; Mon, 13 Aug 2012 22:39:30 +0000 (UTC) Received: from mail-gg0-f180.google.com (mail-gg0-f180.google.com [209.85.161.180]) by fiordland.canonical.com (Postfix) with ESMTP id BCBE0A18925 for ; Mon, 13 Aug 2012 22:39:29 +0000 (UTC) Received: by ggmi2 with SMTP id i2so2034211ggm.11 for ; Mon, 13 Aug 2012 15:39:29 -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=0a2RzE6fvvovEVHTNzmhGb+l/lXF0sAZsvk9qO6EHaU=; b=ew41XzccQB+jRoMQ0x5aP0iJcbpp8afsbqwqq0kg81h9raHNHCSApXqdUpWp0LrGYt 1mC+bToHeHhGKsXRf4Kd8hLWr+u7j4VjAjwV/UnWmBKPbbl0IFYuq2Oqxb5Gg8OgQZDs qQzNQnPHJF9lSs6JQyTYQ3a2MHMwKHIbS56YB2a24zCDxFPDD698ClqSWl7EXPQlfnvg NzEBcANzJdwy054INqx+2pTGl+X+VJnbqOp3LP0fWVKDevl9PMiU87X6UPeqTeQM58Wm 4BjQ5Q+mFtiIy0+Vt8lkYRoDIbYTqqUBFeD1gNzlHUHtGcll9eiUoXJt/45H/4Hy6gjZ te/g== Received: by 10.50.95.230 with SMTP id dn6mr7707102igb.16.1344897569128; Mon, 13 Aug 2012 15:39:29 -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 ew8csp201627igc; Mon, 13 Aug 2012 15:39:28 -0700 (PDT) Received: by 10.60.24.4 with SMTP id q4mr21729254oef.50.1344897568666; Mon, 13 Aug 2012 15:39:28 -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 fy3si964299obc.174.2012.08.13.15.39.28 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 13 Aug 2012 15:39:28 -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 wd20so9747767obb.37 for ; Mon, 13 Aug 2012 15:39:28 -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=0a2RzE6fvvovEVHTNzmhGb+l/lXF0sAZsvk9qO6EHaU=; b=VYbIaUJEhmXxt9b2/Fgxp7sbRCgeL3Bnrjj6q+3caqC7XyBfzZ6oI+naZg9m2yfJlD S41kaKgu+aNwbfIe4TDlj1pPAkoOXfx9IYDHKsvwXdOKAkwo3Zn4JlfTawMEJos3XB9e 1YUA19ItspWQ6HVWpQfdYK6a3GzSKzLhL/P+eMqdKbqdXv4SwAkRhn91sVov46rohUPN TkuPSeWbXFRIdf5OzXliyeg9ZPIlqwaTOYkrmJUdxB0NVI+fNHEBKDhDv4vjS/NxdYGy DC/tIzJh/Y3XvS0iloL/Z8ZRprfISrFvbUrZdrF//aRW1BApO5ngaco27iHero/MMWBT P/wQ== Received: by 10.182.95.142 with SMTP id dk14mr15337639obb.2.1344897568283; Mon, 13 Aug 2012 15:39:28 -0700 (PDT) Received: from localhost (dragon.ti.com. [192.94.94.33]) by mx.google.com with ESMTPS id ac8sm856819obc.11.2012.08.13.15.39.27 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 13 Aug 2012 15:39:27 -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_OES to WL_bind_wayland_display Date: Mon, 13 Aug 2012 17:39:16 -0500 Message-Id: <1344897558-1976-1-git-send-email-rob.clark@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Gm-Message-State: ALoCoQk3atuuoevDS5KT0hT/bDfIbOUa3PYt8uu28YlqTWEofqOU/hfXtVEpLu/487d4rurhw64R 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..7b09212 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_OES 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_OES + 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..cb2b894 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_OES 0x31DA struct wl_display; struct wl_buffer;