summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChad Versace <[email protected]>2011-11-17 08:53:39 -0800
committerChad Versace <[email protected]>2011-11-22 10:50:52 -0800
commite5411d8fdc6a7dda18d82746b84197ef83ee0a13 (patch)
tree31e1132cff984aba8f3b0725cf3c2e84cedbeb50
parentb18875d441ca4b7b1a4098659fb4298a4bf265f6 (diff)
i965/gen6: Enable HiZ by default
Regresses one Piglit test: bugs/fdo10370. I'm not enabling HiZ for gen7 yet because it causes a mysterious performance regression. Reviewed-by: Eric Anholt <[email protected]> Signed-off-by: Chad Versace <[email protected]>
-rw-r--r--src/mesa/drivers/dri/intel/intel_screen.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_screen.c b/src/mesa/drivers/dri/intel/intel_screen.c
index 67dccdf6006..46b822cb319 100644
--- a/src/mesa/drivers/dri/intel/intel_screen.c
+++ b/src/mesa/drivers/dri/intel/intel_screen.c
@@ -680,13 +680,9 @@ __DRIconfig **intelInitScreen2(__DRIscreen *psp)
intelScreen->gen = 2;
}
- /*
- * FIXME: The hiz and separate stencil fields need updating once the
- * FIXME: features are completely implemented for a given chipset.
- */
- intelScreen->hw_has_separate_stencil = intelScreen->gen >= 7;
+ intelScreen->hw_has_separate_stencil = intelScreen->gen >= 6;
intelScreen->hw_must_use_separate_stencil = intelScreen->gen >= 7;
- intelScreen->hw_has_hiz = false;
+ intelScreen->hw_has_hiz = intelScreen->gen == 6; /* Not yet for gen7. */
intelScreen->dri2_has_hiz = INTEL_DRI2_HAS_HIZ_UNKNOWN;
intel_override_hiz(intelScreen);