[Mesa-users] How to use gbm_surface_lock_front_buffer() ?

Bie Tiwei kis.twb at gmail.com
Wed Apr 25 22:44:18 PDT 2012


I modified the code here
(http://cgit.freedesktop.org/~krh/mesa-demos/tree/src/egl/opengl/eglkms.c?h=gbm-surface),
in order to continuous display in the loop.  But it doesn't work. The
output message is:

EGL_VERSION = 1.4 (DRI2)
1
handle=14, stride=7680
2
handle=17, stride=7680
3
handle=14, stride=7680
4
Segmentation fault

gdb's debug message is:
Program received signal SIGSEGV, Segmentation fault.
gbm_bo_get_handle (bo=0x0) at main/gbm.c:231
231        return bo->handle;

Please correct the errors in my code, I really don't know how to use
gbm_surface_lock_front_buffer(), drmModeSetCrtc(), and
drmModePageFlip().  I have googled it for many days, and still can not
figure it out.

Many thanks !
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gbm.try.c
Type: text/x-csrc
Size: 6797 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-users/attachments/20120426/ee4b6607/attachment.c>


More information about the mesa-users mailing list