Bug 9872

Summary: glPointSize() has no effect (or too late)
Product: Mesa Reporter: Ingo Bressler <ingo>
Component: Drivers/DRI/r300Assignee: Default DRI bug account <dri-devel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: 6.5   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Ingo Bressler 2007-02-04 06:16:52 UTC
The usage of glPointSize() in an OpenGL program does not (directly) change the size of points which are drawn by a following GL_POINTS directive/block.

I'm using a radeon9700 card. DRI is enabled.


Screenshot of how it is supposed to work (winXp + mingw + no_mesa):
http://ingo.wollsau.de/pointTest/screenshot_win.png

What OpenGL tells me about points here (see code):

point sizes (before drawing point): 
min: 1.000000, max: 64.000000, incr: 0.125000, actual: 1.000000
point sizes (after drawing point): 
min: 1.000000, max: 64.000000, incr: 0.125000, actual: 8.000000


Screenshot of how it actually works on my system:
http://ingo.wollsau.de/pointTest/screenshot_lin.png

What OpenGL tells me about points here (see code):

point sizes (before drawing point): 
min: 1.000000, max: 10922.000000, incr: 0.100000, actual: 1.000000
point sizes (after drawing point): 
min: 1.000000, max: 10922.000000, incr: 0.100000, actual: 8.000000


The used test-program code:
http://ingo.wollsau.de/pointTest/pointTest.c

This should display only one point at the specified size.

I modified this program that it draws a point with a size you enter via keyboard. This reveals that a point with the requested size is drawn only after the next size is specified. So it comes one display-cycle too late.
i.e: initial size 1, you enter 9, point stays at size 1, you enter size 5 and get point of size 9, end so on ...
http://ingo.wollsau.de/pointTest/pointTest2.c


glxinfo:
http://ingo.wollsau.de/clippingTest/glxinfo

xorg.log:
http://ingo.wollsau.de/clippingTest/xorg.log


May be related to:
http://bugs.freedesktop.org/show_bug.cgi?id=702


Previously posted here:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=408702
Comment 1 Rune Petersen 2007-02-11 11:47:29 UTC
This bug has been fixed and committed to GIT. 

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.