gem_stress: move a few things out of gem_stress.h

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Daniel Vetter 2012-01-18 01:03:20 +01:00
parent f1de285e7e
commit 699d30950f
2 changed files with 5 additions and 10 deletions

View File

@ -75,6 +75,11 @@ drm_intel_bo *busy_bo;
struct option_struct options;
#define MAX_BUFS 4096
#define SCRATCH_BUF_SIZE 1024*1024
#define BUSY_BUF_SIZE (256*4096)
#define TILE_BYTES(size) ((size)*(size)*sizeof(uint32_t))
static struct scratch_buf buffers[2][MAX_BUFS];
/* tile i is at logical position tile_permutation[i] */
static unsigned *tile_permutation;

View File

@ -47,16 +47,6 @@ struct option_struct {
};
extern struct option_struct options;
extern drm_intel_bufmgr *bufmgr;
extern int drm_fd;
extern int devid;
extern int fence_storm;
#define MAX_BUFS 4096
#define SCRATCH_BUF_SIZE 1024*1024
#define BUSY_BUF_SIZE (256*4096)
#define TILE_BYTES(size) ((size)*(size)*sizeof(uint32_t))
void keep_gpu_busy(void);