From: zhengjun <jun...@sa...> - 2009-02-23 10:00:42
|
Hi, folks I'm trying to implement OpenGL and FB interface on an x86 PC. The hw acceleration should be used for the Gfx card. And we don't want to use X. So I think the Mesa on DRI will be fine for the OpenGL interface. And when considering of FB operation, I'm a little confused. AFAIK, it seems that there are 2 way to integrate the FB and Mesa: 1. use the glDrawPixels/CopyPixels functions 2. use glRenderBufferEXT functions I've told that the first way is low efficient, and the second way can not be implemented without X. Is there anyway else, or have I miss anything ? TIA Zheng Jun |
From: Jerome G. <gl...@fr...> - 2009-02-23 12:09:27
|
On Mon, 2009-02-23 at 10:00 +0000, zhengjun wrote: > Hi, folks > > I'm trying to implement OpenGL and FB interface on an x86 PC. > The hw acceleration should be used for the Gfx card. And we don't > want to use X. So I think the Mesa on DRI will be fine for the OpenGL > interface. And when considering of FB operation, I'm a little confused. > AFAIK, it seems that there are 2 way to integrate the FB and Mesa: > 1. use the glDrawPixels/CopyPixels functions > 2. use glRenderBufferEXT functions > > I've told that the first way is low efficient, and the second way can not > be implemented without X. > > Is there anyway else, or have I miss anything ? > > TIA > > Zheng Jun What you mean by FB ? The kernel FB interface ? If so i would suggest that you consider kernel modesetting inside drm, this is where we want to go and with it you can achieve hw accel of GL without X for instance look at wayland http://hoegsberg.blogspot.com/ It uses hw accel through GL without X (the demonstration shows X running inside wayland but X is not involved in wayland accelerated rendering). Most of these is based on EGL one implementation is at: git://people.freedesktop.org/~krh/eagle Although i believe the plan is to add EGL to mesa (it's already there but i think it's not working right now). Cheers, Jerome Glisse |