Hi Benjamin/Kristian:
Sorry to push, but vaapi/wayland integration is blocked by wayland-drm for 
months.
Could you give us some comments on this new proposal by using gbm?

Thanks.



From: Zhao, Halley
Sent: Thursday, April 19, 2012 6:15 PM
To: Zhao, Halley; 'Benjamin Franzke'; 'Kristian H?gsberg'
Cc: Fu, Michael; Zou, Nanhai; mesa-dev@lists.freedesktop.org
Subject: [Patch 1/4] Improve wayland-drm basing on gbm to act as generic buffer 
manager for wayland

(resend, the patch is blocked since it is big)

Hi bnf/krh:
EGL implements wayland-drm protocol, however, it hasn't been used by vappi yet 
since EGL doesn't export wl_drm(you think it is bad style).
After some thought, I improve wayland-drm to base on gbm instead.
The module name can change to wayland-gbm as well, gbm is platform independent, 
do you think it's ok to export wl_gbm through libEGL?

Todo: change file names from *_drm* to *_gbm*
Additional proposal: could we move wayland-drm.xml from mesa/egl to Weston? I 
think Weston is the better place to define protocol, while egl is one backend 
to implement it.

First half of patch 1 since it is a little big
This patch is just term change from drm to gbm in source files.

>From 04aba58c8e942abb373e356e684d96b9c5de5dbf Mon Sep 17 00:00:00 2001
From: Halley Zhao <halley.z...@intel.com<mailto:halley.z...@intel.com>>
Date: Thu, 19 Apr 2012 16:33:21 +0800
Subject: [PATCH 1/3] change drm term to gbm

---
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 => 100755 
src/egl/wayland/wayland-drm/protocol/wayland-drm.xml
mode change 100644 => 100755 src/egl/wayland/wayland-drm/wayland-drm.h
mode change 100644 => 100755 src/gallium/state_trackers/egl/wayland/native_drm.c
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to