Re: [Dri-devel] Simple example fails w/direct rendering

2003-08-14 Thread Adam K Kirchhoff

On Thu, 7 Aug 2003, Andrzej Szombierski wrote:

 On Wed, 6 Aug 2003, Nathan Gray wrote:

  Hello,
 
  This is an example from an opengl tutorial that I'm trying out.  If I run it
  with LIBGL_ALWAYS_INDIRECT it works fine, but with direct rendering I just
  get a blank window.  I'm using the radeon driver from recent CVS (checked
  out yesterday anonymously) on a Dell Inspiron 4150 w/Radeon Mobility M7.
 

 And this is also another example which fails on i810 DRI :(

FYI,

I get the blank window as well...  However, when move the window
around, I get a flickering glimpse of the cube as the window redraws.

Adam




---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
___
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel


[Dri-devel] Simple example fails w/direct rendering

2003-08-11 Thread Nathan Gray
Hello,

This is an example from an opengl tutorial that I'm trying out.  If I run it
with LIBGL_ALWAYS_INDIRECT it works fine, but with direct rendering I just
get a blank window.  I'm using the radeon driver from recent CVS (checked
out yesterday anonymously) on a Dell Inspiron 4150 w/Radeon Mobility M7.

Any ideas?

Thanks,
-n8

-- 
-- Nathaniel Gray -- Caltech Computer Science --
-- Mojave Project -- http://mojave.cs.caltech.edu --/* 
gcc -o ex5 ex5.c -L/usr/X11R6/lib -I/usr/X11R6/include -lX11 -lGL -lGLU -lglut -lm 
*/
#include stdio.h

#include GL/glut.h

void display (void) {
/* Called when OpenGL needs to update the display */
glClear (GL_COLOR_BUFFER_BIT); /* Clear the window */
glLoadIdentity ();
gluLookAt (0.0, 0.0, 5.0,   /* Pos of camera */
   0.0, 0.0, 0.0,   /* Target to look at */
   0.0, 1.0, 0.0);  /* up vector */
glutWireCube(2.0);
}

void keyboard (unsigned char key, int x, int y) {
/* Called when a key is pressed */
if (key == 27) exit(0); /* 27 is Escape */
else printf(You pressed '%c' with the mouse at (%i, %i)\n, key, x, y);
}

void reshape (int w, int h) {
/* Called when the window is created, moved, or resized */
glViewport (0, 0, (GLsizei) w, (GLsizei) h);
glMatrixMode (GL_PROJECTION);   /* Select the projection matrix */
glLoadIdentity();   /* Initialize it */
gluPerspective(60, (GLfloat)w / (GLfloat)h, 1.0, 100.0);
glMatrixMode (GL_MODELVIEW);/* Select the modelview matrix */
}

int main (int argc, char** argv) {
glutInit (argc, argv);
glutInitWindowSize (500, 500);
glutInitWindowPosition(100,100);
glutCreateWindow (ex5);
glutDisplayFunc (display);  /* Register the display callback */
glutReshapeFunc (reshape);  /* Register the reshape callback */
glutKeyboardFunc (keyboard);/* Register the keyboard callback */
/* Note that glutKeyboardFunc only works for keys with single
ascii codes.  Arrow keys won't work.  For that use 
glutSpecialFunc */
glutMainLoop ();
return 0;
}


Re: [Dri-devel] Simple example fails w/direct rendering

2003-08-09 Thread Ian Romanick
Nathan Gray wrote:

This is an example from an opengl tutorial that I'm trying out.  If I run it
with LIBGL_ALWAYS_INDIRECT it works fine, but with direct rendering I just
get a blank window.  I'm using the radeon driver from recent CVS (checked
out yesterday anonymously) on a Dell Inspiron 4150 w/Radeon Mobility M7.
So, the example is drawing a wire-frame cube and clearing the screen as 
fast as it can on a single-buffered display?  What do you think the odds 
are on a fast video card that the video refresh logic will just happen 
to be displaying something when it's not cleared?  Pretty close to 0 I'd 
say.  The driver isn't broken.  You only see it with indirect rendering 
because the drawing / clearing is slower, so the cube is on the screen 
for a larger amount of time.



---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
___
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel


Re: [Dri-devel] Simple example fails w/direct rendering

2003-08-09 Thread Dave Airlie

this is something to do with double buffering no sure what is going wrong
though, probably getting a doubled buffered visual and using it as single
or somthing...

adding
  glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE );
to the main before CreateWindow
and
   glutSwapBuffers();
to the end if display make it work for me on my mach64...

Dave.

On Wed, 6 Aug 2003, Nathan Gray wrote:

 Hello,

 This is an example from an opengl tutorial that I'm trying out.  If I run it
 with LIBGL_ALWAYS_INDIRECT it works fine, but with direct rendering I just
 get a blank window.  I'm using the radeon driver from recent CVS (checked
 out yesterday anonymously) on a Dell Inspiron 4150 w/Radeon Mobility M7.

 Any ideas?

 Thanks,
 -n8



-- 
David Airlie, Software Engineer
http://www.skynet.ie/~airlied / [EMAIL PROTECTED]
pam_smb / Linux DECstation / Linux VAX / ILUG person



---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
___
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel


Re: [Dri-devel] Simple example fails w/direct rendering

2003-08-08 Thread Andrzej Szombierski
On Wed, 6 Aug 2003, Nathan Gray wrote:

 Hello,
 
 This is an example from an opengl tutorial that I'm trying out.  If I run it
 with LIBGL_ALWAYS_INDIRECT it works fine, but with direct rendering I just
 get a blank window.  I'm using the radeon driver from recent CVS (checked
 out yesterday anonymously) on a Dell Inspiron 4150 w/Radeon Mobility M7.
 

And this is also another example which fails on i810 DRI :(

-- 
: Andrzej Szombierski : [EMAIL PROTECTED] : [EMAIL PROTECTED] :
: [EMAIL PROTECTED] ::: radio bez kitu = http://bezkitu.com :



---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
___
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel