OSDN Git Service

i965: fallback lineloop on sandybridge for now
authorZhenyu Wang <zhenyuw@linux.intel.com>
Sun, 26 Sep 2010 05:15:39 +0000 (13:15 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Wed, 29 Sep 2010 06:35:19 +0000 (14:35 +0800)
Until we fixed GS hang issue.

src/mesa/drivers/dri/i965/brw_draw.c

index 16331cc..6a4dda2 100644 (file)
@@ -204,6 +204,13 @@ static GLboolean check_fallbacks( struct brw_context *brw,
    GLcontext *ctx = &brw->intel.ctx;
    GLuint i;
 
+   /* XXX FIXME */
+   if (brw->intel.gen >= 6) {
+       for (i = 0; i < nr_prims; i++)
+          if (prim[i].mode == GL_LINE_LOOP)
+              return GL_TRUE;
+   }
+
    /* If we don't require strict OpenGL conformance, never 
     * use fallbacks.  If we're forcing fallbacks, always
     * use fallfacks.