Bug 25297 - R600: glEdgeFlag doesn't work
Summary: R600: glEdgeFlag doesn't work
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/r600 (show other bugs)
Version: git
Hardware: Other All
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-26 06:06 UTC by Rafael Monica
Modified: 2014-03-15 11:58 UTC (History)
4 users (show)

See Also:
i915 platform:
i915 features:


Attachments
program draws two triangles to form a square (1008 bytes, text/x-csrc)
2009-11-26 06:06 UTC, Rafael Monica
Details
test program run with software renderer (3.44 KB, image/png)
2009-12-01 14:00 UTC, Rafael Monica
Details

Description Rafael Monica 2009-11-26 06:06:25 UTC
Created attachment 31482 [details]
program draws two triangles to form a square

Disabling the drawing of polygon edges with glEdgeFlag(GL_FALSE) doesn't work correctly on the R600 driver.

Attached a simple program that draws two triangles that form a square and disables the drawing of polygon edges where the two triangles touch.

When run with the software renderer you just see a square as expected, but with the R600 driver you also see the line where the two triangles touch.
Comment 1 Alex Deucher 2009-12-01 12:50:44 UTC
the software renderer doesn't seem to render the test properly for me, however, the patch I included on bug 25290 seems like it renders correctly.
Comment 2 Rafael Monica 2009-12-01 13:59:22 UTC
The attached image is what I get with the software renderer, and I think is the correct way. With or without that patch I don't get the same image.
Comment 3 Rafael Monica 2009-12-01 14:00:41 UTC
Created attachment 31642 [details]
test program run with software renderer
Comment 4 Alain Perrot 2010-04-21 09:43:18 UTC
I can confirm that glEdgeFlag is still broken with the R600 driver from Mesa 7.9 (packages from Xorg-edgers PPA).

The STAR example from the "OpenGL SuperBible" book (chapter 3) is not rendered properly by the R600 driver (just like the sample program by Rafael Monica).

Both the STAR example and Rafael' sample program are correctly rendered by Mesa software renderer.
Comment 5 Corbin Simpson 2011-09-14 04:31:48 UTC
Pity-reassigning to r600g. It might already work there, although I'm not sure of that.
Comment 6 Nicholas Miell 2011-09-14 08:31:11 UTC
This fails on current Mesa master on r600g. But it also fails with llvmpipe.
Comment 7 Benjamin Bellec 2014-03-15 11:58:14 UTC
I didn't test with the softrender, but this bug is now fixed since:

commit: 1337da51152db7fa1a71ac86b61b51a42d29d595
summary: r600g: implement edge flags
author: Marek Olšák
date: 2014-03-04 11:26:16 (GMT)

r600g now render the square like your screenshot. Tested on AMD CYPRESS.


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.