From b04896ca961678d74a7ced60cfc3d836326e3804 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Wed, 2 May 2007 16:42:01 +0200 Subject: [PATCH] i915: Absolute HW offset for static state instead of relative to batch_start. With the corresponding Mesa change, I can see rendering from the HWB, if not quite correct yet... --- shared-core/i915_dma.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/shared-core/i915_dma.c b/shared-core/i915_dma.c index 975c882b..665ae839 100644 --- a/shared-core/i915_dma.c +++ b/shared-core/i915_dma.c @@ -1313,8 +1313,7 @@ static int i915_hwz_render(drm_device_t *dev, struct drm_i915_hwz_render *render BEGIN_RING(&dev_priv->ring, 4); OUT_RING(GFX_OP_LOAD_INDIRECT | (1<<8) | (0<<14) | 1); - OUT_RING((render->batch_start + render->static_state_offset) | - (1<<1) | (1<<0)); + OUT_RING(render->static_state_offset | (1<<1) | (1<<0)); OUT_RING(render->static_state_size - 1); OUT_RING(0); ADVANCE_RING();