Coder Social home page Coder Social logo

non-dumb gltex doesn’t work about kmscon HOT 8 CLOSED

dvdhrm avatar dvdhrm commented on June 27, 2024
non-dumb gltex doesn’t work

from kmscon.

Comments (8)

towolf avatar towolf commented on June 27, 2024

My glxinfo

$ glxinfo  -l 
name of display: :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_multisample, GLX_EXT_create_context_es2_profile, 
    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_SGI_swap_control, GLX_SGIS_multisample, GLX_SGIX_fbconfig, 
    GLX_SGIX_pbuffer, GLX_SGIX_visual_select_group, GLX_INTEL_swap_event
client glx vendor string: Mesa Project and SGI
client glx version string: 1.4
client glx extensions:
    GLX_ARB_create_context, GLX_ARB_create_context_profile, 
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context, 
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_framebuffer_sRGB, 
    GLX_EXT_create_context_es2_profile, GLX_MESA_copy_sub_buffer, 
    GLX_MESA_multithread_makecurrent, GLX_MESA_swap_control, 
    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_EXT_texture_from_pixmap, GLX_INTEL_swap_event
GLX version: 1.4
GLX extensions:
    GLX_ARB_create_context, GLX_ARB_create_context_profile, 
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context, 
    GLX_EXT_visual_info, GLX_EXT_visual_rating, 
    GLX_EXT_create_context_es2_profile, GLX_MESA_copy_sub_buffer, 
    GLX_MESA_multithread_makecurrent, GLX_MESA_swap_control, 
    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_EXT_texture_from_pixmap
OpenGL vendor string: Tungsten Graphics, Inc
OpenGL renderer string: Mesa DRI Mobile Intel® GM45 Express Chipset 
OpenGL version string: 2.1 Mesa 8.0.4
OpenGL shading language version string: 1.20
OpenGL extensions:
    GL_ARB_multisample, GL_EXT_abgr, GL_EXT_bgra, GL_EXT_blend_color, 
    GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_copy_texture, 
    GL_EXT_polygon_offset, GL_EXT_subtexture, GL_EXT_texture_object, 
    GL_EXT_vertex_array, GL_EXT_compiled_vertex_array, GL_EXT_texture, 
    GL_EXT_texture3D, GL_IBM_rasterpos_clip, GL_ARB_point_parameters, 
    GL_EXT_draw_range_elements, GL_EXT_packed_pixels, GL_EXT_point_parameters, 
    GL_EXT_rescale_normal, GL_EXT_separate_specular_color, 
    GL_EXT_texture_edge_clamp, GL_SGIS_generate_mipmap, 
    GL_SGIS_texture_border_clamp, GL_SGIS_texture_edge_clamp, 
    GL_SGIS_texture_lod, GL_ARB_framebuffer_sRGB, GL_ARB_multitexture, 
    GL_EXT_framebuffer_sRGB, GL_IBM_multimode_draw_arrays, 
    GL_IBM_texture_mirrored_repeat, GL_3DFX_texture_compression_FXT1, 
    GL_ARB_texture_cube_map, GL_ARB_texture_env_add, GL_ARB_transpose_matrix, 
    GL_EXT_blend_func_separate, GL_EXT_fog_coord, GL_EXT_multi_draw_arrays, 
    GL_EXT_secondary_color, GL_EXT_texture_env_add, 
    GL_EXT_texture_filter_anisotropic, GL_EXT_texture_lod_bias, 
    GL_INGR_blend_func_separate, GL_NV_blend_square, GL_NV_light_max_exponent, 
    GL_NV_texgen_reflection, GL_NV_texture_env_combine4, 
    GL_SUN_multi_draw_arrays, GL_ARB_texture_border_clamp, 
    GL_ARB_texture_compression, GL_EXT_framebuffer_object, 
    GL_EXT_texture_env_combine, GL_EXT_texture_env_dot3, GL_MESA_window_pos, 
    GL_NV_packed_depth_stencil, GL_NV_texture_rectangle, GL_NV_vertex_program, 
    GL_ARB_depth_texture, GL_ARB_occlusion_query, GL_ARB_shadow, 
    GL_ARB_texture_env_combine, GL_ARB_texture_env_crossbar, 
    GL_ARB_texture_env_dot3, GL_ARB_texture_mirrored_repeat, 
    GL_ARB_window_pos, GL_ATI_envmap_bumpmap, GL_EXT_stencil_two_side, 
    GL_EXT_texture_cube_map, GL_NV_depth_clamp, GL_NV_vertex_program1_1, 
    GL_APPLE_packed_pixels, GL_APPLE_vertex_array_object, GL_ARB_draw_buffers, 
    GL_ARB_fragment_program, GL_ARB_fragment_shader, GL_ARB_shader_objects, 
    GL_ARB_vertex_program, GL_ARB_vertex_shader, GL_ATI_draw_buffers, 
    GL_ATI_texture_env_combine3, GL_ATI_texture_float, GL_EXT_shadow_funcs, 
    GL_EXT_stencil_wrap, GL_MESA_pack_invert, GL_MESA_ycbcr_texture, 
    GL_ARB_depth_clamp, GL_ARB_fragment_program_shadow, 
    GL_ARB_half_float_pixel, GL_ARB_point_sprite, GL_ARB_shading_language_100, 
    GL_ARB_sync, GL_ARB_texture_non_power_of_two, GL_ARB_vertex_buffer_object, 
    GL_ATI_blend_equation_separate, GL_EXT_blend_equation_separate, 
    GL_OES_read_format, GL_ARB_color_buffer_float, GL_ARB_pixel_buffer_object, 
    GL_ARB_texture_compression_rgtc, GL_ARB_texture_float, 
    GL_ARB_texture_rectangle, GL_EXT_packed_float, GL_EXT_pixel_buffer_object, 
    GL_EXT_texture_compression_rgtc, GL_EXT_texture_rectangle, 
    GL_EXT_texture_sRGB, GL_EXT_texture_shared_exponent, 
    GL_ARB_framebuffer_object, GL_EXT_framebuffer_blit, 
    GL_EXT_framebuffer_multisample, GL_EXT_packed_depth_stencil, 
    GL_APPLE_object_purgeable, GL_ARB_vertex_array_object, 
    GL_ATI_separate_stencil, GL_EXT_draw_buffers2, 
    GL_EXT_gpu_program_parameters, GL_EXT_texture_array, 
    GL_EXT_texture_integer, GL_EXT_texture_sRGB_decode, GL_OES_EGL_image, 
    GL_MESA_texture_array, GL_ARB_copy_buffer, GL_ARB_depth_buffer_float, 
    GL_ARB_half_float_vertex, GL_ARB_map_buffer_range, GL_ARB_texture_rg, 
    GL_ARB_texture_swizzle, GL_ARB_vertex_array_bgra, 
    GL_EXT_separate_shader_objects, GL_EXT_texture_swizzle, 
    GL_EXT_vertex_array_bgra, GL_NV_conditional_render, 
    GL_ARB_ES2_compatibility, GL_ARB_draw_elements_base_vertex, 
    GL_ARB_explicit_attrib_location, GL_ARB_fragment_coord_conventions, 
    GL_ARB_provoking_vertex, GL_ARB_sampler_objects, GL_ARB_seamless_cube_map, 
    GL_ARB_shader_texture_lod, GL_EXT_provoking_vertex, GL_EXT_texture_snorm, 
    GL_MESA_texture_signed_rgba, GL_ARB_robustness
