mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-10 01:16:18 +00:00
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>
This commit is contained in:
parent
80aae9b424
commit
652d9eb983
@ -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]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user