Bug 102408 - Mesa not compiled with "__GLX_ALIGN64"
Summary: Mesa not compiled with "__GLX_ALIGN64"
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 2.1
Classification: Red Hat
Component: mesa
Version: 2.1
Hardware: ia64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: X/OpenGL Maintenance List
QA Contact: Jay Turner
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-08-14 20:55 UTC by Brett Johnson
Modified: 2015-01-08 00:06 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-05-10 23:05:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Brett Johnson 2003-08-14 20:55:51 UTC
Description of problem:

A simple OpenGL program (attached) will generate an unaligned access (even
though RedHat's kernel won't display it anywhere by default ;o).  This has a
pretty large effect on performance, and/or will cause a core dump if the program
is run with "prctl --unaligned=signal".  This appears to be fixed in Mesa, if
it's compiled with the "-D__GLX_ALIGN64" option.

Version-Release number of selected component (if applicable):

Mesa-3.4.2-10

How reproducible:

Always


Steps to Reproduce:

1. Save the following program as "test.c"

--snip--
void display( void ) {glScaled( 1.0, 1.0, 1.0 );}
main( int argc, char *argv[] ) {
    glutInit( &argc, argv );
    glutCreateWindow( "test" );
    glutDisplayFunc( display );
    glutMainLoop();
}
--snip--

2. Compile test.c...

$ gcc -lglut -lGLU -lGL -lm -o test test.c

3. Run the program with prctl...

$ prctl --unaligned=signal ./test
    
Actual results:

Core dump.

Expected results:

No core dump.

Additional info:

Comment 6 Mike A. Harris 2005-05-10 23:05:03 UTC
Mesa is compiled with this option by default in RHEL 3 and RHEL 4.

Setting status to "CURRENTRELEASE".


Note You need to log in before you can comment on or make changes to this bug.