OpenGL limits:
    GL_MAX_ATTRIB_STACK_DEPTH = 16
    GL_MAX_CLIENT_ATTRIB_STACK_DEPTH = 16
    GL_MAX_CLIP_PLANES = 6
    GL_MAX_ELEMENTS_VERTICES = 3000
    GL_MAX_ELEMENTS_INDICES = 3000
    GL_MAX_EVAL_ORDER = 30
    GL_MAX_LIGHTS = 8
    GL_MAX_LIST_NESTING = 64
    GL_MAX_MODELVIEW_STACK_DEPTH = 32
    GL_MAX_NAME_STACK_DEPTH = 64
    GL_MAX_PIXEL_MAP_TABLE = 256
    GL_MAX_PROJECTION_STACK_DEPTH = 32
    GL_MAX_TEXTURE_STACK_DEPTH = 10
    GL_MAX_TEXTURE_SIZE = 8192
    GL_MAX_3D_TEXTURE_SIZE = 256
    GL_MAX_VIEWPORT_DIMS = 16384, 16384
    GL_ALIASED_LINE_WIDTH_RANGE = 1, 5
    GL_SMOOTH_LINE_WIDTH_RANGE = 1, 5
    GL_ALIASED_POINT_SIZE_RANGE = 1, 255
    GL_SMOOTH_POINT_SIZE_RANGE = 1, 255
    GL_MAX_CUBE_MAP_TEXTURE_SIZE_ARB = 2048
    GL_MAX_RECTANGLE_TEXTURE_SIZE_NV = 4096
    GL_NUM_COMPRESSED_TEXTURE_FORMATS_ARB = 2
    GL_MAX_TEXTURE_UNITS_ARB = 8
    GL_MAX_TEXTURE_LOD_BIAS_EXT = 14
    GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT = 16
    GL_MAX_DRAW_BUFFERS_ARB = 8
    GL_VERTEX_PROGRAM_ARB:
        GL_MAX_PROGRAM_INSTRUCTIONS_ARB = 16384
        GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB = 16384
        GL_MAX_PROGRAM_TEMPORARIES_ARB = 256
        GL_MAX_PROGRAM_NATIVE_TEMPORARIES_ARB = 256
        GL_MAX_PROGRAM_PARAMETERS_ARB = 4096
        GL_MAX_PROGRAM_NATIVE_PARAMETERS_ARB = 1024
        GL_MAX_PROGRAM_ATTRIBS_ARB = 16
        GL_MAX_PROGRAM_NATIVE_ATTRIBS_ARB = 16
        GL_MAX_PROGRAM_ADDRESS_REGISTERS_ARB = 1
        GL_MAX_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB = 1
        GL_MAX_PROGRAM_LOCAL_PARAMETERS_ARB = 4096
        GL_MAX_PROGRAM_ENV_PARAMETERS_ARB = 256
    GL_FRAGMENT_PROGRAM_ARB:
        GL_MAX_PROGRAM_INSTRUCTIONS_ARB = 16384
        GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB = 16384
        GL_MAX_PROGRAM_TEMPORARIES_ARB = 256
        GL_MAX_PROGRAM_NATIVE_TEMPORARIES_ARB = 256
        GL_MAX_PROGRAM_PARAMETERS_ARB = 64
        GL_MAX_PROGRAM_NATIVE_PARAMETERS_ARB = 1024
        GL_MAX_PROGRAM_ATTRIBS_ARB = 12
        GL_MAX_PROGRAM_NATIVE_ATTRIBS_ARB = 12
        GL_MAX_PROGRAM_ADDRESS_REGISTERS_ARB = 0
        GL_MAX_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB = 0
        GL_MAX_PROGRAM_LOCAL_PARAMETERS_ARB = 4096
        GL_MAX_PROGRAM_ENV_PARAMETERS_ARB = 256
        GL_MAX_PROGRAM_ALU_INSTRUCTIONS_ARB = 16384
        GL_MAX_PROGRAM_TEX_INSTRUCTIONS_ARB = 16384
        GL_MAX_PROGRAM_TEX_INDIRECTIONS_ARB = 16384
        GL_MAX_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB = 16384
        GL_MAX_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB = 16384
        GL_MAX_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB = 16384
    GL_VERTEX_SHADER_ARB:
        GL_MAX_VERTEX_UNIFORM_COMPONENTS_ARB = 16384
        GL_MAX_VARYING_FLOATS_ARB = 64
        GL_MAX_VERTEX_ATTRIBS_ARB = 16
        GL_MAX_TEXTURE_IMAGE_UNITS_ARB = 16
        GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB = 16
        GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB = 32
        GL_MAX_TEXTURE_COORDS_ARB = 8
    GL_FRAGMENT_SHADER_ARB:
        GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB = 16384
        GL_MAX_TEXTURE_COORDS_ARB = 8
        GL_MAX_TEXTURE_IMAGE_UNITS_ARB = 16

