Author Topic: No vram in Linux problem  (Read 1351 times)

0 Members and 1 Guest are viewing this topic.

Offline Gustra

  • 22
No vram in Linux problem
Hi,

I'm using the icculus.org Linux version of the FS2 code and I have had problems getting it to run. I somehow got it running for a while and was able to play a few missons before it broke again. The problems reoccurred after FS2 exited and did not reset the resolution properly.

The symptom is that the window is opened, but it looks like it displays random memory and I get these errors in the log:
Quote
General: Bitmap is to small at 0x0.
General: WARNING: Error setting aabitmap texture!

It appears that this OpelGL call returns zero in max_texture_size:

In gropengl.cpp:opengl_max_tex_size_get():
glGetIntegerv( GL_MAX_TEXTURE_SIZE, &max_texture_size );

hence no bitmaps can be loaded. FS2 is not hanging, I can hear the sounds as the pointer moves over buttons on the pilot selection screen and it exits gracefully when I hit Escape. I have tried turning off the computer, thinking it might be solved by rebooting the graphics card (PointOfView GeForce2), but that did not work.

The glxgears program works fine and when I start FS2 after it, the window contains "residual" graphics from it. It's just as if FS2 (or OpenGL) doesn't initialise the card properly.

Here's a shot of the FS2 window with the glxgear data clearly visible: FS2 Problem

I'm grateful for any tips.

/Gunnar
Good? Bad? I'm the guy with the GUN. -Ash

 

Offline taylor

  • Super SCP/Linux Guru
  • Moderator
  • 212
    • http://www.icculus.org/~taylor
No vram in Linux problem
This should really be asked on the icculus.org Freespace 2 mailing list, but:

Are you using nVIDIA's drivers? What is the output of glxinfo? Linux distro and version?

max_texture_size is 0 by default so that call probably didn't work and returned an error instead.  With a GeForce 2 you should have a texture size of 2048 so you can just edit src/graphics/gropengl.cpp and change the return from opengl_max_tex_size_get() to 2048 rather than max_texture_size.  I'm betting that there is something else wrong here though.

  

Offline Gustra

  • 22
No vram in Linux problem
Thanks for your reply, taylor.

I thought this was a more general forum, covering all versions, my mistake.

Yes, I an using the latest nVidia drivers (5336), Debian unstable, Linux 2.4.24, plus CVS versions of some libs.

I tried returning 2048, but that didn't work either since I got this error instead:

Error: !!DEBUG!! t->texture_handle == 0
General: WARNING: Error setting aabitmap texture!

My guess is that the video card correctly reports zero memory, and the above error is simply that the card couldn't create the texture (glGenTextures() fails). It would have been good if there existed some kind of video card (or OpenGL) utility which could be used to analyse and update settings. I have tried searching for one, but have come up empty handed so far.

I have attached the output of glxinfo at the end of the post. It does not tell me much, though.

/Gunnar
Quote
name of display: :0.0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: NVIDIA Corporation
server glx version string: 1.3
server glx extensions:
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_SGIX_fbconfig,
    GLX_SGIX_pbuffer, GLX_SGI_video_sync, GLX_SGI_swap_control
client glx vendor string: NVIDIA Corporation
client glx version string: 1.3
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_SGIX_fbconfig, GLX_SGIX_pbuffer,
    GLX_SGI_swap_control, GLX_NV_float_buffer
