[Mesa-dev] [PATCH 1/2] gbm: Introduce a new API gbm_bo_create_from_name.

Eric Anholt eric at anholt.net
Thu Dec 15 07:57:09 PST 2011


On Thu, 15 Dec 2011 17:58:45 +0800, zhigang.gong at linux.intel.com wrote:
> From: Zhigang Gong <zhigang.gong at linux.intel.com>
> 
> Glamor need a function to create a texture from a
> BO allocated by using libdrm directly in DDX layer.
> EGL image extension API eglCreateImageKHR does support
> this function, but that extension only support one
> colore format - ARGB32 which is not sufficent for
> us. I discussed this in the mail list and KRH suggest
> me to extent GBM to support more color formats should
> be better. I took his advice and decide to use gbm
> bo to create image. Now before extent the color formats,
> I have to add a new API to the create a gbo from a
> name. This commit is for that purpose.

If the DDX is going to be doing the memory management, then the DRI
driver needs to be using the same bufmgr struct and DRI fd as the DDX so
you can share the handle (and thus the mapping and userland caching)
instead of the name.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20111215/3e900341/attachment.pgp>


More information about the mesa-dev mailing list