32 GLX Visuals
    visual  x   bf lv rg d st  colorbuffer  sr ax dp st accumbuffer  ms  cav
  id dep cl sp  sz l  ci b ro  r  g  b  a F gb bf th cl  r  g  b  a ns b eat
----------------------------------------------------------------------------
0x021 24 tc  0  32  0 r  y .   8  8  8  8 .  .  0 24  8  0  0  0  0  0 0 None
0x022 24 dc  0  32  0 r  y .   8  8  8  8 .  .  0 24  8  0  0  0  0  0 0 None
0x094 24 tc  0  24  0 r  . .   8  8  8  0 .  .  0  0  0  0  0  0  0  0 0 None
0x095 24 tc  0  24  0 r  y .   8  8  8  0 .  .  0  0  0  0  0  0  0  0 0 None
0x096 24 tc  0  24  0 r  y .   8  8  8  0 .  .  0  0  0  0  0  0  0  0 0 None
0x097 24 tc  0  24  0 r  . .   8  8  8  0 .  .  0 24  8  0  0  0  0  0 0 None
0x098 24 tc  0  24  0 r  y .   8  8  8  0 .  .  0 24  8  0  0  0  0  0 0 None
0x099 24 tc  0  24  0 r  y .   8  8  8  0 .  .  0 24  8  0  0  0  0  0 0 None
0x09a 24 tc  0  32  0 r  . .   8  8  8  8 .  .  0  0  0  0  0  0  0  0 0 None
0x09b 24 tc  0  32  0 r  y .   8  8  8  8 .  .  0  0  0  0  0  0  0  0 0 None
0x09c 24 tc  0  32  0 r  y .   8  8  8  8 .  .  0  0  0  0  0  0  0  0 0 None
0x09d 24 tc  0  32  0 r  . .   8  8  8  8 .  .  0 24  8  0  0  0  0  0 0 None
0x09e 24 tc  0  24  0 r  y .   8  8  8  0 .  .  0 24  8  0  0  0  0  0 0 None
0x09f 24 tc  0  24  0 r  y .   8  8  8  0 .  .  0 24  8 16 16 16  0  0 0 Slow
0x0a0 24 tc  0  32  0 r  y .   8  8  8  8 .  .  0 24  8  0  0  0  0  0 0 None
0x0a1 24 tc  0  32  0 r  y .   8  8  8  8 .  .  0 24  8 16 16 16 16  0 0 Slow
0x0a2 24 dc  0  24  0 r  . .   8  8  8  0 .  .  0  0  0  0  0  0  0  0 0 None
0x0a3 24 dc  0  24  0 r  y .   8  8  8  0 .  .  0  0  0  0  0  0  0  0 0 None
0x0a4 24 dc  0  24  0 r  y .   8  8  8  0 .  .  0  0  0  0  0  0  0  0 0 None
0x0a5 24 dc  0  24  0 r  . .   8  8  8  0 .  .  0 24  8  0  0  0  0  0 0 None
0x0a6 24 dc  0  24  0 r  y .   8  8  8  0 .  .  0 24  8  0  0  0  0  0 0 None
0x0a7 24 dc  0  24  0 r  y .   8  8  8  0 .  .  0 24  8  0  0  0  0  0 0 None
0x0a8 24 dc  0  32  0 r  . .   8  8  8  8 .  .  0  0  0  0  0  0  0  0 0 None
0x0a9 24 dc  0  32  0 r  y .   8  8  8  8 .  .  0  0  0  0  0  0  0  0 0 None
0x0aa 24 dc  0  32  0 r  y .   8  8  8  8 .  .  0  0  0  0  0  0  0  0 0 None
0x0ab 24 dc  0  32  0 r  . .   8  8  8  8 .  .  0 24  8  0  0  0  0  0 0 None
0x0ac 24 dc  0  32  0 r  y .   8  8  8  8 .  .  0 24  8  0  0  0  0  0 0 None
0x0ad 24 dc  0  24  0 r  y .   8  8  8  0 .  .  0 24  8  0  0  0  0  0 0 None
0x0ae 24 dc  0  24  0 r  y .   8  8  8  0 .  .  0 24  8 16 16 16  0  0 0 Slow
0x0af 24 dc  0  32  0 r  y .   8  8  8  8 .  .  0 24  8  0  0  0  0  0 0 None
0x0b0 24 dc  0  32  0 r  y .   8  8  8  8 .  .  0 24  8 16 16 16 16  0 0 Slow
0x063 32 tc  0  32  0 r  y .   8  8  8  8 .  .  0 24  8  0  0  0  0  0 0 None

