Matthew Allum wrote:
Hi;
On Thu, 2008-06-26 at 12:21 -0700, James Ketrenos wrote:
It was segfaulting until I put in the call to explicitly setup the
_gl_bind_tex_image... although the GLX based pixmap doesn't appear to be
working correctly -- it never paints the texture contents (I thought it
was previously, after I commented out
clutter_x11_texture_pixmap_new_with_pixmap it stopped drawing the
redirected window contents)
I committed a small change to when the tex from pixmap extension was set
up earlier today. Can you give trunk a spin and see if helps ?
I updated to the tip but still see the segfault w/out my hack patch to
compiz-glx-texture-pixmap.c.
I also modified test-pixmap to remove the x11_texture_pixmap path (to
only use the glx version):
- /* Note this seemingly just works.. */
- pixmap = win_remote;
-
- tex = clutter_x11_texture_pixmap_new_with_pixmap (pixmap);
-
- clutter_container_add_actor (CLUTTER_CONTAINER (stage), tex);
-
- clutter_x11_texture_pixmap_set_automatic (CLUTTER_X11_TEXTURE_PIXMAP
(tex),
- TRUE);
-
it runs, but I just see an empty gray stage.
HAVE_CLUTTER_GLX is defined to 1 in config.h
Also what card/driver are you running with ?
I'm running on an Intel 945 with Xorg 1.4.0.90. I turned up debug on
clutter and ran my modified test-pixmap. Output attached.
PS -- How do I set the clutter_debug_flags value at run-time? Is there
an environment variable to set?
Thanks,
James
ClutterX11-Message: [BACKEND] clutter-backend-x11.c:132: XOpenDisplay on `:0.0'
ClutterX11-Message: [BACKEND] clutter-backend-x11.c:151: Getting the X screen
ClutterX11-Message: [BACKEND] clutter-backend-x11.c:626: 6 XINPUT devices found
ClutterX11-Message: [BACKEND] clutter-backend-x11.c:640: Considering 0 with
type 1
ClutterX11-Message: [BACKEND] clutter-backend-x11.c:640: Considering 1 with
type 0
ClutterX11-Message: [BACKEND] clutter-backend-x11.c:640: Considering 2 with
type 3
ClutterX11-Message: [BACKEND] clutter-backend-x11.c:683: Registering XINPUT
device with XID: 2
ClutterX11-Message: [BACKEND] clutter-backend-x11.c:640: Considering 3 with
type 4
ClutterX11-Message: [BACKEND] clutter-backend-x11.c:683: Registering XINPUT
device with XID: 3
ClutterX11-Message: [BACKEND] clutter-backend-x11.c:640: Considering 4 with
type 3
ClutterX11-Message: [BACKEND] clutter-backend-x11.c:683: Registering XINPUT
device with XID: 4
ClutterX11-Message: [BACKEND] clutter-backend-x11.c:640: Considering 5 with
type 4
ClutterX11-Message: [BACKEND] clutter-backend-x11.c:683: Registering XINPUT
device with XID: 5
ClutterX11-Message: [BACKEND] clutter-backend-x11.c:202: X Display
`:0.0'[0x805d318] opened (screen:0, root:89, dpi:124.662582)
Clutter-Message: [BACKEND] clutter-stage.c:685: Creating stage from the default
backend
ClutterGLX-Message: [BACKEND] clutter-backend-glx.c:470: Creating stage of type
`ClutterStageGLX'
ClutterGLX-Message: [BACKEND] clutter-backend-glx.c:485: GLX stage created
(display:0x805d318, screen:0, root:89)
ClutterGLX-Message: [MISC] clutter-stage-glx.c:118: Realizing main stage
ClutterGLX-Message: [MISC] clutter-stage-glx.c:160: Creating stage X window
ClutterGLX-Message: [GL] clutter-stage-glx.c:211: Creating GL Context
ClutterGLX-Message: [BACKEND] clutter-stage-glx.c:224: Marking stage as realized
ClutterX11-Message: [BACKEND] clutter-stage-x11.c:346: setting cursor state
('visible') over stage window (54525954)
ClutterGLX-Message: [BACKEND] clutter-backend-glx.c:410: MakeCurrent dpy:
0x805d318, window: 0x3400002 (native), context: 0x806d9a8
Clutter-Message: [MISC] clutter-feature.c:84: checking features
Clutter-Message: [MISC] clutter-feature.c:88: allocating features data
ClutterGLX-Message: [BACKEND] clutter-backend-glx.c:248: Checking features
GL_VENDOR: Tungsten Graphics, Inc
GL_RENDERER: Mesa DRI Intel(R) 945GM 20061017 x86/MMX/SSE2
GL_VERSION: 1.3 Mesa 7.0.3-rc2
GL_EXTENSIONS: GL_ARB_depth_texture GL_ARB_fragment_program GL_ARB_imaging
GL_ARB_multisample GL_ARB_multitexture GL_ARB_point_parameters GL_ARB_shadow
GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_ARB_texture_cube_map
GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar
GL_ARB_texture_env_dot3 GL_ARB_texture_mirrored_repeat GL_ARB_texture_rectangle
GL_ARB_transpose_matrix GL_ARB_vertex_buffer_object GL_ARB_vertex_program
GL_ARB_window_pos GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color
GL_EXT_blend_equation_separate GL_EXT_blend_func_separate GL_EXT_blend_minmax
GL_EXT_blend_subtract GL_EXT_clip_volume_hint GL_EXT_cull_vertex
GL_EXT_compiled_vertex_array GL_EXT_convolution GL_EXT_copy_texture
GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_histogram
GL_EXT_multi_draw_arrays GL_EXT_packed_pixels GL_EXT_point_parameters
GL_EXT_polygon_offset GL_EXT_rescale_normal GL_EXT_secondary_color
GL_EXT_separate_specular_color GL_EXT_shadow_funcs GL_EXT_stencil_wrap
GL_EXT_subtexture GL_EXT_texture GL_EXT_texture3D GL_EXT_texture_edge_clamp
GL_EXT_texture_env_add GL_EXT_texture_env_combine GL_EXT_texture_env_dot3
GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod_bias GL_EXT_texture_object
GL_EXT_texture_rectangle GL_EXT_vertex_array GL_3DFX_texture_compression_FXT1
GL_APPLE_client_storage GL_APPLE_packed_pixels GL_ATI_blend_equation_separate
GL_IBM_rasterpos_clip GL_IBM_texture_mirrored_repeat
GL_INGR_blend_func_separate GL_MESA_pack_invert GL_MESA_ycbcr_texture
GL_MESA_window_pos GL_NV_blend_square GL_NV_light_max_exponent
GL_NV_texture_rectangle GL_NV_texgen_reflection GL_NV_vertex_program
GL_NV_vertex_program1_1 GL_OES_read_format GL_SGI_color_matrix
GL_SGI_color_table GL_SGIS_generate_mipmap GL_SGIS_texture_border_clamp
GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_SGIX_depth_texture
GL_SUN_multi_draw_arrays
ClutterGLX-Message: [BACKEND] clutter-backend-glx.c:254: GLX Extensions:
GLX_ARB_get_proc_address GLX_ARB_multisample GLX_EXT_import_context
GLX_EXT_visual_info GLX_EXT_visual_rating GLX_MESA_allocate_memory
GLX_MESA_copy_sub_buffer GLX_MESA_swap_control GLX_MESA_swap_frame_usage
GLX_OML_swap_method GLX_SGI_make_current_read GLX_SGI_swap_control
GLX_SGI_video_sync GLX_SGIS_multisample GLX_SGIX_fbconfig
GLX_SGIX_visual_select_group
ClutterGLX-Message: [BACKEND] clutter-backend-glx.c:281: attempting
glXSwapIntervalSGI vblank setup
ClutterGLX-Message: [BACKEND] clutter-backend-glx.c:289: glXSwapIntervalSGI
setup success
ClutterGLX-Message: [MISC] clutter-backend-glx.c:348: backend features checked
Clutter-Message: [MISC] clutter-feature.c:103: features checked
ClutterGLX-Message: [TEXTURE] clutter-glx-texture-pixmap.c:458: Creating
GLXPixmap
Clutter-Message: [MISC] clutter-texture.c:195: == mark ==
Clutter-Message: [TEXTURE] clutter-texture.c:1002: set size 150x100
ClutterGLX-Message: [TEXTURE] clutter-glx-texture-pixmap.c:568: Updaing texture
pixmap
ClutterGLX-Message: [TEXTURE] clutter-glx-texture-pixmap.c:590: Really updating
via GLX
ClutterGLX-Message: [TEXTURE] clutter-glx-texture-pixmap.c:546: Created
GLXPixmap
Clutter-Message: [MISC] clutter-main.c:482: == mark ==