intel: Refuse to do texture tiling if we don't have the kernel support.
authorEric Anholt <eric@anholt.net>
Mon, 22 Jun 2009 18:54:02 +0000 (11:54 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 24 Jun 2009 02:31:10 +0000 (19:31 -0700)
src/mesa/drivers/dri/intel/intel_context.c

index 32ce0e207b6ab3f1ca17b313cc53763378788a08..a28836a7d8a7671ce18eb20002bd666ef6c7a7db 100644 (file)
@@ -731,6 +731,12 @@ intelInitContext(struct intel_context *intel,
    }
    intel->use_texture_tiling = driQueryOptionb(&intel->optionCache,
                                               "texture_tiling");
+   if (intel->use_texture_tiling &&
+       !intel->intelScreen->kernel_exec_fencing) {
+      fprintf(stderr, "No kernel support for execution fencing, "
+             "disabling texture tiling");
+      intel->use_texture_tiling = GL_FALSE;
+   }
    intel->use_early_z = driQueryOptionb(&intel->optionCache, "early_z");
 
    intel->prim.primitive = ~0;