intel: gen3 is particular sensitive to batch size
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 23 Feb 2011 23:09:36 +0000 (23:09 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 23 Feb 2011 23:11:26 +0000 (23:11 +0000)
... and prefers a small batch whereas gen4+ prefer a large batch to
carry more state.

Tuning using openarena/padman indicate that a batch size of just 4096 is
best for those cases.

Bugzilla: https://bugs.freedesktop.org/process_bug.cgi
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/mesa/drivers/dri/intel/intel_context.c

index 7dbd9d9dde2d8091669ac9115041147b33945970..d22fa27aaa6f43f6658755f6e4106238285754cd 100644 (file)
@@ -746,7 +746,7 @@ intelInitContext(struct intel_context *intel,
 
    driParseConfigFiles(&intel->optionCache, &intelScreen->optionCache,
                        sPriv->myNum, (intel->gen >= 4) ? "i965" : "i915");
-   if (intelScreen->deviceID == PCI_CHIP_I865_G)
+   if (intel->gen < 4)
       intel->maxBatchSize = 4096;
    else
       intel->maxBatchSize = sizeof(intel->batch.map);