summaryrefslogtreecommitdiff
path: root/lib/intel_gpu_tools.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-02-20 22:53:26 +0000
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-02-22 10:48:03 +0100
commitfa6c2757feb18b17120310fe315ed32594ff326c (patch)
tree57d8ef3c70a368369291c74288c2f7e396d983e6 /lib/intel_gpu_tools.h
parent5cf555868214ac6d55d8102d3198813aadc37853 (diff)
tests/gem_ringfill: Exercise all rings
On SandyBridge, the BLT commands were split from the RENDER commands as well as the BSD split inherited from Ironlake. So we need to make sure we do exercise each ring, and in order to do so we also need to make sure each batch takes longer to execute than it takes for us to submit it. v2: Exercise each ring sequentially. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/intel_gpu_tools.h')
-rw-r--r--lib/intel_gpu_tools.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/intel_gpu_tools.h b/lib/intel_gpu_tools.h
index f46abfa8..eb21a165 100644
--- a/lib/intel_gpu_tools.h
+++ b/lib/intel_gpu_tools.h
@@ -25,6 +25,9 @@
*
*/
+#ifndef INTEL_GPU_TOOLS_H
+#define INTEL_GPU_TOOLS_H
+
#include <stdint.h>
#include <sys/types.h>
#include <pciaccess.h>
@@ -94,3 +97,5 @@ extern enum pch_type pch;
void intel_check_pch(void);
#define HAS_CPT (pch == PCH_CPT)
+
+#endif /* INTEL_GPU_TOOLS_H */