48 GLXFBConfigs:
    visual  x   bf lv rg d st  colorbuffer  sr ax dp st accumbuffer  ms  cav
  id dep cl sp  sz l  ci b ro  r  g  b  a F gb bf th cl  r  g  b  a ns b eat
----------------------------------------------------------------------------
0x064  0 tc  0  16  0 r  . .   5  6  5  0 .  .  0  0  0  0  0  0  0  0 0 None
0x065  0 tc  0  16  0 r  y .   5  6  5  0 .  .  0  0  0  0  0  0  0  0 0 None
0x066  0 tc  0  16  0 r  y .   5  6  5  0 .  .  0  0  0  0  0  0  0  0 0 None
0x067  0 tc  0  16  0 r  . .   5  6  5  0 .  .  0 16  0  0  0  0  0  0 0 None
0x068  0 tc  0  16  0 r  y .   5  6  5  0 .  .  0 16  0  0  0  0  0  0 0 None
0x069  0 tc  0  16  0 r  y .   5  6  5  0 .  .  0 16  0  0  0  0  0  0 0 None
0x06a 24 tc  0  24  0 r  . .   8  8  8  0 .  .  0  0  0  0  0  0  0  0 0 None
0x06b 24 tc  0  24  0 r  y .   8  8  8  0 .  .  0  0  0  0  0  0  0  0 0 None
0x06c 24 tc  0  24  0 r  y .   8  8  8  0 .  .  0  0  0  0  0  0  0  0 0 None
0x06d 24 tc  0  24  0 r  . .   8  8  8  0 .  .  0 24  8  0  0  0  0  0 0 None
0x06e 24 tc  0  24  0 r  y .   8  8  8  0 .  .  0 24  8  0  0  0  0  0 0 None
0x06f 24 tc  0  24  0 r  y .   8  8  8  0 .  .  0 24  8  0  0  0  0  0 0 None
0x070 24 tc  0  32  0 r  . .   8  8  8  8 .  .  0  0  0  0  0  0  0  0 0 None
0x071 24 tc  0  32  0 r  y .   8  8  8  8 .  .  0  0  0  0  0  0  0  0 0 None
0x072 24 tc  0  32  0 r  y .   8  8  8  8 .  .  0  0  0  0  0  0  0  0 0 None
0x073 24 tc  0  32  0 r  . .   8  8  8  8 .  .  0 24  8  0  0  0  0  0 0 None
0x074 24 tc  0  32  0 r  y .   8  8  8  8 .  .  0 24  8  0  0  0  0  0 0 None
0x075 32 tc  0  32  0 r  y .   8  8  8  8 .  .  0 24  8  0  0  0  0  0 0 None
0x076  0 tc  0  16  0 r  y .   5  6  5  0 .  .  0 16  0  0  0  0  0  0 0 None
0x077  0 tc  0  16  0 r  y .   5  6  5  0 .  .  0 16  0 16 16 16  0  0 0 Slow
0x078 24 tc  0  24  0 r  y .   8  8  8  0 .  .  0 24  8  0  0  0  0  0 0 None
0x079 24 tc  0  24  0 r  y .   8  8  8  0 .  .  0 24  8 16 16 16  0  0 0 Slow
0x07a 24 tc  0  32  0 r  y .   8  8  8  8 .  .  0 24  8  0  0  0  0  0 0 None
0x07b 24 tc  0  32  0 r  y .   8  8  8  8 .  .  0 24  8 16 16 16 16  0 0 Slow
0x07c  0 dc  0  16  0 r  . .   5  6  5  0 .  .  0  0  0  0  0  0  0  0 0 None
0x07d  0 dc  0  16  0 r  y .   5  6  5  0 .  .  0  0  0  0  0  0  0  0 0 None
0x07e  0 dc  0  16  0 r  y .   5  6  5  0 .  .  0  0  0  0  0  0  0  0 0 None
0x07f  0 dc  0  16  0 r  . .   5  6  5  0 .  .  0 16  0  0  0  0  0  0 0 None
0x080  0 dc  0  16  0 r  y .   5  6  5  0 .  .  0 16  0  0  0  0  0  0 0 None
0x081  0 dc  0  16  0 r  y .   5  6  5  0 .  .  0 16  0  0  0  0  0  0 0 None
0x082 24 dc  0  24  0 r  . .   8  8  8  0 .  .  0  0  0  0  0  0  0  0 0 None
0x083 24 dc  0  24  0 r  y .   8  8  8  0 .  .  0  0  0  0  0  0  0  0 0 None
0x084 24 dc  0  24  0 r  y .   8  8  8  0 .  .  0  0  0  0  0  0  0  0 0 None
0x085 24 dc  0  24  0 r  . .   8  8  8  0 .  .  0 24  8  0  0  0  0  0 0 None
0x086 24 dc  0  24  0 r  y .   8  8  8  0 .  .  0 24  8  0  0  0  0  0 0 None
0x087 24 dc  0  24  0 r  y .   8  8  8  0 .  .  0 24  8  0  0  0  0  0 0 None
0x088 24 dc  0  32  0 r  . .   8  8  8  8 .  .  0  0  0  0  0  0  0  0 0 None
0x089 24 dc  0  32  0 r  y .   8  8  8  8 .  .  0  0  0  0  0  0  0  0 0 None
0x08a 24 dc  0  32  0 r  y .   8  8  8  8 .  .  0  0  0  0  0  0  0  0 0 None
0x08b 24 dc  0  32  0 r  . .   8  8  8  8 .  .  0 24  8  0  0  0  0  0 0 None
0x08c 24 dc  0  32  0 r  y .   8  8  8  8 .  .  0 24  8  0  0  0  0  0 0 None
0x08d 24 dc  0  32  0 r  y .   8  8  8  8 .  .  0 24  8  0  0  0  0  0 0 None
0x08e  0 dc  0  16  0 r  y .   5  6  5  0 .  .  0 16  0  0  0  0  0  0 0 None
0x08f  0 dc  0  16  0 r  y .   5  6  5  0 .  .  0 16  0 16 16 16  0  0 0 Slow
0x090 24 dc  0  24  0 r  y .   8  8  8  0 .  .  0 24  8  0  0  0  0  0 0 None
0x091 24 dc  0  24  0 r  y .   8  8  8  0 .  .  0 24  8 16 16 16  0  0 0 Slow
0x092 24 dc  0  32  0 r  y .   8  8  8  8 .  .  0 24  8  0  0  0  0  0 0 None
0x093 24 dc  0  32  0 r  y .   8  8  8  8 .  .  0 24  8 16 16 16 16  0 0 Slow

