Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 12-27-06, 04:32 AM   #1
jensX
Registered User
 
Join Date: Dec 2006
Posts: 3
Default Very Basic: Hardware Acceleration for OpenGL?

Dear members,

I'm new to this forum and need to apologize for starting off with such a basic question, but I'm a beginner and it's kind of important... I am running SuSe10.1 and Xgl, using a GeForce 7800-based card. Xgl works very nicely (and fast), so I guess the hardware acceleration must be working.

Now I'm trying to get started with OpenGL programming and I'm compiling the "hello world" example from the OpenGl Red Book using "gcc hello.c -lglut"
It basically works, but I get the warning message
"freeglut (./a.out): Unable to create direct context rendering for window 'hello'
This may hurt performance."

Also, rendering is exteremely slow. So I am wondering whether I am getting hardware accelerated rendering. glxinfo says "direct rendering: No", but an OpenSuSe faq claims that this is unrelated to the availability of hardware accelerated rendering.

Can anybody please give me a hint on what to do? All I want is to get decently fast OpenGL.

Thank you very much in advance!!
jensX is offline   Reply With Quote
Old 12-27-06, 05:08 AM   #2
Thunderbird
 
Join Date: Jul 2002
Location: Netherlands, Europe
Posts: 2,105
Default Re: Very Basic: Hardware Acceleration for OpenGL?

Could you attach the output of glxinfo? I believe suse doesn't install the nvdia drivers by default, so you might not be using them. XGL can run fine without hardware accelerated opengl too.

In general when 'Direct rendering' shows no that is a bad sign. It useally meant (in case of the Nvidia drivers) that you were using software opengl rendering using Mesa. In case of XGL it is normal that indirect rendering is shown. This is due to the fact that XGL is running on top of another X-server. Only the 'primary' (non-XGL) X-server has direct rendering, the XGL one forwards opengl to it which is indirect. It is a form of accelerated indirect rendering so it is not bad.
Thunderbird is offline   Reply With Quote
Old 12-27-06, 08:57 AM   #3
jensX
Registered User
 
Join Date: Dec 2006
Posts: 3
Default Re: Very Basic: Hardware Acceleration for OpenGL?

Thank you vey much for you reply, Thunderbird. Actually I did install the NVidia driver before installing XGL, but who knows if it really is active. (Like I said, I'm a beginner, so I may have been missing an important step in the driver installation).

Again, thanks a lot for your time. Maybe you can point me to the right thing to do.
Here's the output of glxinfo:

name of display: :0.0
display: :0 screen: 0
direct rendering: No
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 extensions:
GLX_ARB_multisample, GLX_EXT_visual_info, GLX_EXT_visual_rating,
GLX_EXT_import_context, GLX_SGIX_fbconfig, GLX_ARB_get_proc_address
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce 7800 GT/PCI/SSE2
OpenGL version string: 1.2 (2.0.2 NVIDIA 87.56)
OpenGL extensions:
GL_ARB_depth_texture, 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_window_pos, GL_ARB_texture_non_power_of_two, GL_ARB_vertex_program,
GL_ARB_fragment_program, 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_draw_range_elements, GL_EXT_fog_coord, 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_add,
GL_EXT_texture_env_combine, GL_EXT_texture_env_dot3, GL_EXT_texture_lod,
GL_EXT_texture_lod_bias, GL_EXT_texture_object, GL_EXT_vertex_array,
GL_ATI_texture_mirror_once, GL_HP_occlusion_test,
GL_IBM_texture_mirrored_repeat, GL_NV_blend_square,
GL_NV_texgen_reflection, GL_NV_texture_rectangle,
GL_NV_texture_env_combine4, 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 0 0 None
0x2d 24 tc 0 32 0 r . . 8 8 8 8 0 0 0 0 0 0 0 0 0 None
0x2e 32 tc 0 32 0 r y . 8 8 8 8 0 24 8 0 0 0 0 0 0 Ncon
0x2f 32 tc 0 32 0 r . . 8 8 8 8 0 0 0 0 0 0 0 0 0 Ncon
jensX is offline   Reply With Quote
Old 12-27-06, 11:00 AM   #4
Thunderbird
 
Join Date: Jul 2002
Location: Netherlands, Europe
Posts: 2,105
Default Re: Very Basic: Hardware Acceleration for OpenGL?

I'm not fully sure as I haven't used XGL myself but I think something is wrong as I'm missing a lot of opengl extensions. In general the GLX server vendor should report Nvidia but I'm not sure if that's also needed in case of XGL.
Thunderbird is offline   Reply With Quote
Old 12-27-06, 11:58 AM   #5
grey_1
Guest
 
Posts: n/a
Default Re: Very Basic: Hardware Acceleration for OpenGL?

Quote:
name of display: :0.0
display: :0 screen: 0
direct rendering: No
Your hardware acceleration isn't enabled jensX. Here's a link to the Nvidia Suse installer readme.

I don't use Suse so I probably can't help you any more than this...Good luck though!

Edit: I have 7800GT's and they work beautifully with the 9746 drivers. Debian based though.
  Reply With Quote
Old 12-27-06, 01:19 PM   #6
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: Very Basic: Hardware Acceleration for OpenGL?

The lack of direct rendering support is due to the environment in which the application is run (i.e. it is run from "within" XGL, located between the application and NVIDIA's Linux graphics driver in the software stack); if you wish to use desktop effects and use direct rendering, you may want to look at a version of compiz with GLX_ext_texture_from_pixmap support (see e.g. http://www.nvnews.net/vbulletin/showthread.php?t=77030).
zander is offline   Reply With Quote
Old 12-28-06, 08:13 AM   #7
jensX
Registered User
 
Join Date: Dec 2006
Posts: 3
Default Re: Very Basic: Hardware Acceleration for OpenGL?

zander and grey_1, thank you very much for your hints!! This is exactly what I needed.
jensX is offline   Reply With Quote
Old 01-13-07, 12:03 PM   #8
seadap
Registered User
 
Join Date: Jan 2007
Posts: 1
Default Re: Very Basic: Hardware Acceleration for OpenGL?

Do you have any advice for users using beryl instead of compiz?

I read somewhere that

glxinfo | grep vendor

server glx vendor string: SGI
client glx vendor string: NVIDIA Corporation
OpenGL vendor string: NVIDIA Corporation

is wrong.
seadap is offline   Reply With Quote

Old 01-13-07, 02:59 PM   #9
piotrq__
Registered User
 
Join Date: Jan 2006
Posts: 193
Default Re: Very Basic: Hardware Acceleration for OpenGL?

@seadap Just switch from XGL to nvidia drivers advised by zander and you'll be fine :-)
piotrq__ is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tom's Hardware tests OpenCL acceleration across photo editing apps News Archived News Items 0 06-11-12 06:10 PM
CS6 OpenCL support -- not quite hardware acceleration for all News Archived News Items 0 05-19-12 11:20 AM
PowerDVD Hardware Acceleration adrianhall General Software 11 06-08-10 03:46 PM
hardware T&L nosrema NVIDIA Linux 2 09-14-02 02:35 PM
Can I use 3-D acceleration in the framebuffer coredumped NVIDIA Linux 3 08-24-02 01:20 PM

All times are GMT -5. The time now is 09:18 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.