Xephyr, DRI, and compiz

KwangYul Seo kwangyul.seo at gmail.com
Tue Sep 30 04:44:00 PDT 2008


The following command solves the problem.

skyul at dev:~$ Xgl :1 -ac -accel glx:fbo &

"-accel glx:fbo" or "-accel glx:pbuffer" enables the accelerated glx.



On Tue, Sep 30, 2008 at 5:13 PM, KwangYul Seo <kwangyul.seo at gmail.com> wrote:
> I tried to get Xgl running with compiz.
>
> skyul at dev:~$ Xgl :1 -ac &
> [1] 22647
> skyul at dev:~$ Could not init font path element
> /usr/share/fonts/X11/TTF/, removing from list!
> Could not init font path element /usr/share/fonts/X11/OTF, removing from list!
> Could not init font path element /usr/share/fonts/X11/CID/, removing from list!
>
> skyul at dev:~$ DISPLAY=:1 compiz &
> [2] 22650
> skyul at dev:~$ Checking for Xgl: FreeFontPath: FPE
> "/usr/share/fonts/X11/misc/" refcount is 2, should be 1; fixing.
> present.
> Checking for nVidia: Could not init font path element
> /usr/share/fonts/X11/TTF/, removing from list!
> Could not init font path element /usr/share/fonts/X11/OTF, removing from list!
> Could not init font path element /usr/share/fonts/X11/CID/, removing from list!
> not present.
> Checking for Xgl: FreeFontPath: FPE "/usr/share/fonts/X11/misc/"
> refcount is 2, should be 1; fixing.
> Could not init font path element /usr/share/fonts/X11/TTF/, removing from list!
> Could not init font path element /usr/share/fonts/X11/OTF, removing from list!
> Could not init font path element /usr/share/fonts/X11/CID/, removing from list!
> present.
> Enabling Xgl with nVidia drivers...
> FreeFontPath: FPE "/usr/share/fonts/X11/misc/" refcount is 2, should
> be 1; fixing.
> Could not init font path element /usr/share/fonts/X11/TTF/, removing from list!
> Could not init font path element /usr/share/fonts/X11/OTF, removing from list!
> Could not init font path element /usr/share/fonts/X11/CID/, removing from list!
> inotify_add_watch: No such file or directory
> /usr/bin/compiz.real (video) - Warn: No 8 bit GLX pixmap format,
> disabling YV12 image format
> Starting gtk-window-decorator
> GConf backend: There is an unsupported value at path
> /apps/compiz/plugins/scale/allscreens/options/initiate_edge. Settings
> from this path won't be read. Try to remove that value so that
> operation can continue properly.
>
> skyul at dev:~$ DISPLAY=:1 gnome-terminal &
>
>
> Compiz seems to work, but glxinfo shows that only the Mesa software
> renderer is available.
>
> skyul at dev:~$ glxinfo
> name of display: :1.0
> display: :1  screen: 0
> direct rendering: No (If you want to find out why, try setting
> LIBGL_DEBUG=verbose)
> server glx vendor string: SGI
> server glx version string: 1.2
> server glx extensions:
>    GLX_ARB_multisample, GLX_EXT_visual_info, GLX_EXT_visual_rating,
>    GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, GLX_OML_swap_method,
>    GLX_SGI_make_current_read, GLX_SGIS_multisample, GLX_SGIX_hyperpipe,
>    GLX_SGIX_swap_barrier, GLX_SGIX_fbconfig
> client glx vendor string: NVIDIA Corporation
> client glx version string: 1.4
> client glx extensions:
>    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_visual_info,
>    GLX_EXT_visual_rating, GLX_EXT_import_context, GLX_SGI_video_sync,
>    GLX_NV_swap_group, GLX_NV_video_out, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,
>    GLX_SGI_swap_control, GLX_NV_float_buffer, GLX_ARB_fbconfig_float,
>    GLX_EXT_fbconfig_packed_float, GLX_EXT_texture_from_pixmap,
>    GLX_EXT_framebuffer_sRGB, GLX_NV_present_video
> GLX version: 1.2
> GLX extensions:
>    GLX_ARB_multisample, GLX_EXT_visual_info, GLX_EXT_visual_rating,
>    GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, GLX_SGIX_fbconfig,
>    GLX_ARB_get_proc_address
> OpenGL vendor string: Mesa project: www.mesa3d.org
> OpenGL renderer string: Mesa GLX Indirect
> OpenGL version string: 1.2 (2.1 Mesa 7.0.3)
> OpenGL extensions:
>    GL_ARB_depth_texture, GL_ARB_fragment_program, GL_ARB_imaging,
>    GL_ARB_multitexture, GL_ARB_point_parameters, GL_ARB_point_sprite,
>    GL_ARB_shadow, GL_ARB_texture_border_clamp, GL_ARB_texture_cube_map,
>    GL_ARB_texture_env_add, GL_ARB_texture_env_combine,
>    GL_ARB_texture_env_dot3, GL_ARB_texture_mirrored_repeat,
>    GL_ARB_texture_non_power_of_two, GL_ARB_vertex_program, GL_ARB_window_pos,
>    GL_ATI_texture_mirror_once, GL_EXT_texture_env_add, GL_EXT_abgr,
>    GL_EXT_bgra, GL_EXT_blend_color, GL_EXT_blend_func_separate,
>    GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_clip_volume_hint,
>    GL_EXT_draw_range_elements, GL_EXT_fog_coord, GL_EXT_framebuffer_object,
>    GL_EXT_multi_draw_arrays, GL_EXT_packed_pixels, GL_EXT_rescale_normal,
>    GL_EXT_secondary_color, GL_EXT_separate_specular_color,
>    GL_EXT_shadow_funcs, GL_EXT_stencil_wrap, GL_EXT_texture3D,
>    GL_EXT_texture_edge_clamp, GL_EXT_texture_env_combine,
>    GL_EXT_texture_env_dot3, GL_EXT_texture_lod_bias, GL_EXT_texture_object,
>    GL_EXT_vertex_array, GL_IBM_texture_mirrored_repeat, GL_NV_blend_square,
>    GL_NV_texgen_reflection, GL_NV_texture_rectangle, GL_SGIS_generate_mipmap,
>    GL_SGIS_texture_lod, GL_SGIX_depth_texture, GL_SGIX_shadow
>
>   visual  x  bf lv rg d st colorbuffer ax dp st accumbuffer  ms  cav
>  id dep cl sp sz l  ci b ro  r  g  b  a bf th cl  r  g  b  a ns b eat
> ----------------------------------------------------------------------
> 0x2c 24 tc  0 32  0 r  y  .  8  8  8  8  0 24  8  0  0  0  0 774519349
> 859517232 None
> 0x2d 24 tc  0 32  0 r  .  .  8  8  8  8  0  0  0  0  0  0  0 825245046
> 1970875946 None
> 0x2e 32 tc  0 32  0 r  y  .  8  8  8  8  0 24  8  0  0  0  0 909327152
> 809330535 Ncon
> 0x2f 32 tc  0 32  0 r  .  .  8  8  8  8  0  0  0  0  0  0  0  0 0 Ncon
>
>
> In Xglx, glxgears consumes 100% CPU. How can I run an OpenGL program
> with hardware acceleration in Xglx?
>
>
> Regards,
> Kwang Yul Seo
>
>
>
> On Mon, Sep 29, 2008 at 7:07 PM, Thomas Ilnseher <illth at gmx.de> wrote:
>>
>> Am Freitag, den 26.09.2008, 13:42 -0700 schrieb Yan Seiner:
>>> I am trying to get Xephyr running with compiz.  The following was
>>> generated with xserver 1.5.0 and xephyr 1.5.0.  I've had the same results
>>> with 1.5.1.
>>
>> Why not using Xglx ? (I know it's a bit rusted now, but it was specially
>> designed to run compiz, and does layer itself above an existing X
>> server)
>>>
>> --
>> Thomas Ilnseher <illth at gmx.de>
>>
>> _______________________________________________
>> xorg mailing list
>> xorg at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/xorg
>>
>



More information about the xorg mailing list