Mesa (master): i965: Drop strict conformance fallback for GL_POLYGON_SMOOTH .

Eric Anholt anholt at kemper.freedesktop.org
Sun Jun 5 18:24:28 UTC 2011


Module: Mesa
Branch: master
Commit: d8b733643d21001068c25ee9b97a3cd5bb4684a2
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d8b733643d21001068c25ee9b97a3cd5bb4684a2

Author: Eric Anholt <eric at anholt.net>
Date:   Wed May 25 12:51:47 2011 -0700

i965: Drop strict conformance fallback for GL_POLYGON_SMOOTH.

>From my reading of the GL 2.1 spec, no antialiasing is strictly
conformant for polygon smoothing.  Yes, it's absurd, but then,
hardware doesn't support this so maybe it's not so absurd.

---

 src/mesa/drivers/dri/i965/brw_draw.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_draw.c b/src/mesa/drivers/dri/i965/brw_draw.c
index 6c52bd5..44d3e1b 100644
--- a/src/mesa/drivers/dri/i965/brw_draw.c
+++ b/src/mesa/drivers/dri/i965/brw_draw.c
@@ -283,12 +283,6 @@ static GLboolean check_fallbacks( struct brw_context *brw,
    if (brw->intel.conformance_mode == 0)
       return GL_FALSE;
 
-   if (ctx->Polygon.SmoothFlag) {
-      for (i = 0; i < nr_prims; i++)
-	 if (reduced_prim[prim[i].mode] == GL_TRIANGLES) 
-	    return GL_TRUE;
-   }
-
    /* BRW hardware will do AA lines, but they are non-conformant it
     * seems.  TBD whether we keep this fallback:
     */




More information about the mesa-commit mailing list