i965: only allow SIMD8 kernel on sandybridge now
authorZhenyu Wang <zhenyuw@linux.intel.com>
Fri, 17 Sep 2010 08:26:27 +0000 (16:26 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 28 Sep 2010 07:58:21 +0000 (15:58 +0800)
Until we fixed SIMD16 kernel, force to SIMD8 on sandybridge now.

src/mesa/drivers/dri/intel/intel_context.c

index 109c670c144553eb6d57b0529af86f8782db115f..edcc9536da21116f8a56afd2b9df0f92a15b4500 100644 (file)
@@ -786,6 +786,11 @@ intelInitContext(struct intel_context *intel,
    if (INTEL_DEBUG & DEBUG_BUFMGR)
       dri_bufmgr_set_debug(intel->bufmgr, GL_TRUE);
 
+   /* XXX force SIMD8 kernel for Sandybridge before we fixed
+      SIMD16 interpolation. */
+   if (intel->gen == 6)
+       INTEL_DEBUG |= DEBUG_GLSL_FORCE;
+
    intel->batch = intel_batchbuffer_alloc(intel);
 
    intel_fbo_init(intel);