from kmscon.

dvdhrm avatar dvdhrm commented on June 27, 2024

If you use --dumb then hardware-acceleration is disabled. Obviously this works ;)
Can you try with the default font? Does this work? And can you also add --enable-debug to compile flags and run kmscon with --debug. This should add much more verbose information.
Thanks!

from kmscon.

towolf avatar towolf commented on June 27, 2024

Can you try with the default font? Does this work?

Nope.

BTW, the built-in font, is that FixedSys?

And can you also add --enable-debug to compile flags and run kmscon
with --debug. This should add much more verbose information.
Thanks!

I posted the whole thing to
pastebin, here’s the inital stuff:

[0000.000000] NOTICE: kmscon Build #1 Aug 20 2012 00:31:13
[0000.000804] DEBUG: text_font: register font backend 8x16 (kmscon_font_register() in src/text_font.c:174)
[0000.001220] DEBUG: text_font: register font backend pango (kmscon_font_register() in src/text_font.c:174)
[0000.001560] DEBUG: text_font: register font backend freetype2 (kmscon_font_register() in src/text_font.c:174)
[0000.001887] DEBUG: text: register text backend bblit (kmscon_text_register() in src/text.c:86)
[0000.002211] DEBUG: text: register text backend gltex (kmscon_text_register() in src/text.c:86)
[0000.002559] DEBUG: eloop: new eloop object 0x1570040 (ev_eloop_new() in src/eloop.c:584)
[0000.002936] DEBUG: eloop: new eloop object 0x1570510 (ev_eloop_new() in src/eloop.c:584)
[0000.023708] DEBUG: input_uxkb: new keyboard description (us, , ) (uxkb_desc_init() in src/uterm_input_uxkb.c:236)
[0000.024022] DEBUG: input: new object 0x1570f60 (uterm_input_new() in src/uterm_input.c:276)
[0000.024131] DEBUG: vt: open vt 0x1577d30 (real_open() in src/uterm_vt.c:213)
[0000.024252] NOTICE: vt: using tty /dev/tty1
[0000.024428] DEBUG: console: new console (kmscon_console_new() in src/console.c:409)
[0000.024531] DEBUG: vte: new vte object (kmscon_vte_new() in src/vte.c:371)
[0000.024623] DEBUG: pty: new pty object (kmscon_pty_new() in src/pty.c:87)
[0000.024710] DEBUG: terminal: new terminal object 0x1585750 (kmscon_terminal_new() in src/terminal.c:392)
[0000.024892] DEBUG: pty: forking child (pty_spawn() in src/pty.c:247)
[0000.025539] INFO: new seat seat0
[0000.025677] DEBUG: monitor: new seat seat0 (monitor_new_seat() in src/uterm_monitor.c:321)
[0000.049180] DEBUG: input: ignoring non-useful device /dev/input/event2 (uterm_input_add_dev() in src/uterm_input.c:378)
[0000.049213] DEBUG: monitor: new device /dev/input/event2 on seat0 (seat_new_dev() in src/uterm_monitor.c:239)
[0000.065156] DEBUG: input: ignoring non-useful device /dev/input/event6 (uterm_input_add_dev() in src/uterm_input.c:378)
[0000.065187] DEBUG: monitor: new device /dev/input/event6 on seat0 (seat_new_dev() in src/uterm_monitor.c:239)
[0000.065716] DEBUG: input: ignoring non-useful device /dev/input/event0 (uterm_input_add_dev() in src/uterm_input.c:378)
[0000.065730] DEBUG: monitor: new device /dev/input/event0 on seat0 (seat_new_dev() in src/uterm_monitor.c:239)
[0000.069143] DEBUG: input: ignoring non-useful device /dev/input/event1 (uterm_input_add_dev() in src/uterm_input.c:378)
[0000.069160] DEBUG: monitor: new device /dev/input/event1 on seat0 (seat_new_dev() in src/uterm_monitor.c:239)
[0000.069318] INFO: video_drm: probing /dev/dri/card0
[0000.140587] INFO: video_drm: new drm device via /dev/dri/card0
[0000.141150] INFO: video: new device 0x15f37e0
[0000.141232] DEBUG: ui: adding video device (video_new() in src/ui.c:114)
[0000.141326] DEBUG: new graphics device on seat seat0 (seat_add_video() in src/main.c:239)
[0000.141412] DEBUG: monitor: new device /dev/dri/card0 on seat0 (seat_new_dev() in src/uterm_monitor.c:239)
[0000.141961] DEBUG: monitor: adding drm sub-device /sys/devices/pci0000:00/0000:00:02.0/drm/controlD64 (monitor_udev_add() in src/uterm_monitor.c:433)
[0000.142156] DEBUG: monitor: new device /dev/fb0 on seat0 (seat_new_dev() in src/uterm_monitor.c:239)
[0000.153128] DEBUG: input: ignoring non-useful device /dev/input/event4 (uterm_input_add_dev() in src/uterm_input.c:378)
[0000.153254] DEBUG: monitor: new device /dev/input/event4 on seat0 (seat_new_dev() in src/uterm_monitor.c:239)
[0000.181126] DEBUG: input: ignoring non-useful device /dev/input/event10 (uterm_input_add_dev() in src/uterm_input.c:378)
[0000.181260] DEBUG: monitor: new device /dev/input/event10 on seat0 (seat_new_dev() in src/uterm_monitor.c:239)
[0000.225619] DEBUG: input: ignoring non-useful device /dev/input/event7 (uterm_input_add_dev() in src/uterm_input.c:378)
[0000.225763] DEBUG: monitor: new device /dev/input/event7 on seat0 (seat_new_dev() in src/uterm_monitor.c:239)
[0000.258293] DEBUG: input: ignoring non-useful device /dev/input/event8 (uterm_input_add_dev() in src/uterm_input.c:378)
[0000.258442] DEBUG: monitor: new device /dev/input/event8 on seat0 (seat_new_dev() in src/uterm_monitor.c:239)
[0000.285268] DEBUG: input: ignoring non-useful device /dev/input/event9 (uterm_input_add_dev() in src/uterm_input.c:378)
[0000.285476] DEBUG: monitor: new device /dev/input/event9 on seat0 (seat_new_dev() in src/uterm_monitor.c:239)
[0000.297153] DEBUG: input: new device /dev/input/event3 (input_new_dev() in src/uterm_input.c:212)
[0000.297282] DEBUG: monitor: new device /dev/input/event3 on seat0 (seat_new_dev() in src/uterm_monitor.c:239)
[0000.301142] DEBUG: input: ignoring non-useful device /dev/input/event11 (uterm_input_add_dev() in src/uterm_input.c:378)
[0000.301263] DEBUG: monitor: new device /dev/input/event11 on seat0 (seat_new_dev() in src/uterm_monitor.c:239)
[0000.301493] DEBUG: monitor: adding unsupported input dev /sys/devices/platform/i8042/serio1/input/input11/mouse0 (monitor_udev_add() in src/uterm_monitor.c:455)
[0000.309110] DEBUG: input: ignoring non-useful device /dev/input/event12 (uterm_input_add_dev() in src/uterm_input.c:378)
[0000.309235] DEBUG: monitor: new device /dev/input/event12 on seat0 (seat_new_dev() in src/uterm_monitor.c:239)
[0000.309462] DEBUG: monitor: adding unsupported input dev /sys/devices/platform/i8042/serio1/input/input12/mouse1 (monitor_udev_add() in src/uterm_monitor.c:455)
[0000.317163] DEBUG: input: new device /dev/input/event5 (input_new_dev() in src/uterm_input.c:212)
[0000.317304] DEBUG: monitor: new device /dev/input/event5 on seat0 (seat_new_dev() in src/uterm_monitor.c:239)
[0000.317587] DEBUG: monitor: adding unsupported input dev /sys/devices/virtual/input/mice (monitor_udev_add() in src/uterm_monitor.c:455)
[0000.317692] DEBUG: eloop: run for -1 msecs (ev_eloop_run() in src/eloop.c:792)
[0030.539122] DEBUG: vt: enter VT 1 0x1577d30 (real_enter() in src/uterm_vt.c:122)
[0030.539253] DEBUG: input: wakeing up (uterm_input_wake_up() in src/uterm_input.c:459)
[0030.539382] INFO: video: new display 0x1646e30
[0030.539410] INFO: video_drm: display 0x1646e30 DPMS is ON
[0030.539495] INFO: video_drm: activating display 0x1646e30 to 1440x900
[0030.605173] INFO: video_drm: setting DPMS of display 0x1646e30 to ON
[0030.605502] DEBUG: text_font: searching for: be: 8x16 nm: monospace ppi: 0 pt: 10 b: 0 i: 0 he: 0 wt: 0 (kmscon_font_find() in src/text_font.c:337)
[0030.605640] DEBUG: text_font_8x16: loading static 8x16 font (kmscon_font_8x16_init() in src/text_font_8x16.c:65)
[0030.605759] DEBUG: text_font: using: be: 8x16 nm: static-8x16 ppi: 72 pt: 16 b: 0 i: 0 he: 16 wt: 8 (kmscon_font_find() in src/text_font.c:404)
[0030.605913] DEBUG: text: using: be: gltex (kmscon_text_new() in src/text.c:244)
[0030.606059] DEBUG: gl_shader: new shader (gl_shader_new() in src/static_gl_shader.c:128)
[0030.628339] DEBUG: pty: window size set to 180x56 (kmscon_pty_resize() in src/pty.c:470)
[0030.628479] DEBUG: terminal: added display 0x1646e30 to terminal 0x1585750 (add_display() in src/terminal.c:214)
[0030.698535] DEBUG: text_gltex: new atlas of size 2048x16 for 256 (get_atlas() in src/text_gltex.c:317)
[0030.702188] WARNING: text_gltex: cannot load glyph data into OpenGL texture (1280)
[0030.702304] DEBUG: console: cannot draw glyph at 0x0 via text-renderer (kmscon_console_draw() in src/console.c:842)
[0030.702407] WARNING: text_gltex: cannot load glyph data into OpenGL texture (1280)
[0030.702490] DEBUG: console: cannot draw glyph at 1x0 via text-renderer (kmscon_console_draw() in src/console.c:842)
[0030.702586] WARNING: text_gltex: cannot load glyph data into OpenGL texture (1280)
[0030.702669] DEBUG: console: cannot draw glyph at 2x0 via text-renderer (kmscon_console_draw() in src/console.c:842)
[0030.702755] DEBUG: console: suppressing further warnings during this rendering (kmscon_console_draw() in src/console.c:844)
[0030.702849] WARNING: text_gltex: cannot load glyph data into OpenGL texture (1280)
[0030.702945] WARNING: text_gltex: cannot load glyph data into OpenGL texture (1280)
[0030.703036] WARNING: text_gltex: cannot load glyph data into OpenGL texture (1280)
[0030.703144] WARNING: text_gltex: cannot load glyph data into OpenGL texture (1280)
[0030.703232] WARNING: text_gltex: cannot load glyph data into OpenGL texture (1280)
[0030.703320] WARNING: text_gltex: cannot load glyph data into OpenGL texture (1280)
[0030.703408] WARNING: text_gltex: cannot load glyph data into OpenGL texture (1280)

