Rockchip have a custom Xserver which have enable glamor 2D acceleration
I checked the log at /var/log/Xorg.0.log and found glamor initialization failed. There is also log which says EGL_MESA_drm_image required, i checked x-server code and found this message lead to glamor initialization failed.
Apart from these when i run glxinfo, it shows
Quote
name of display: :0.0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
GLX_ARB_create_context, GLX_ARB_create_context_profile,
GLX_ARB_fbconfig_float, GLX_ARB_framebuffer_sRGB, GLX_ARB_multisample,
GLX_EXT_create_context_es2_profile, GLX_EXT_create_context_es_profile,
GLX_EXT_fbconfig_packed_float, GLX_EXT_framebuffer_sRGB,
GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info,
GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer, GLX_OML_swap_method,
GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,
GLX_SGIX_visual_select_group, GLX_SGI_make_current_read
client glx vendor string: Mesa Project and SGI
client glx version string: 1.4
client glx extensions:
It means direct rendering is enabled. But when i run glxgears it consumed almost 18% CPU( So i think glxgear is not able to use GPU and performing all tasks at CPU).
What i am to do:
I have created a application which can decode H264 video using MPP and give me NV12 data, now i need to render this using hw( using opengl and xlib but not drm).
Problem with DRM is that it render data on full screen and hide everything. I want to render through X-window and using GPU.
I have done lot of R&D and strongly feel there must be rockchip specific driver(may be EGL layer) missing due to which opengl is not able to use DRI. I have searched rockchip-linux repository on github but nothing found there.
Kindly suggest how to use GPU for rendering NV12 data.
Question
naseeb
I have Rockchip 3288 board.
As per the link: http://opensource.rock-chips.com/wiki_Graphics
I checked the log at /var/log/Xorg.0.log and found glamor initialization failed. There is also log which says EGL_MESA_drm_image required, i checked x-server code and found this message lead to glamor initialization failed.
Apart from these when i run glxinfo, it shows
It means direct rendering is enabled. But when i run glxgears it consumed almost 18% CPU( So i think glxgear is not able to use GPU and performing all tasks at CPU).
What i am to do:
I have created a application which can decode H264 video using MPP and give me NV12 data, now i need to render this using hw( using opengl and xlib but not drm).
Problem with DRM is that it render data on full screen and hide everything. I want to render through X-window and using GPU.
I have done lot of R&D and strongly feel there must be rockchip specific driver(may be EGL layer) missing due to which opengl is not able to use DRI. I have searched rockchip-linux repository on github but nothing found there.
Kindly suggest how to use GPU for rendering NV12 data.
submit by mistake
Link to comment
Share on other sites
10 answers to this question
Recommended Posts