GLX extensions:
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_SGIX_fbconfig,
    GLX_SGIX_pbuffer, GLX_SGI_video_sync, GLX_SGI_swap_control,
    GLX_ARB_get_proc_address
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce2 GTS/AGP/SSE/3DNOW!
OpenGL version string: 1.4.1 NVIDIA 53.36
OpenGL extensions:
    GL_ARB_imaging, GL_ARB_multitexture, GL_ARB_point_parameters,
    GL_ARB_point_sprite, GL_ARB_texture_compression, 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_transpose_matrix, GL_ARB_vertex_buffer_object,
    GL_ARB_vertex_program, GL_ARB_window_pos, GL_S3_s3tc,
    GL_EXT_texture_env_add, 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_draw_range_elements,
    GL_EXT_fog_coord, GL_EXT_multi_draw_arrays, GL_EXT_packed_pixels,
    GL_EXT_paletted_texture, GL_EXT_point_parameters, GL_EXT_rescale_normal,
    GL_EXT_secondary_color, GL_EXT_separate_specular_color,
    GL_EXT_shared_texture_palette, GL_EXT_stencil_wrap,
    GL_EXT_texture_compression_s3tc, GL_EXT_texture_cube_map,
    GL_EXT_texture_edge_clamp, GL_EXT_texture_env_combine,
    GL_EXT_texture_env_dot3, GL_EXT_texture_filter_anisotropic,
    GL_EXT_texture_lod, GL_EXT_texture_lod_bias, GL_EXT_texture_object,
    GL_EXT_vertex_array, GL_IBM_rasterpos_clip,
    GL_IBM_texture_mirrored_repeat, GL_KTX_buffer_region, GL_NV_blend_square,
    GL_NV_fence, GL_NV_fog_distance, GL_NV_light_max_exponent,
    GL_NV_packed_depth_stencil, GL_NV_pixel_data_range, GL_NV_point_sprite,
    GL_NV_register_combiners, GL_NV_texgen_reflection,
    GL_NV_texture_env_combine4, GL_NV_texture_rectangle,
    GL_NV_vertex_array_range, GL_NV_vertex_array_range2, GL_NV_vertex_program,
    GL_NV_vertex_program1_1, GL_NVX_ycrcb, GL_SGIS_generate_mipmap,
    GL_SGIS_multitexture, GL_SGIS_texture_lod, GL_SUN_slice_accum
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
----------------------------------------------------------------------
0x21 24 tc  0 32  0 r  y  .  8  8  8  0  0 24  8 16 16 16 16  0 0 None
0x22 24 dc  0 32  0 r  y  .  8  8  8  0  0 24  8 16 16 16 16  0 0 None
0x23 24 tc  0 32  0 r  y  .  8  8  8  8  0 24  8 16 16 16 16  0 0 None
0x24 24 tc  0 32  0 r  .  .  8  8  8  0  0 24  8 16 16 16 16  0 0 None
0x25 24 tc  0 32  0 r  .  .  8  8  8  8  0 24  8 16 16 16 16  0 0 None
0x26 24 tc  0 32  0 r  y  .  8  8  8  0  0  0  0 16 16 16 16  0 0 None
0x27 24 tc  0 32  0 r  y  .  8  8  8  8  0  0  0 16 16 16 16  0 0 None
0x28 24 tc  0 32  0 r  .  .  8  8  8  0  0  0  0 16 16 16 16  0 0 None
0x29 24 tc  0 32  0 r  .  .  8  8  8  8  0  0  0 16 16 16 16  0 0 None
0x2a 24 dc  0 32  0 r  y  .  8  8  8  8  0 24  8 16 16 16 16  0 0 None
0x2b 24 dc  0 32  0 r  .  .  8  8  8  0  0 24  8 16 16 16 16  0 0 None
0x2c 24 dc  0 32  0 r  .  .  8  8  8  8  0 24  8 16 16 16 16  0 0 None
0x2d 24 dc  0 32  0 r  y  .  8  8  8  0  0  0  0 16 16 16 16  0 0 None
0x2e 24 dc  0 32  0 r  y  .  8  8  8  8  0  0  0 16 16 16 16  0 0 None
0x2f 24 dc  0 32  0 r  .  .  8  8  8  0  0  0  0 16 16 16 16  0 0 None
0x30 24 dc  0 32  0 r  .  .  8  8  8  8  0  0  0 16 16 16 16  0 0 None
Good? Bad? I'm the guy with the GUN. -Ash