from kmscon.

towolf avatar towolf commented on June 27, 2024

Oh! One thing I have to mention, I changed gbm_bo_get_stride to gbm_bo_get_pitch because my mesa is 8.0.4 and from my cursory look it seemed like a simple rename and otherwise it wouldn’t build.

Is this relevant?

from kmscon.

dvdhrm avatar dvdhrm commented on June 27, 2024

Nah, the bo_get_pitch/stride thing was a simple rename in the development-repository of libgbm/mesa.

Anyway, I think I have found the problem. Your driver probably doesn't support GL_EXT_unpack_subimage so I've written a workaround for that. But I still need to make it look more pretty so I will push it tomorrow afternoon.

It would be nice, if you can check whether this helps (tomorrow). Thanks for the report!

from kmscon.

dvdhrm avatar dvdhrm commented on June 27, 2024

I've pushed the fix. See here:
5f59c79

I've also pushed a fix for the get_pitch/stride conflicts. Could you give it a try?
Thanks for the report!

from kmscon.

towolf avatar towolf commented on June 27, 2024

Yeah, it works now. Thank you.

Now, about the speed. I find the other relevant console, fbterm, is much much faster than kmscon. This is evident in cacademo, mutt, and vim. This is true in all three modes, fbdev, dumb, and gltex. Even the regular kernel console fbconis faster in cacademo. Why is that?

