Mesa (master): i965: Sandybridge doesn't have Compr4 mode, since it' s not needed any more.

Eric Anholt anholt at kemper.freedesktop.org
Fri Aug 20 23:18:22 UTC 2010


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

Author: Zhenyu Wang <zhenyuw at linux.intel.com>
Date:   Fri Aug 20 14:32:44 2010 -0700

i965: Sandybridge doesn't have Compr4 mode, since it's not needed any more.

---

 src/mesa/drivers/dri/i965/brw_context.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c
index 6d064b8..408fa0a 100644
--- a/src/mesa/drivers/dri/i965/brw_context.c
+++ b/src/mesa/drivers/dri/i965/brw_context.c
@@ -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 {




More information about the mesa-commit mailing list