[Glamor] [PATCH] Allow to create textured pixmaps from gbm_bo without using gem names

davyaxel at free.fr davyaxel at free.fr
Sat Nov 23 06:25:23 PST 2013


On 23/11/2013 15:06, zhigang gong wrote :
> Right, the DRI2 case need to get name or get handle of a pixmap, for traditional xserver,
> as it always share the same fd and in the same process, get handle should be good
> enough. I'm not familiar with xwayland. Is it also enough for the Xwayland to get a pixmap's
> handle for the DRI2 case?
> I just checked the intel video driver, and it seems the DRI3 support is not merged to the upstream.
> I found that Keith already implemented the DRI3 for UXA driver on his personal repository's dri3
> branch. I understand that your focus is xwayland currently, but if you can verify these new APIs on
> traditional xserver platform, it will be very convenient to test and verify.  That will need some extra
> effort to add glamor support to the dri3 branch's intel_dri3.c.
> Thanks,
> Zhigang Gong.
>


This is very likely that dri2 support will be dropped for XWayland, once dri3 is ready.
Currently the dri2 implementation is similar to the xf86-video-ati implementation.

I think Keithp has proposed his dri3 patches to the intel DDX for merging. So the support should come soon.

The code to add dri3 support to the DDX can be quite small, 
as you can see in Keith intel DDX repository: the code is about a file of 180 lines.

I don't know how the intel DDX works with glamor, 
but I imagine 'pixmap_from_fd' and 'fd_from_pixmap' could just call directly the glamor dri3 helpers.
And 'open' would be the same than Keith's implementation.


Axel Davy


More information about the Glamor mailing list