[PATCH 1/3] change drm term to gbm

Halley Zhao halley.zhao at intel.com
Thu Apr 19 01:33:21 PDT 2012


---
src/egl/drivers/dri2/egl_dri2.c                    |   34 +++---
src/egl/drivers/dri2/egl_dri2.h                    |    6 +-
src/egl/drivers/dri2/platform_wayland.c            |   72 +++++++-------
.../wayland/wayland-drm/protocol/wayland-drm.xml   |    8 +-
src/egl/wayland/wayland-drm/wayland-drm.c          |  110 ++++++++++-------=
---
src/egl/wayland/wayland-drm/wayland-drm.h          |   22 ++--
.../egl/common/native_wayland_drm_bufmgr_helper.c  |   12 +-
.../egl/common/native_wayland_drm_bufmgr_helper.h  |   12 +-
src/gallium/state_trackers/egl/drm/native_drm.c    |   22 ++--
src/gallium/state_trackers/egl/drm/native_drm.h    |    2 +-
.../state_trackers/egl/wayland/native_drm.c        |   66 ++++++------
src/gallium/state_trackers/egl/x11/native_dri2.c   |   24 ++--
12 files changed, 195 insertions(+), 195 deletions(-)
mode change 100644 =3D> 100755 src/egl/wayland/wayland-drm/protocol/wayland=
-drm.xml
mode change 100644 =3D> 100755 src/egl/wayland/wayland-drm/wayland-drm.h
mode change 100644 =3D> 100755 src/gallium/state_trackers/egl/wayland/nativ=
e_drm.c

