lib: make rendercopy.h an internal header

And move the public interfaces into intel_batchbuffer.[hc].

A bit messy since we are fairly inconsistent with our header #include
handling.

Also exclude rendercopy.h from the documentation.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Daniel Vetter
2014-03-22 15:31:15 +01:00
parent a8e8654f81
commit 7dc0001f3d
22 changed files with 255 additions and 111 deletions
+18 -1
View File
@@ -30,7 +30,24 @@
*/
#include <pthread.h>
#include "rendercopy.h"
#include <assert.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <fcntl.h>
#include <inttypes.h>
#include <errno.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <getopt.h>
#include "drm.h"
#include "i915_drm.h"
#include "drmtest.h"
#include "intel_bufmgr.h"
#include "intel_batchbuffer.h"
#include "intel_gpu_tools.h"
/* options */
int num_contexts = 10;
+18 -2
View File
@@ -32,8 +32,24 @@
#include <stdbool.h>
#include <unistd.h>
#include <cairo.h>
#include "rendercopy.h"
#include <assert.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <fcntl.h>
#include <inttypes.h>
#include <errno.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <getopt.h>
#include "drm.h"
#include "i915_drm.h"
#include "drmtest.h"
#include "intel_bufmgr.h"
#include "intel_batchbuffer.h"
#include "intel_gpu_tools.h"
#define WIDTH 512
#define STRIDE (WIDTH*4)
+18 -2
View File
@@ -37,8 +37,24 @@
#include "config.h"
#endif
#include "rendercopy.h"
#include <assert.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <fcntl.h>
#include <inttypes.h>
#include <errno.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <getopt.h>
#include "drm.h"
#include "i915_drm.h"
#include "drmtest.h"
#include "intel_bufmgr.h"
#include "intel_batchbuffer.h"
#include "intel_gpu_tools.h"
#define WIDTH 512
#define STRIDE (WIDTH*4)
#define HEIGHT 512
+18 -1
View File
@@ -33,7 +33,24 @@
* The goal is to simply ensure the basics work.
*/
#include "rendercopy.h"
#include <assert.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <fcntl.h>
#include <inttypes.h>
#include <errno.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <getopt.h>
#include "drm.h"
#include "i915_drm.h"
#include "drmtest.h"
#include "intel_bufmgr.h"
#include "intel_batchbuffer.h"
#include "intel_gpu_tools.h"
#define WIDTH 512
#define STRIDE (WIDTH*4)
+3 -2
View File
@@ -26,6 +26,7 @@
*/
#define _GNU_SOURCE
#include <stdbool.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
@@ -40,11 +41,11 @@
#include <signal.h>
#include "i915_drm.h"
#include "drmtest.h"
#include "igt_debugfs.h"
#include "intel_bufmgr.h"
#include "intel_batchbuffer.h"
#include "intel_gpu_tools.h"
#include "rendercopy.h"
#include "igt_debugfs.h"
#define RS_NO_ERROR 0
#define RS_BATCH_ACTIVE (1 << 0)
+1 -1
View File
@@ -52,7 +52,7 @@
#include "i915_drm.h"
#include "drmtest.h"
#include "rendercopy.h"
#include "intel_batchbuffer.h"
#define WIDTH 512
#define HEIGHT 512
+1 -1
View File
@@ -43,10 +43,10 @@
#include "drm.h"
#include "i915_drm.h"
#include "drmtest.h"
#include "intel_bufmgr.h"
#include "intel_batchbuffer.h"
#include "intel_gpu_tools.h"
#include "rendercopy.h"
struct bo {
const char *ring;
+3 -1
View File
@@ -39,13 +39,15 @@
#include <sys/wait.h>
#include <limits.h>
#include <wordexp.h>
#include <getopt.h>
#include <signal.h>
#include "i915_drm.h"
#include "drmtest.h"
#include "igt_core.h"
#include "intel_bufmgr.h"
#include "intel_batchbuffer.h"
#include "intel_gpu_tools.h"
#include "rendercopy.h"
static int devid;
static int card_index = 0;
+18 -1
View File
@@ -49,7 +49,24 @@
* In short: designed for maximum evilness.
*/
#include "rendercopy.h"
#include <assert.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <fcntl.h>
#include <inttypes.h>
#include <errno.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <getopt.h>
#include "drm.h"
#include "i915_drm.h"
#include "drmtest.h"
#include "intel_bufmgr.h"
#include "intel_batchbuffer.h"
#include "intel_gpu_tools.h"
#define CMD_POLY_STIPPLE_OFFSET 0x7906
+17 -1
View File
@@ -27,8 +27,24 @@
#include <stdio.h>
#include <time.h>
#include <assert.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <fcntl.h>
#include <inttypes.h>
#include <errno.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <getopt.h>
#include "drm.h"
#include "rendercopy.h"
#include "i915_drm.h"
#include "drmtest.h"
#include "intel_bufmgr.h"
#include "intel_batchbuffer.h"
#include "intel_gpu_tools.h"
#define MSEC_PER_SEC 1000L
#define USEC_PER_MSEC 1000L
+1 -1
View File
@@ -32,7 +32,7 @@
#include "drmtest.h"
#include "igt_debugfs.h"
#include "igt_kms.h"
#include "rendercopy.h"
#include "intel_batchbuffer.h"
enum test_mode {
TEST_PAGE_FLIP,
+1 -1
View File
@@ -39,7 +39,7 @@
#include "i915_drm.h"
#include "drmtest.h"
#include "testdisplay.h"
#include "rendercopy.h"
#include "intel_batchbuffer.h"
#include "igt_kms.h"
#define TEST_DPMS (1 << 0)