diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-12-14 17:38:28 -0500 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-12-17 09:09:49 -0500 |
commit | 4283908ef7f11a72c3b80dd4cf026f1a86429f82 (patch) | |
tree | 84bb3ca366578bd36b8f034dbc475080104eacb2 | |
parent | f20e0b08b8b2a8432e6abf3683960099f0ab2958 (diff) |
drm/i915: Implement WaDisableHiZPlanesWhenMSAAEnabled
Quoting from Bspec, 3D_CHICKEN1, bit 10
This bit needs to be set always to "1", Project: DevSNB "
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r-- | drivers/gpu/drm/i915/i915_reg.h | 1 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/intel_pm.c | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index 3f75cfaf1c3f..e0019378f8b1 100644 --- a/drivers/gpu/drm/i915/i915_reg.h +++ b/drivers/gpu/drm/i915/i915_reg.h | |||
@@ -517,6 +517,7 @@ | |||
517 | * the enables for writing to the corresponding low bit. | 517 | * the enables for writing to the corresponding low bit. |
518 | */ | 518 | */ |
519 | #define _3D_CHICKEN 0x02084 | 519 | #define _3D_CHICKEN 0x02084 |
520 | #define _3D_CHICKEN_HIZ_PLANE_DISABLE_MSAA_4X_SNB (1 << 10) | ||
520 | #define _3D_CHICKEN2 0x0208c | 521 | #define _3D_CHICKEN2 0x0208c |
521 | /* Disables pipelining of read flushes past the SF-WIZ interface. | 522 | /* Disables pipelining of read flushes past the SF-WIZ interface. |
522 | * Required on all Ironlake steppings according to the B-Spec, but the | 523 | * Required on all Ironlake steppings according to the B-Spec, but the |
diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c index 5835277d9632..3b85660ce4e4 100644 --- a/drivers/gpu/drm/i915/intel_pm.c +++ b/drivers/gpu/drm/i915/intel_pm.c | |||
@@ -3592,6 +3592,10 @@ static void gen6_init_clock_gating(struct drm_device *dev) | |||
3592 | I915_READ(ILK_DISPLAY_CHICKEN2) | | 3592 | I915_READ(ILK_DISPLAY_CHICKEN2) | |
3593 | ILK_ELPIN_409_SELECT); | 3593 | ILK_ELPIN_409_SELECT); |
3594 | 3594 | ||
3595 | /* WaDisableHiZPlanesWhenMSAAEnabled */ | ||
3596 | I915_WRITE(_3D_CHICKEN, | ||
3597 | _MASKED_BIT_ENABLE(_3D_CHICKEN_HIZ_PLANE_DISABLE_MSAA_4X_SNB)); | ||
3598 | |||
3595 | I915_WRITE(WM3_LP_ILK, 0); | 3599 | I915_WRITE(WM3_LP_ILK, 0); |
3596 | I915_WRITE(WM2_LP_ILK, 0); | 3600 | I915_WRITE(WM2_LP_ILK, 0); |
3597 | I915_WRITE(WM1_LP_ILK, 0); | 3601 | I915_WRITE(WM1_LP_ILK, 0); |