--_000_81DD1C3FC6BE1E4EAA454D486F8200440A11F5SHSMSX101ccrcorpi_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 12 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:SimSun;
	panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
	{font-family:SimSun;
	panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
	{mso-style-priority:99;
	mso-style-link:"Balloon Text Char";
	margin:0cm;
	margin-bottom:.0001pt;
	font-size:8.0pt;
	font-family:"Tahoma","sans-serif";}
span.BalloonTextChar
	{mso-style-name:"Balloon Text Char";
	mso-style-priority:99;
	mso-style-link:"Balloon Text";
	font-family:"Tahoma","sans-serif";}
span.EmailStyle19
	{mso-style-type:personal;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
span.EmailStyle20
	{mso-style-type:personal;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
span.EmailStyle21
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"ZH-CN" link=3D"blue" vlink=3D"purple">
<div class=3D"WordSection1">
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.5pt;color=
:#1F497D">Hi Benjamin/Kristian:<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.5pt;color=
:#1F497D">Sorry to push, but vaapi/wayland integration is blocked by waylan=
d-drm for months.
<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.5pt;color=
:#1F497D">Could you give us some comments on this new proposal by using gbm=
?<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.5pt;color=
:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.5pt;color=
:#1F497D">Thanks.<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.5pt;color=
:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.5pt;color=
:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.5pt;color=
:#1F497D"><o:p>&nbsp;</o:p></span></p>
<div style=3D"border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm =
4.0pt">
<div>
<div style=3D"border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm =
0cm 0cm">
<p class=3D"MsoNormal"><b><span lang=3D"EN-US" style=3D"font-size:10.0pt;fo=
nt-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span =
lang=3D"EN-US" style=3D"font-size:10.0pt;font-family:&quot;Tahoma&quot;,&qu=
ot;sans-serif&quot;"> Zhao, Halley
<br>
<b>Sent:</b> Thursday, April 19, 2012 6:15 PM<br>
<b>To:</b> Zhao, Halley; 'Benjamin Franzke'; 'Kristian H?gsberg'<br>
<b>Cc:</b> Fu, Michael; Zou, Nanhai; mesa-dev at lists.freedesktop.org<br>
<b>Subject:</b> [Patch 1/4] Improve wayland-drm basing on gbm to act as gen=
eric buffer manager for wayland<o:p></o:p></span></p>
</div>
</div>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">(resend, the patch is blocked s=
ince it is big)<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">Hi bnf/krh:<o:p></o:p></span></=
p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">EGL implements wayland-drm prot=
ocol, however, it hasn&#8217;t been used by vappi yet since EGL doesn&#8217=
;t export wl_drm(you think it is bad style).<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">After some thought, I improve w=
ayland-drm to base on gbm instead.
<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">The module name can change to w=
ayland-gbm as well, gbm is platform independent, do you think it&#8217;s ok=
 to export wl_gbm through libEGL?<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">Todo: change file names from *<=
b>_drm</b>* to *_<b>gbm</b>*<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">Additional proposal: could we m=
ove wayland-drm.xml from mesa/egl to Weston? I think Weston is the better p=
lace to define protocol, while egl is one backend to implement it.<o:p></o:=
p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D"><o:p>&n=
bsp;</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">First half of patch 1 since it =
is a little big<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">This patch is just term change =
from drm to gbm in source files.<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D"><o:p>&n=
bsp;</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D">From 04=
aba58c8e942abb373e356e684d96b9c5de5dbf Mon Sep 17 00:00:00 2001<o:p></o:p><=
/span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D">From: H=
alley Zhao &lt;<a href=3D"mailto:halley.zhao at intel.com">halley.zhao at intel.c=
om</a>&gt;<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D">Date: T=
hu, 19 Apr 2012 16:33:21 &#43;0800<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D">Subject=
: [PATCH 1/3] change drm term to gbm<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D"><o:p>&n=
bsp;</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D">---<o:p=
></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D">src/egl=
/drivers/dri2/egl_dri2.c&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbs=
p; 34 &#43;&#43;&#43;---<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D">src/egl=
/drivers/dri2/egl_dri2.h&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbs=
p;&nbsp; 6 &#43;-<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D">src/egl=
/drivers/dri2/platform_wayland.c&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp; 72 &#43;&#43;&#43;&#43;&#43;&#43;&#43=
;-------<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D">.../way=
land/wayland-drm/protocol/wayland-drm.xml&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp; 8=
 &#43;-<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D">src/egl=
/wayland/wayland-drm/wayland-drm.c&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp; |&nbsp; 110 &#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43=
;----------<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D">src/egl=
/wayland/wayland-drm/wayland-drm.h&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp; |&nbsp;&nbsp; 22 &#43;&#43;--<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D">.../egl=
/common/native_wayland_drm_bufmgr_helper.c&nbsp; |&nbsp;&nbsp; 12 &#43;-<o:=
p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D">.../egl=
/common/native_wayland_drm_bufmgr_helper.h&nbsp; |&nbsp;&nbsp; 12 &#43;-<o:=
p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D">src/gal=
lium/state_trackers/egl/drm/native_drm.c&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp; 22=
 &#43;&#43;--<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D">src/gal=
lium/state_trackers/egl/drm/native_drm.h&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nb=
sp; 2 &#43;-<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D">.../sta=
te_trackers/egl/wayland/native_drm.c&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp; |&nbsp;&nbsp; 66 &#43;&#43;&#43;&#43;&#43;&#43;------<o:p></o:p></span>=
</p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D">src/gal=
lium/state_trackers/egl/x11/native_dri2.c&nbsp;&nbsp; |&nbsp;&nbsp; 24 &#43=
;&#43;--<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D">12 file=
s changed, 195 insertions(&#43;), 195 deletions(-)<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D">mode ch=
ange 100644 =3D&gt; 100755 src/egl/wayland/wayland-drm/protocol/wayland-drm=
.xml<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D">mode ch=
ange 100644 =3D&gt; 100755 src/egl/wayland/wayland-drm/wayland-drm.h<o:p></=
o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D">mode ch=
ange 100644 =3D&gt; 100755 src/gallium/state_trackers/egl/wayland/native_dr=
m.c<o:p></o:p></span></p>
</div>
</div>
</body>
</html>

--_000_81DD1C3FC6BE1E4EAA454D486F8200440A11F5SHSMSX101ccrcorpi_--


More information about the mesa-dev mailing list