summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-03-21 07:58:51 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2011-03-21 07:58:51 +0000
commit652d9eb983c25caf4bac09aabafbf90aa9daddbf (patch)
tree8fa655d31cd4d50ade332103e0a30524afdcf08c /tests
parent80aae9b4244d02873e9f6221de70a4d9cbbc2504 (diff)
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 <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests')
-rw-r--r--tests/gem_stress.c5
1 files 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]);