i915: Fix logic !gen >= 3
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 22 Feb 2010 09:51:33 +0000 (09:51 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 22 Feb 2010 09:55:41 +0000 (09:55 +0000)
The effect of this was that all objects were aligned to 128 bytes
on all generations, rather than just gen2.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/mesa/drivers/dri/i915/intel_tris.c

index 9975e2f47b02b6bc44661499499970ecccbdae2d..0afbda2436b6a15e131efaab454a6dfad9ffe331 100644 (file)
@@ -217,7 +217,7 @@ void intel_flush_prim(struct intel_context *intel)
    intel->prim.count = 0;
    offset = intel->prim.start_offset;
    intel->prim.start_offset = intel->prim.current_offset;
-   if (!intel->gen >= 3)
+   if (intel->gen < 3)
       intel->prim.start_offset = ALIGN(intel->prim.start_offset, 128);
    intel->prim.flush = NULL;