stress: Distinguish between busy_bo and scratch_bo creation sizes
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 21 Mar 2011 07:58:51 +0000 (07:58 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 21 Mar 2011 07:58:51 +0000 (07:58 +0000)
The busy bo has a fixed size (1024x256, 32bpp) whereas the scratch bo
may need to vary their size to exercise different features of fence
allocation.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
tests/gem_stress.c

index 5c5bc22..0686773 100644 (file)
@@ -106,7 +106,8 @@ drm_intel_bo *busy_bo;
 
 #define MAX_BUFS               4096
 #define SCRATCH_BUF_SIZE       1024*1024
-#define TILE_SIZE              16
+#define BUSY_BUF_SIZE          (256*4096)
+#define TILE_SIZE              16
 #define TILES_PER_BUF          (SCRATCH_BUF_SIZE / (TILE_SIZE*TILE_SIZE*sizeof(uint32_t)))
 
 static struct scratch_buf buffers[2][MAX_BUFS];
@@ -540,7 +541,7 @@ int main(int argc, char **argv)
        devid = intel_get_drm_devid(drm_fd);
        num_fences = get_num_fences();
        batch = intel_batchbuffer_alloc(bufmgr, devid);
-       busy_bo = drm_intel_bo_alloc(bufmgr, "tiled bo", SCRATCH_BUF_SIZE, 4096);
+       busy_bo = drm_intel_bo_alloc(bufmgr, "tiled bo", BUSY_BUF_SIZE, 4096);
 
        for (i = 0; i < num_buffers; i++) {
                init_buffer(&buffers[0][i]);