@@ -2335,6 +2335,7 @@ static void i965_write_fence_reg(struct drm_i915_fence_reg *reg)
val |= I965_FENCE_REG_VALID;
I915_WRITE64(FENCE_REG_965_0 + (regnum * 8), val);
+ I915_READ64(FENCE_REG_965_0 + (regnum * 8));
}
static void i915_write_fence_reg(struct drm_i915_fence_reg *reg)
@@ -2377,6 +2378,7 @@ static void i915_write_fence_reg(struct drm_i915_fence_reg *reg)
else
fence_reg = FENCE_REG_945_8 + ((regnum - 8) * 4);
I915_WRITE(fence_reg, val);
+ I915_READ(fence_reg);
}
static void i830_write_fence_reg(struct drm_i915_fence_reg *reg)
@@ -2411,6 +2413,7 @@ static void i830_write_fence_reg(struct drm_i915_fence_reg *reg)
val |= I830_FENCE_REG_VALID;
I915_WRITE(FENCE_REG_830_0 + (regnum * 4), val);
+ I915_READ(FENCE_REG_830_0 + (regnum * 4));
}
static int i915_find_fence_reg(struct drm_device *dev)