i965: Sandybridge doesn't have Compr4 mode, since it's not needed any more.
authorZhenyu Wang <zhenyuw@linux.intel.com>
Fri, 20 Aug 2010 21:32:44 +0000 (14:32 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 20 Aug 2010 23:17:39 +0000 (16:17 -0700)
src/mesa/drivers/dri/i965/brw_context.c

index 6d064b822e51dba97e315ab0b3cb36ff164e7322..408fa0aeeaaf580a982046bc33d118db412618e1 100644 (file)
@@ -144,7 +144,8 @@ GLboolean brwCreateContext( int api,
       brw->CMD_VF_STATISTICS = CMD_VF_STATISTICS_GM45;
       brw->CMD_PIPELINE_SELECT = CMD_PIPELINE_SELECT_GM45;
       brw->has_surface_tile_offset = GL_TRUE;
-      brw->has_compr4 = GL_TRUE;
+      if (intel->gen < 6)
+         brw->has_compr4 = GL_TRUE;
       brw->has_aa_line_parameters = GL_TRUE;
       brw->has_pln = GL_TRUE;
   } else {