From 652d9eb983c25caf4bac09aabafbf90aa9daddbf Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 21 Mar 2011 07:58:51 +0000 Subject: [PATCH] stress: Distinguish between busy_bo and scratch_bo creation sizes 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 --- tests/gem_stress.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/gem_stress.c b/tests/gem_stress.c index 5c5bc226..06867738 100644 --- a/tests/gem_stress.c +++ b/tests/gem_stress.c @@ -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]);