nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   Question on Magic-Pro Nvidia GeForce 6600 GT (http://www.nvnews.net/vbulletin/showthread.php?t=74691)

fungmic 08-07-06 10:16 PM

Question on Magic-Pro Nvidia GeForce 6600 GT
 
To whom it may concern,

We are having problem with getting the lastest profile with Cg under Red Hat Linux. Pls. help.

The hardware setting is as follow:

Workstation model: HP XW5000
CPU: Intel Pentium 4 CPU 2.80GHz
RAM: 1G ECC DDR-266 RAM
Motherboard Chipset: Intel E7205
Graphic card: Magic-Pro Nvidia GeForce 6600 GT
OS: Redhat 9 (kernel version : 2.4.20-28.9)

We also have the lastest display driver (1.0-8764) and Cg 1.5 beta 1 installed.

The problem is that, when querying the vertex and fragment profiles in our own OpenGL/Cg program, the profiles returned are always 'vp30' and 'fp30' (instead of 'vp40' and 'fp40'). We have tried to upgrade the display driver and version of Cg, where we were using 1.0-7164 with Cg 1.4 before, but the problem still persists.

The code used to test the profiles is attached below. We tried to narrow down the problem by using the simplest code. With this piece of code, the correct profiles are returned under a Windows machine, but doesn't give correct result in the machine mentioned above.

We are wondering if there is any incorrect settings in the driver or in the operating system. We hope you can give us some guidance on solving this problem.

//---------------------
// Code for testing Cg profiles
//---------------------
#include <GL/glew.h>
#include <Cg/cgGL.h>
#include <Cg/cg.h>
#include <GL/glut.h>
#include <stdio.h>

void init(void)
{
int v_profile = cgGLGetLatestProfile(CG_GL_VERTEX);
int f_profile = cgGLGetLatestProfile(CG_GL_FRAGMENT);
printf(cgGetProfileString((CGprofile) v_profile));
printf(cgGetProfileString((CGprofile) f_profile));
fflush(stdout);
}

void display()
{
glClearColor(1.0f, 1.0f, 1.0f, 1.0f);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glLoadIdentity();
}

int main(int argc, char **argv)
{
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB);
glutInitWindowSize(250, 250);
glutInitWindowPosition(100, 100);
glutCreateWindow("simple");
init();
glutDisplayFunc(display);
glutMainLoop();

return 0;
}


All times are GMT -5. The time now is 10:41 PM.

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