intel: Increase max relocs per batchbuffer
authorJakob Bornecrantz <wallbraker@gmail.com>
Tue, 3 Mar 2009 01:05:52 +0000 (02:05 +0100)
committerJakob Bornecrantz <wallbraker@gmail.com>
Tue, 3 Mar 2009 02:19:49 +0000 (03:19 +0100)
src/gallium/winsys/drm/intel/gem/intel_be_batchbuffer.c

index d9556e1f38427dec9201ca02f5337e2af86679a9..013743378526747ee5746fbe48cfd5b44910083c 100644 (file)
@@ -21,7 +21,7 @@ intel_be_batchbuffer_alloc(struct intel_be_context *intel)
        batch->base.size = 0;
        batch->base.actual_size = intel->device->max_batch_size;
        batch->base.relocs = 0;
-       batch->base.max_relocs = INTEL_DEFAULT_RELOCS;
+       batch->base.max_relocs = 500;/*INTEL_DEFAULT_RELOCS;*/
 
        batch->base.map = malloc(batch->base.actual_size);
        memset(batch->base.map, 0, batch->base.actual_size);
@@ -47,7 +47,6 @@ intel_be_batchbuffer_reset(struct intel_be_batchbuffer *batch)
        batch->base.size = batch->base.actual_size - BATCH_RESERVED;
 
        batch->base.relocs = 0;
-       batch->base.max_relocs = INTEL_DEFAULT_RELOCS;
 
        batch->bo = drm_intel_bo_alloc(dev->pools.gem,
                                       "gallium3d_batch_buffer",