i965/gen7: Enable transform feedback as long as kernel support is present.
authorEric Anholt <eric@anholt.net>
Fri, 30 Dec 2011 07:37:17 +0000 (23:37 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 6 Jan 2012 17:17:17 +0000 (09:17 -0800)
The last major issue (intervening-read) is fixed, so let's turn this
on for real.  The only other known issue is a hardware limitation for
tesselation with flat shading.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
src/mesa/drivers/dri/intel/intel_extensions.c
src/mesa/drivers/dri/intel/intel_screen.c
src/mesa/drivers/dri/intel/intel_screen.h

index 13aadb394b012520664762df36b0a5adc628a49d..789fc9e0c7bff135df00c08788f5337620d629ae 100644 (file)
@@ -104,7 +104,8 @@ intelInitExtensions(struct gl_context *ctx)
       ctx->Const.GLSLVersion = 120;
    _mesa_override_glsl_version(ctx);
 
-   if (intel->gen == 6 || (intel->gen == 7 && override_version >= 30))
+   if (intel->gen == 6 ||
+       (intel->gen == 7 && intel->intelScreen->kernel_has_gen7_sol_reset))
       ctx->Extensions.EXT_transform_feedback = true;
 
    if (intel->gen >= 5)
index dd0ce611f12b7e6bb03f56d6050de29b5e1780ec..2478cb3b775f0bc5056b074565ba3fc728194f9c 100644 (file)
@@ -697,6 +697,10 @@ __DRIconfig **intelInitScreen2(__DRIscreen *psp)
       intelScreen->deviceID = strtod(devid_override, NULL);
    }
 
+   intelScreen->kernel_has_gen7_sol_reset =
+      intel_get_boolean(intelScreen->driScrnPriv,
+                       I915_PARAM_HAS_GEN7_SOL_RESET);
+
    if (IS_GEN7(intelScreen->deviceID)) {
       intelScreen->gen = 7;
    } else if (IS_GEN6(intelScreen->deviceID)) {
index 63c58df2f068d153e36ac8d9bba4c6d052f0bc23..6c6b516f23067016aa6e6c585dcc445f9919a1a4 100644 (file)
@@ -114,6 +114,8 @@ struct intel_screen
    bool hw_has_hiz;
    enum intel_dri2_has_hiz dri2_has_hiz;
 
+   bool kernel_has_gen7_sol_reset;
+
    bool no_vbo;
    dri_bufmgr *bufmgr;
    struct _mesa_HashTable *named_regions;