Please do not reply to this email: if you want to comment on the bug, go to
the URL shown below and enter yourcomments there.
https://bugs.freedesktop.org/show_bug.cgi?id=7790
Summary: Polygons incorrectly clipped by mach64 driver (ATI Rage
Pro LT card)
Product: DRI
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: General
AssignedTo: dri-devel@lists.sourceforge.net
ReportedBy: [EMAIL PROTECTED]
Partially offscreen polygons are rendered incorrectly. Visible part of them is
misplaced and texture coordinates are sometimes set to random values. Problem
appears only when clipping to viewport, polygons that are fully located inside
the viewport are rendered correctly.
Here's what glxinfo says about renderer:
OpenGL vendor string: Gareth Hughes, Leif Delgass, José Fonseca
OpenGL renderer string: Mesa DRI Mach64 [Rage Pro] 20051019 AGP 2x
OpenGL version string: 1.2 Mesa 6.4.2
I'm not the sole "victim", the same problem with Mach64 driver (on another card)
is described by another user here (you can get some screenshots there):
http://www.linuxquestions.org/questions/showthread.php?p=2368337
I'm attaching code that reproduces the problem with clipping.
---------------------8< cut here 8<----------------------------------
#include <GL/glut.h>
void display(void)
{
glClearColor( 0.0, 0.0, 1.0, 0.0 );
glClear( GL_COLOR_BUFFER_BIT );
/* The white triangle is located inside the viewport
and is rendered correctly */
glColor3f( 1.0f, 1.0f, 1.0f );
glBegin( GL_TRIANGLES );
glVertex2f( 0.25f, 0.25f );
glVertex2f( 0.75f, 0.25f );
glVertex2f( 0.5f, 0.85f );
glEnd();
/* The red triangle is partially offscreen and various clipping
artefacts occur during render.
When rendered correctly, the red triangle should look the
same as white one, just translated to the left */
glColor3f( 1.0f, 0.0f, 0.0f );
glBegin( GL_TRIANGLES );
glVertex2f( -0.15f, 0.25f );
glVertex2f( 0.35f, 0.25f );
glVertex2f( 0.1f, 0.85f );
glEnd();
glutSwapBuffers();
};
int main(int argc, char **argv)
{
glutInit( &argc, argv );
glutInitDisplayMode( GLUT_DOUBLE | GLUT_RGBA );
glutInitWindowSize( 640, 480 );
glutCreateWindow( "ATI Mach64 driver bug?" );
gluOrtho2D( 0, 1, 0, 1 );
glutDisplayFunc( display );
glutMainLoop();
return 0;
}
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel