gem_stress: move option struct out of header
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 18 Jan 2012 16:47:33 +0000 (17:47 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 18 Jan 2012 16:47:33 +0000 (17:47 +0100)
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
tests/gem_stress.c
tests/gem_stress.h

index 5b9b9a6..5fd30cb 100644 (file)
@@ -73,6 +73,26 @@ int num_fences;
 
 drm_intel_bo *busy_bo;
 
+struct option_struct {
+    unsigned scratch_buf_size;
+    unsigned max_dimension;
+    unsigned num_buffers;
+    int trace_tile;
+    int no_hw;
+    int gpu_busy_load;
+    int use_render;
+    int use_blt;
+    int forced_tiling;
+    int use_cpu_maps;
+    int total_rounds;
+    int fail;
+    int tiles_per_buf;
+    int ducttape;
+    int tile_size;
+    int check_render_cpyfn;
+    int use_signal_helper;
+};
+
 struct option_struct options;
 
 #define MAX_BUFS               4096
index 82e8a57..ef7e963 100644 (file)
@@ -26,28 +26,6 @@ struct scratch_buf {
     unsigned num_tiles;
 };
 
-struct option_struct {
-    unsigned scratch_buf_size;
-    unsigned max_dimension;
-    unsigned num_buffers;
-    int trace_tile;
-    int no_hw;
-    int gpu_busy_load;
-    int use_render;
-    int use_blt;
-    int forced_tiling;
-    int use_cpu_maps;
-    int total_rounds;
-    int fail;
-    int tiles_per_buf;
-    int ducttape;
-    int tile_size;
-    int check_render_cpyfn;
-    int use_signal_helper;
-};
-
-extern struct option_struct options;
-
 void keep_gpu_busy(void);
 
 static inline void emit_vertex_2s(struct intel_batchbuffer *batch,