Bug 680696 - Lighted polygon not rendered properly with hardware acceleration
Summary: Lighted polygon not rendered properly with hardware acceleration
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: mesa
Version: 15
Hardware: i686
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Adam Jackson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-27 02:32 UTC by Allen Barnett
Modified: 2018-04-11 14:57 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-07 14:38:51 UTC
Type: ---


Attachments (Terms of Use)
Sample program to demonstrate improperly rendered image. (2.36 KB, text/x-c++src)
2011-02-27 02:32 UTC, Allen Barnett
no flags Details

Description Allen Barnett 2011-02-27 02:32:25 UTC
Created attachment 481211 [details]
Sample program to demonstrate improperly rendered image.

Description of problem:
I noticed in a Qt/OpenGL program that certain images were not rendered correctly. In particular, lighted polygons drawn with client state pointers for vertexes and normals using glDrawElements were not drawn with the correct colors under some circumstances. This happens on my ThinkPad T42p with an ATI Technologies Inc M10 NT [FireGL Mobility T2] (rev 80) GPU and when hardware acceleration is turned on. Namely using: 
 * X.Org R300 Project Gallium 0.4 on RV350 2.1 Mesa 7.9
I created a small sample program which I hope will demonstrate the problem: It should render a red square in the upper right quadrant of the window. However, I see a yellow rectangle unless I do one of the following:
1. Set the LIBGL_ALWAYS_SOFTWARE environment variable, or,
2. Don't use the the GL_NORMAL_ARRAY client state, or,
3. Comment out the glPushMatrix/glPopMatrix calls at the end of the painting routine.

Version-Release number of selected component (if applicable):
mesa-dri-drivers-7.9-5.fc14.i686

How reproducible:
Run the sample program attached to this ticket.

Steps to Reproduce:
1. Build the executable:
   $ g++ -g -o nqgl nqgl.cpp -I /usr/include/QtGui/ -I /usr/include/QtOpenGL/ -lQtGui -lQtOpenGL -lQtCore -lGL
2. Run the sample program:
   $ ./nqgl

Actual results:
I see a 500x500 window with a gray background and a yellow square in the upper right quadrant.

Expected results:
A 500x500 window with a gray background and a *red* square in the upper right quadrant.

Additional info:
If I run the sample program in gdb, the first time through View::paintGL, the red square is rendered correctly. However, subsequent repaints all yield a yellow square.

Comment 1 Matěj Cepl 2011-03-13 00:17:33 UTC
Switching for checking to Qt folks, whether this isn't Qt issue after and for further analysis to tell us what's wrong on our side (if anything).

Thank you for reporting the issue.

Comment 2 Kevin Kofler 2011-03-13 00:51:39 UTC
Hmmm, what makes you think this is a Qt issue, considering that LIBGL_ALWAYS_SOFTWARE (which touches only Mesa and not Qt) works around it? QGLWidget is only a lightweight OpenGL container, and all the stuff being done in View::paintGL is plain OpenGL.

Comment 3 Rex Dieter 2011-04-01 19:18:17 UTC
works well with hw accel on my (intel) box, fwiw.

$ ./nqgl 
Tungsten Graphics, Inc Mesa DRI Intel(R) Q45/Q43 GEM 20100330 DEVELOPMENT  2.1 Mesa 7.9

Comment 4 Matěj Cepl 2011-04-05 16:43:33 UTC
Yes, cannot reproduce on intel with nqgl built with

g++ -o nqgl -I/usr/include/QtGui/ -I/usr/include/QtOpenGL/ -lQtCore \
    -lQtOpenGL -lQtGui -lGL -lGLU nqgl.cpp

Comment 5 Fedora End Of Life 2012-08-07 14:38:54 UTC
This message is a notice that Fedora 15 is now at end of life. Fedora
has stopped maintaining and issuing updates for Fedora 15. It is
Fedora's policy to close all bug reports from releases that are no
longer maintained. At this time, all open bugs with a Fedora 'version'
of '15' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that
we were unable to fix it before Fedora 15 reached end of life. If you
would still like to see this bug fixed and are able to reproduce it
against a later version of Fedora, you are encouraged to click on
"Clone This Bug" (top right of this page) and open it against that
version of Fedora.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

The process we are following is described here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping


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