I also have a number of things that I could file bugs about. Are you interested in those? This is pertaining to bugs (vim and mutt background, corruptions, or unsupported codes like \033[6n) and nitpicks like font rendering.

from kmscon.

dvdhrm avatar dvdhrm commented on June 27, 2024

The terminal-emulator is still pretty basic. Using TERM=vt220 should work reliably, though. But I am interested in all kind of bugs. Even better if you have information in what is going wrong exactly. Anyway, the vte layer was not of high priority, yet, but I intend to improve this now. Please file a bug-report for all of them. This helps a lot.

Regarding speed: What graphics card are you using? gltex should be way faster than any other renderer if you have a modern graphics card. On low-end machines (like my Intel-Atom N450 with integrated i915) the bblit renderer is still faster, indeed. The reasons why kernel-console or other consoles are faster is probably that they use partial-update-renderers (what I call them). That is, they redraw only the part of the screen that changed. kmscon however, always redraws the whole screen. The reason is, that this ensures that I can realiably measure delays. In other words, the console will never be slower under any circumstances. If I implement partial-redraws (which I do intend!) I can never be sure that under other use-cases the terminal may be slower.

To sum this up, I am very interested in benchmarks (any kind), but I haven't had the time to optimize this so far. I intend to implement a frame-limit, which ensures that the console will never consume unneeded CPU-times, partial-redraws (which optimized nearly all common use-cases) and bulk-rendering (pushing multiple blitting operations to the uterm library like the gltex renderer currently does with OpenGL).

But using "time dmesg" I currently can tell that kmscon is way faster than the kernel-console but still slower than xterm and similar. But as I said, there is still a lot work needed. I will close this post now as this issue is resolved (thanks again for the report). But I would be glad if you could open new reports for the other issues.

from kmscon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.