[mythtv] OpenGL menu background rendering problem

Martin van Es mrvanes at gmail.com
Mon Mar 20 13:02:28 UTC 2006


Hi,

I just discovered the magic of openGL DRI and now have accelrated
opengl mythfrontend menu (with all the nice fading etc.) Yay! :)

But alas, the background image of the mythfrontend menu is not
loaded/shown however, and I can't find anything related in the logs
nor in OpenGL verbose if I set LIBGL_DEBUG=verbose.

It's a VIA EPIA-M motherboard with openchrome via drivers and drm.

I tried widening the AGP aperture from 32Mb to 64 and enlarged the
video memory from 32 to 64 as well, but this didn't help.

I normally run X11 at 1024x600 resolution but even switching back to
800x600 (and restarting X) didn't help. OpenGL picture transition in
Image gallery doesn't work as well... (I see no picture). The buttons
of the menu do show however and mythtv is completely usable. It's just
that the background is now completely white.

Anyone any hints where to look? It feels like a memory problem (not
enough memory to map the background picture as gl texture or so, but I
would suspect a notice of this when I enable LIBGL_DEBUG verbosity?

This is the mythtv.log stripped from mysql queries:
2006-03-20 13:39:18.182 Using runtime prefix = /usr
2006-03-20 13:39:18.381 New DB connection, total: 1
2006-03-20 13:39:18.417 Connected to database 'mythconverg' at host: pandora
2006-03-20 13:39:18.423 Total desktop dim: 1024x600, with 1 screen[s].
2006-03-20 13:39:18.433 Using screen 0, 1024x600 at 0,0
2006-03-20 13:39:18.451 Enabling Settings Cache.
2006-03-20 13:39:18.451 Clearing Settings Cache.
2006-03-20 13:39:18.451 user: 0 effective user: 0 before privileged thread
2006-03-20 13:39:18.453 user: 0 effective user: 0 after privileged thread
2006-03-20 13:39:18.453 user: 0 effective user: 0 run_priv_thread
2006-03-20 13:39:18.454 Disabling Settings Cache.
2006-03-20 13:39:18.454 Clearing Settings Cache.
2006-03-20 13:39:18.460 Current Schema Version: 1132
2006-03-20 13:39:18.461 Enabling Settings Cache.
2006-03-20 13:39:18.461 Clearing Settings Cache.
2006-03-20 13:39:18.461 mythfrontend version: 0.19.20060226-1 www.mythtv.org
2006-03-20 13:39:18.462 Enabled verbose msgs: all
2006-03-20 13:39:19.560 max_width: 1024 max_height: 600
2006-03-20 13:39:19.568 lang0: eng
2006-03-20 13:39:19.569 lang: eng
2006-03-20 13:39:19.695 lang1: eng
2006-03-20 13:39:19.695 lang: eng
2006-03-20 13:39:20.192 Total desktop dim: 1024x600, with 1 screen[s].
2006-03-20 13:39:20.195 Using screen 0, 1024x600 at 0,0
2006-03-20 13:39:20.203 Switching to square mode (blue)
libGL: XF86DRIGetClientDriverName: 5.0.0 unichrome (screen 0)
libGL: OpenDriver: trying /usr/X11R6/lib/modules/dri/unichrome_dri.so
drmOpenByBusid: Searching for BusID PCI:1:0:0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 9, (OK)
drmOpenByBusid: drmOpenMinor returns 9
drmOpenByBusid: drmGetBusid reports pci:0000:01:00.0
__driCreateNewScreen_20050727 - succeeded
libGL error:
Can't open configuration file /etc/drirc: No such file or directory.
libGL error:
Can't open configuration file /root/.drirc: No such file or directory.
2006-03-20 13:39:22.931 Clearing Settings Cache for 'Language'.
2006-03-20 13:39:22.931 Clearing Settings Cache.
2006-03-20 13:39:23.185 Registering Internal as a media playback plugin.
2006-03-20 13:39:23.225 Disabling Settings Cache.
2006-03-20 13:39:23.225 Clearing Settings Cache.
2006-03-20 13:39:23.231 Enabling Settings Cache.
2006-03-20 13:39:23.231 Clearing Settings Cache.
2006-03-20 13:39:23.272 Registering MythDVD DVD Media Handler as a media handler
2006-03-20 13:39:23.274 Registering MythDVD VCD Media Handler as a media handler
2006-03-20 13:39:23.305 Disabling Settings Cache.
2006-03-20 13:39:23.305 Clearing Settings Cache.
2006-03-20 13:39:23.311 Enabling Settings Cache.
2006-03-20 13:39:23.311 Clearing Settings Cache.
2006-03-20 13:39:23.488 Disabling Settings Cache.
2006-03-20 13:39:23.489 Clearing Settings Cache.
2006-03-20 13:39:23.494 Enabling Settings Cache.
2006-03-20 13:39:23.495 Clearing Settings Cache.
Failed to run 'cdrecord --scanbus'
Failed to run 'cdrecord --scanbus'
2006-03-20 13:39:28.375 Registering MythMusic Media Handler as a media handler
2006-03-20 13:39:28.428 Disabling Settings Cache.
2006-03-20 13:39:28.428 Clearing Settings Cache.
2006-03-20 13:39:28.433 Enabling Settings Cache.
2006-03-20 13:39:28.434 Clearing Settings Cache.
2006-03-20 13:39:36.245 Connecting to backend server: 192.168.1.4:6543
(try 1 of 5)
2006-03-20 13:39:36.248 write -> 10 21      MYTH_PROTO_VERSION 27
2006-03-20 13:39:36.254 read  <- 10 13      ACCEPT[]:[]27
2006-03-20 13:39:36.254 Using protocol version 27
2006-03-20 13:39:36.255 write -> 10 21      ANN Monitor pandora 0
2006-03-20 13:39:36.264 read  <- 10 2       OK
2006-03-20 13:39:36.294 write -> 10 35      QUERY_IS_ACTIVE_BACKEND[]:[]pandora
2006-03-20 13:39:36.301 read  <- 10 4       TRUE
2006-03-20 13:39:36.316 write -> 11 21      ANN Monitor pandora 1
2006-03-20 13:39:36.427 read  <- 11 2       OK

glxinfo:
name of display: :0.0
display: :0  screen: 0
direct rendering: Yes
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_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: SGI
client glx version string: 1.4
client 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_swap_control, GLX_MESA_swap_frame_usage, GLX_OML_swap_method,
    GLX_OML_sync_control, GLX_SGI_make_current_read, GLX_SGI_swap_control,
    GLX_SGI_video_sync, GLX_SGIS_multisample, GLX_SGIX_fbconfig,
    GLX_SGIX_pbuffer, GLX_SGIX_visual_select_group
GLX extensions:
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_swap_control,
    GLX_MESA_swap_frame_usage, GLX_OML_swap_method, GLX_SGI_video_sync,
    GLX_SGIS_multisample, GLX_SGIX_fbconfig
OpenGL vendor string: VIA Technology
OpenGL renderer string: Mesa DRI CastleRock (CLE266) 20050526 x86/MMX
OpenGL version string: 1.2 Mesa 6.4.2
OpenGL extensions:
    GL_ARB_imaging, GL_ARB_multisample, GL_ARB_multitexture,
    GL_ARB_point_parameters, GL_ARB_texture_env_add,
    GL_ARB_texture_env_combine, GL_ARB_texture_mirrored_repeat,
    GL_ARB_transpose_matrix, GL_ARB_window_pos, GL_EXT_abgr, GL_EXT_bgra,
    GL_EXT_blend_color, GL_EXT_blend_minmax, GL_EXT_blend_subtract,
    GL_EXT_clip_volume_hint, 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_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_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_lod_bias, GL_EXT_texture_object, GL_EXT_vertex_array,
    GL_APPLE_packed_pixels, GL_IBM_rasterpos_clip,
    GL_IBM_texture_mirrored_repeat, GL_MESA_window_pos, GL_NV_blend_square,
    GL_NV_light_max_exponent, GL_NV_texgen_reflection, GL_OES_read_format,
    GL_SGI_color_matrix, GL_SGI_color_table, GL_SGIS_texture_edge_clamp,
    GL_SGIS_texture_lod
glu version: 1.3
glu extensions:
    GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess

   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
----------------------------------------------------------------------
0x22 24 tc  0 32  0 r  y  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0x23 24 tc  0 32  0 r  .  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0x24 24 tc  0 32  0 r  y  .  8  8  8  8  0 16  0  0  0  0  0  0 0 None
0x25 24 tc  0 32  0 r  .  .  8  8  8  8  0 16  0  0  0  0  0  0 0 None
0x26 24 tc  0 32  0 r  y  .  8  8  8  8  0  0  0  0  0  0  0  0 0 None
0x27 24 tc  0 32  0 r  .  .  8  8  8  8  0  0  0  0  0  0  0  0 0 None
0x28 24 tc  0 32  0 r  y  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow
0x29 24 tc  0 32  0 r  .  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow
0x2a 24 tc  0 32  0 r  y  .  8  8  8  8  0 16  0 16 16 16 16  0 0 Slow
0x2b 24 tc  0 32  0 r  .  .  8  8  8  8  0 16  0 16 16 16 16  0 0 Slow
0x2c 24 tc  0 32  0 r  y  .  8  8  8  8  0  0  0 16 16 16 16  0 0 Slow
0x2d 24 tc  0 32  0 r  .  .  8  8  8  8  0  0  0 16 16 16 16  0 0 Slow


glxgears (including LIBGL_DEBUG output):
libGL: XF86DRIGetClientDriverName: 5.0.0 unichrome (screen 0)
libGL: OpenDriver: trying /usr/X11R6/lib/modules/dri/unichrome_dri.so
drmOpenByBusid: Searching for BusID PCI:1:0:0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 4, (OK)
drmOpenByBusid: drmOpenMinor returns 4
drmOpenByBusid: drmGetBusid reports pci:0000:01:00.0
__driCreateNewScreen_20050727 - succeeded
libGL error:
Can't open configuration file /etc/drirc: No such file or directory.
libGL error:
Can't open configuration file /root/.drirc: No such file or directory.
2253 frames in 5.0 seconds = 450.479 FPS



Grtz.
Martin
--
if but was any useful, it would be a logic operator


More information about the mythtv-dev mailing list