mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-08 16:36:14 +00:00
lib: add a single include header
Add a header that includes all the headers for the library. This allows reorganisation of the library without affecting programs using it and also simplifies the headers that need to be included to use the library. Signed-off-by: Thomas Wood <thomas.wood@intel.com>
This commit is contained in:
parent
a11879a4ab
commit
804e11f40d
49
lib/igt.h
Normal file
49
lib/igt.h
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
/*
|
||||||
|
* Copyright © 2015 Intel Corporation
|
||||||
|
*
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
|
* copy of this software and associated documentation files (the "Software"),
|
||||||
|
* to deal in the Software without restriction, including without limitation
|
||||||
|
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||||
|
* and/or sell copies of the Software, and to permit persons to whom the
|
||||||
|
* Software is furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice (including the next
|
||||||
|
* paragraph) shall be included in all copies or substantial portions of the
|
||||||
|
* Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||||
|
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||||
|
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||||
|
* IN THE SOFTWARE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef IGT_H
|
||||||
|
#define IGT_H
|
||||||
|
|
||||||
|
#include "drmtest.h"
|
||||||
|
#include "i915_3d.h"
|
||||||
|
#include "i915_pciids.h"
|
||||||
|
#include "igt_aux.h"
|
||||||
|
#include "igt_core.h"
|
||||||
|
#include "igt_core.h"
|
||||||
|
#include "igt_debugfs.h"
|
||||||
|
#include "igt_draw.h"
|
||||||
|
#include "igt_fb.h"
|
||||||
|
#include "igt_gt.h"
|
||||||
|
#include "igt_kms.h"
|
||||||
|
#include "igt_stats.h"
|
||||||
|
#include "instdone.h"
|
||||||
|
#include "intel_batchbuffer.h"
|
||||||
|
#include "intel_chipset.h"
|
||||||
|
#include "intel_io.h"
|
||||||
|
#include "ioctl_wrappers.h"
|
||||||
|
#include "media_fill.h"
|
||||||
|
#include "media_spin.h"
|
||||||
|
#include "rendercopy.h"
|
||||||
|
#include "version.h"
|
||||||
|
|
||||||
|
#endif /* IGT_H */
|
@ -33,6 +33,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
|
#include "igt.h"
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -44,8 +45,6 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
|
|
||||||
/* Checks whether the thread id is the current thread */
|
/* Checks whether the thread id is the current thread */
|
||||||
static bool
|
static bool
|
||||||
|
@ -25,12 +25,12 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#include "drmtest.h"
|
|
||||||
|
|
||||||
IGT_TEST_DESCRIPTION("Tests the DRM_IOCTL_GET_CLIENT ioctl.");
|
IGT_TEST_DESCRIPTION("Tests the DRM_IOCTL_GET_CLIENT ioctl.");
|
||||||
|
|
||||||
|
@ -25,14 +25,13 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#include <drm.h>
|
#include <drm.h>
|
||||||
|
|
||||||
#include "igt_core.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks DRM_IOCTL_GET_STATS.
|
* Checks DRM_IOCTL_GET_STATS.
|
||||||
|
@ -25,9 +25,9 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include "drmtest.h"
|
|
||||||
|
|
||||||
IGT_TEST_DESCRIPTION("Tests the DRM_IOCTL_GET_VERSION ioctl and libdrm's "
|
IGT_TEST_DESCRIPTION("Tests the DRM_IOCTL_GET_VERSION ioctl and libdrm's "
|
||||||
"drmGetVersion() interface to it.");
|
"drmGetVersion() interface to it.");
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
* Testcase: drmGetMagic() and drmAuthMagic()
|
* Testcase: drmGetMagic() and drmAuthMagic()
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
@ -39,9 +40,6 @@
|
|||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <sys/poll.h>
|
#include <sys/poll.h>
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "igt_aux.h"
|
|
||||||
|
|
||||||
IGT_TEST_DESCRIPTION("Call drmGetMagic() and drmAuthMagic() and see if it behaves.");
|
IGT_TEST_DESCRIPTION("Call drmGetMagic() and drmAuthMagic() and see if it behaves.");
|
||||||
|
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
|
#include "igt.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
@ -40,8 +41,6 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/syscall.h>
|
#include <sys/syscall.h>
|
||||||
|
|
||||||
#include "igt_core.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
|
|
||||||
int fd;
|
int fd;
|
||||||
drm_intel_bufmgr *bufmgr;
|
drm_intel_bufmgr *bufmgr;
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
* Testcase: boundary testing of read(drm_fd)
|
* Testcase: boundary testing of read(drm_fd)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
@ -43,9 +44,6 @@
|
|||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <sys/poll.h>
|
#include <sys/poll.h>
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "igt_aux.h"
|
|
||||||
|
|
||||||
IGT_TEST_DESCRIPTION("Call read(drm) and see if it behaves.");
|
IGT_TEST_DESCRIPTION("Call read(drm) and see if it behaves.");
|
||||||
|
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
* Daniel Vetter <daniel.vetter@ffwll.ch>
|
* Daniel Vetter <daniel.vetter@ffwll.ch>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -33,12 +34,7 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "intel_bufmgr.h"
|
#include "intel_bufmgr.h"
|
||||||
#include "intel_batchbuffer.h"
|
|
||||||
#include "intel_io.h"
|
|
||||||
#include "intel_chipset.h"
|
|
||||||
|
|
||||||
static drm_intel_bufmgr *bufmgr;
|
static drm_intel_bufmgr *bufmgr;
|
||||||
struct intel_batchbuffer *batch;
|
struct intel_batchbuffer *batch;
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
* Daniel Vetter <daniel.vetter@ffwll.ch>
|
* Daniel Vetter <daniel.vetter@ffwll.ch>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -33,12 +34,7 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "intel_bufmgr.h"
|
#include "intel_bufmgr.h"
|
||||||
#include "intel_batchbuffer.h"
|
|
||||||
#include "intel_io.h"
|
|
||||||
#include "intel_chipset.h"
|
|
||||||
|
|
||||||
static drm_intel_bufmgr *bufmgr;
|
static drm_intel_bufmgr *bufmgr;
|
||||||
struct intel_batchbuffer *batch;
|
struct intel_batchbuffer *batch;
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
* Daniel Vetter <daniel.vetter@ffwll.ch>
|
* Daniel Vetter <daniel.vetter@ffwll.ch>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -33,12 +34,7 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "intel_bufmgr.h"
|
#include "intel_bufmgr.h"
|
||||||
#include "intel_batchbuffer.h"
|
|
||||||
#include "intel_io.h"
|
|
||||||
#include "intel_chipset.h"
|
|
||||||
|
|
||||||
static drm_intel_bufmgr *bufmgr;
|
static drm_intel_bufmgr *bufmgr;
|
||||||
struct intel_batchbuffer *batch;
|
struct intel_batchbuffer *batch;
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
* Daniel Vetter <daniel.vetter@ffwll.ch>
|
* Daniel Vetter <daniel.vetter@ffwll.ch>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -33,12 +34,7 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "intel_bufmgr.h"
|
#include "intel_bufmgr.h"
|
||||||
#include "intel_batchbuffer.h"
|
|
||||||
#include "intel_io.h"
|
|
||||||
#include "intel_chipset.h"
|
|
||||||
|
|
||||||
static drm_intel_bufmgr *bufmgr;
|
static drm_intel_bufmgr *bufmgr;
|
||||||
struct intel_batchbuffer *batch;
|
struct intel_batchbuffer *batch;
|
||||||
|
@ -25,12 +25,11 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <xf86drm.h>
|
#include <xf86drm.h>
|
||||||
#include <i915_drm.h>
|
#include <i915_drm.h>
|
||||||
#include "drmtest.h"
|
|
||||||
#include "intel_chipset.h"
|
|
||||||
#include "intel_bufmgr.h"
|
#include "intel_bufmgr.h"
|
||||||
|
|
||||||
IGT_TEST_DESCRIPTION("Tests the export of parameters via DRM_IOCTL_I915_GETPARAM\n");
|
IGT_TEST_DESCRIPTION("Tests the export of parameters via DRM_IOCTL_I915_GETPARAM\n");
|
||||||
|
@ -26,16 +26,12 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
|
||||||
#include "intel_chipset.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "igt_aux.h"
|
|
||||||
#include "igt_gt.h"
|
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
|
|
||||||
#ifndef I915_PARAM_CMD_PARSER_VERSION
|
#ifndef I915_PARAM_CMD_PARSER_VERSION
|
||||||
#define I915_PARAM_CMD_PARSER_VERSION 28
|
#define I915_PARAM_CMD_PARSER_VERSION 28
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -38,10 +39,6 @@
|
|||||||
|
|
||||||
#include <drm.h>
|
#include <drm.h>
|
||||||
|
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "igt_gt.h"
|
|
||||||
#include "igt_aux.h"
|
|
||||||
|
|
||||||
#define OBJECT_SIZE (16*1024*1024)
|
#define OBJECT_SIZE (16*1024*1024)
|
||||||
|
|
||||||
|
@ -27,10 +27,9 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "igt_aux.h"
|
|
||||||
|
|
||||||
struct igt_eviction_test_ops
|
struct igt_eviction_test_ops
|
||||||
{
|
{
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#include "igt.h"
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
@ -5,7 +6,6 @@
|
|||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <i915_drm.h>
|
#include <i915_drm.h>
|
||||||
|
|
||||||
#include "drmtest.h"
|
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -35,12 +36,7 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "intel_bufmgr.h"
|
#include "intel_bufmgr.h"
|
||||||
#include "intel_chipset.h"
|
|
||||||
#include "intel_batchbuffer.h"
|
|
||||||
#include "intel_io.h"
|
|
||||||
|
|
||||||
static drm_intel_bufmgr *bufmgr;
|
static drm_intel_bufmgr *bufmgr;
|
||||||
struct intel_batchbuffer *batch;
|
struct intel_batchbuffer *batch;
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -35,12 +36,7 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "intel_bufmgr.h"
|
#include "intel_bufmgr.h"
|
||||||
#include "intel_batchbuffer.h"
|
|
||||||
#include "intel_chipset.h"
|
|
||||||
#include "intel_io.h"
|
|
||||||
|
|
||||||
static drm_intel_bufmgr *bufmgr;
|
static drm_intel_bufmgr *bufmgr;
|
||||||
struct intel_batchbuffer *batch;
|
struct intel_batchbuffer *batch;
|
||||||
|
@ -41,6 +41,7 @@
|
|||||||
* resulted.
|
* resulted.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -50,12 +51,7 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "intel_bufmgr.h"
|
#include "intel_bufmgr.h"
|
||||||
#include "intel_batchbuffer.h"
|
|
||||||
#include "intel_chipset.h"
|
|
||||||
#include "intel_io.h"
|
|
||||||
|
|
||||||
static drm_intel_bufmgr *bufmgr;
|
static drm_intel_bufmgr *bufmgr;
|
||||||
struct intel_batchbuffer *batch;
|
struct intel_batchbuffer *batch;
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -35,8 +36,6 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
|
|
||||||
IGT_TEST_DESCRIPTION("Test minimal bo_create and batchbuffer exec.");
|
IGT_TEST_DESCRIPTION("Test minimal bo_create and batchbuffer exec.");
|
||||||
|
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
@ -37,10 +38,6 @@
|
|||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "intel_io.h"
|
|
||||||
#include "intel_chipset.h"
|
|
||||||
|
|
||||||
IGT_TEST_DESCRIPTION("Simulates SNA behaviour using negative self-relocations"
|
IGT_TEST_DESCRIPTION("Simulates SNA behaviour using negative self-relocations"
|
||||||
" for STATE_BASE_ADDRESS command packets.");
|
" for STATE_BASE_ADDRESS command packets.");
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -35,8 +36,6 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
test_bad_close(int fd)
|
test_bad_close(int fd)
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -37,13 +38,7 @@
|
|||||||
|
|
||||||
#include <drm.h>
|
#include <drm.h>
|
||||||
|
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "intel_bufmgr.h"
|
#include "intel_bufmgr.h"
|
||||||
#include "intel_batchbuffer.h"
|
|
||||||
#include "intel_io.h"
|
|
||||||
#include "intel_chipset.h"
|
|
||||||
#include "igt_aux.h"
|
|
||||||
|
|
||||||
IGT_TEST_DESCRIPTION("Test snoop consistency when touching partial"
|
IGT_TEST_DESCRIPTION("Test snoop consistency when touching partial"
|
||||||
" cachelines.");
|
" cachelines.");
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@ -38,9 +39,6 @@
|
|||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "intel_chipset.h"
|
|
||||||
|
|
||||||
#define OBJECT_SIZE (256 * 1024)
|
#define OBJECT_SIZE (256 * 1024)
|
||||||
|
|
||||||
|
@ -35,6 +35,7 @@
|
|||||||
* Based on gem_gtt_concurrent_blt.
|
* Based on gem_gtt_concurrent_blt.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -47,15 +48,7 @@
|
|||||||
|
|
||||||
#include <drm.h>
|
#include <drm.h>
|
||||||
|
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "igt_aux.h"
|
|
||||||
#include "igt_core.h"
|
|
||||||
#include "igt_gt.h"
|
|
||||||
#include "intel_bufmgr.h"
|
#include "intel_bufmgr.h"
|
||||||
#include "intel_batchbuffer.h"
|
|
||||||
#include "intel_io.h"
|
|
||||||
#include "intel_chipset.h"
|
|
||||||
|
|
||||||
IGT_TEST_DESCRIPTION("Test of pread/pwrite/mmap behavior when writing to active"
|
IGT_TEST_DESCRIPTION("Test of pread/pwrite/mmap behavior when writing to active"
|
||||||
" buffers.");
|
" buffers.");
|
||||||
|
@ -45,6 +45,7 @@
|
|||||||
* GPU will hang.
|
* GPU will hang.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -56,13 +57,7 @@
|
|||||||
|
|
||||||
#include <drm.h>
|
#include <drm.h>
|
||||||
|
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "intel_bufmgr.h"
|
#include "intel_bufmgr.h"
|
||||||
#include "intel_batchbuffer.h"
|
|
||||||
#include "intel_io.h"
|
|
||||||
#include "intel_chipset.h"
|
|
||||||
#include "igt_aux.h"
|
|
||||||
|
|
||||||
IGT_TEST_DESCRIPTION("Test the relocations through the CPU domain.");
|
IGT_TEST_DESCRIPTION("Test the relocations through the CPU domain.");
|
||||||
|
|
||||||
|
@ -35,6 +35,7 @@
|
|||||||
* This test for a bug where we've failed to plug a scratch pte entry into the
|
* This test for a bug where we've failed to plug a scratch pte entry into the
|
||||||
* very last gtt pte.
|
* very last gtt pte.
|
||||||
*/
|
*/
|
||||||
|
#include "igt.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -46,13 +47,7 @@
|
|||||||
|
|
||||||
#include <drm.h>
|
#include <drm.h>
|
||||||
|
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "intel_bufmgr.h"
|
#include "intel_bufmgr.h"
|
||||||
#include "intel_batchbuffer.h"
|
|
||||||
#include "intel_io.h"
|
|
||||||
#include "intel_chipset.h"
|
|
||||||
#include "igt_aux.h"
|
|
||||||
|
|
||||||
IGT_TEST_DESCRIPTION("Test the CS prefetch behaviour on batches.");
|
IGT_TEST_DESCRIPTION("Test the CS prefetch behaviour on batches.");
|
||||||
|
|
||||||
|
@ -35,6 +35,7 @@
|
|||||||
* https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/1063252
|
* https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/1063252
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
@ -49,10 +50,6 @@
|
|||||||
|
|
||||||
#include <drm.h>
|
#include <drm.h>
|
||||||
|
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "intel_io.h"
|
|
||||||
#include "igt_aux.h"
|
|
||||||
|
|
||||||
IGT_TEST_DESCRIPTION("Check whether we correctly invalidate the cs tlb.");
|
IGT_TEST_DESCRIPTION("Check whether we correctly invalidate the cs tlb.");
|
||||||
|
|
||||||
|
@ -29,12 +29,11 @@
|
|||||||
* Negative test cases for destroy contexts
|
* Negative test cases for destroy contexts
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
|
|
||||||
IGT_TEST_DESCRIPTION("Negative test cases for destroy contexts.");
|
IGT_TEST_DESCRIPTION("Negative test cases for destroy contexts.");
|
||||||
|
|
||||||
|
@ -30,6 +30,7 @@
|
|||||||
* test we can't submit contexts to unsupported rings
|
* test we can't submit contexts to unsupported rings
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
@ -42,8 +43,6 @@
|
|||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
|
|
||||||
IGT_TEST_DESCRIPTION("Test that context cannot be submitted to unsupported"
|
IGT_TEST_DESCRIPTION("Test that context cannot be submitted to unsupported"
|
||||||
" rings.");
|
" rings.");
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
* This test is useful for finding memory and refcount leaks.
|
* This test is useful for finding memory and refcount leaks.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
@ -40,12 +41,7 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "intel_bufmgr.h"
|
#include "intel_bufmgr.h"
|
||||||
#include "intel_batchbuffer.h"
|
|
||||||
#include "intel_io.h"
|
|
||||||
#include "intel_chipset.h"
|
|
||||||
|
|
||||||
IGT_TEST_DESCRIPTION("Basic test for memory and refcount leaks.");
|
IGT_TEST_DESCRIPTION("Basic test for memory and refcount leaks.");
|
||||||
|
|
||||||
|
@ -25,12 +25,11 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
|
|
||||||
int ret, fd;
|
int ret, fd;
|
||||||
struct drm_i915_gem_context_create create;
|
struct drm_i915_gem_context_create create;
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
* This test covers basic context switch functionality
|
* This test covers basic context switch functionality
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
@ -43,10 +44,6 @@
|
|||||||
|
|
||||||
#include <drm.h>
|
#include <drm.h>
|
||||||
|
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "igt_aux.h"
|
|
||||||
#include "igt_gt.h"
|
|
||||||
|
|
||||||
IGT_TEST_DESCRIPTION("Test basic context switch functionality.");
|
IGT_TEST_DESCRIPTION("Test basic context switch functionality.");
|
||||||
|
|
||||||
|
@ -24,12 +24,10 @@
|
|||||||
* Daniel Vetter <daniel.vetter@ffwll.ch>
|
* Daniel Vetter <daniel.vetter@ffwll.ch>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "igt_aux.h"
|
|
||||||
|
|
||||||
IGT_TEST_DESCRIPTION("Basic test for context set/get param input validation.");
|
IGT_TEST_DESCRIPTION("Basic test for context set/get param input validation.");
|
||||||
|
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
@ -30,10 +31,6 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/resource.h>
|
#include <sys/resource.h>
|
||||||
|
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "igt_aux.h"
|
|
||||||
#include "intel_chipset.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
|
|
||||||
IGT_TEST_DESCRIPTION("Fill the Gobal GTT with context objects and VMs\n");
|
IGT_TEST_DESCRIPTION("Fill the Gobal GTT with context objects and VMs\n");
|
||||||
|
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -34,13 +35,8 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "intel_bufmgr.h"
|
#include "intel_bufmgr.h"
|
||||||
#include "intel_batchbuffer.h"
|
|
||||||
#include "intel_io.h"
|
|
||||||
#include "i830_reg.h"
|
#include "i830_reg.h"
|
||||||
#include "intel_chipset.h"
|
|
||||||
|
|
||||||
static drm_intel_bufmgr *bufmgr;
|
static drm_intel_bufmgr *bufmgr;
|
||||||
struct intel_batchbuffer *batch;
|
struct intel_batchbuffer *batch;
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -34,13 +35,8 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "intel_bufmgr.h"
|
#include "intel_bufmgr.h"
|
||||||
#include "intel_batchbuffer.h"
|
|
||||||
#include "intel_io.h"
|
|
||||||
#include "i830_reg.h"
|
#include "i830_reg.h"
|
||||||
#include "intel_chipset.h"
|
|
||||||
|
|
||||||
#define LOCAL_I915_EXEC_VEBOX (4<<0)
|
#define LOCAL_I915_EXEC_VEBOX (4<<0)
|
||||||
#define LOCAL_I915_EXEC_BSD_RING1 (1<<13)
|
#define LOCAL_I915_EXEC_BSD_RING1 (1<<13)
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -38,11 +39,6 @@
|
|||||||
|
|
||||||
#include <drm.h>
|
#include <drm.h>
|
||||||
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "igt_core.h"
|
|
||||||
#include "igt_aux.h"
|
|
||||||
#include "igt_gt.h"
|
|
||||||
|
|
||||||
IGT_TEST_DESCRIPTION("Test that specific ioctls report a wedged GPU (EIO).");
|
IGT_TEST_DESCRIPTION("Test that specific ioctls report a wedged GPU (EIO).");
|
||||||
|
|
||||||
|
@ -30,6 +30,7 @@
|
|||||||
* Testcase: run a couple of big batches to force the unbind on misalignment code.
|
* Testcase: run a couple of big batches to force the unbind on misalignment code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
@ -44,11 +45,6 @@
|
|||||||
|
|
||||||
#include <drm.h>
|
#include <drm.h>
|
||||||
|
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "intel_chipset.h"
|
|
||||||
#include "igt_aux.h"
|
|
||||||
#include "igt_gt.h"
|
|
||||||
|
|
||||||
IGT_TEST_DESCRIPTION("Run a couple of big batches to force the unbind on"
|
IGT_TEST_DESCRIPTION("Run a couple of big batches to force the unbind on"
|
||||||
" misalignment code.");
|
" misalignment code.");
|
||||||
|
@ -30,6 +30,7 @@
|
|||||||
* Testcase: run a couple of big batches to force the eviction code.
|
* Testcase: run a couple of big batches to force the eviction code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
@ -42,10 +43,6 @@
|
|||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "intel_chipset.h"
|
|
||||||
#include "igt_gt.h"
|
|
||||||
|
|
||||||
#include "eviction_common.c"
|
#include "eviction_common.c"
|
||||||
|
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
|
|
||||||
/* Exercises the basic execbuffer using object alignments */
|
/* Exercises the basic execbuffer using object alignments */
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -36,9 +37,6 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "igt_debugfs.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
|
|
||||||
IGT_TEST_DESCRIPTION("Exercises the basic execbuffer using object alignments");
|
IGT_TEST_DESCRIPTION("Exercises the basic execbuffer using object alignments");
|
||||||
|
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -34,12 +35,7 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "intel_bufmgr.h"
|
#include "intel_bufmgr.h"
|
||||||
#include "intel_batchbuffer.h"
|
|
||||||
#include "intel_io.h"
|
|
||||||
#include "intel_chipset.h"
|
|
||||||
|
|
||||||
/* Testcase: Test whether the kernel rejects relocations with non-gpu domains
|
/* Testcase: Test whether the kernel rejects relocations with non-gpu domains
|
||||||
*
|
*
|
||||||
|
@ -32,6 +32,7 @@
|
|||||||
* Mostly useful to stress-test the error-capture code
|
* Mostly useful to stress-test the error-capture code
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
@ -44,10 +45,6 @@
|
|||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "intel_chipset.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "igt_aux.h"
|
|
||||||
|
|
||||||
IGT_TEST_DESCRIPTION("Run a large nop batch to stress test the error capture"
|
IGT_TEST_DESCRIPTION("Run a large nop batch to stress test the error capture"
|
||||||
" code.");
|
" code.");
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
@ -37,10 +38,6 @@
|
|||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "intel_chipset.h"
|
|
||||||
#include "intel_io.h"
|
|
||||||
|
|
||||||
#define OBJECT_SIZE 16384
|
#define OBJECT_SIZE 16384
|
||||||
|
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
@ -37,11 +38,6 @@
|
|||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "intel_chipset.h"
|
|
||||||
#include "intel_io.h"
|
|
||||||
#include "igt_debugfs.h"
|
|
||||||
|
|
||||||
/* Testcase: Submit patches with relocations in memory that will fault
|
/* Testcase: Submit patches with relocations in memory that will fault
|
||||||
*
|
*
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
|
|
||||||
/* Exercises the basic execbuffer using the handle LUT interface */
|
/* Exercises the basic execbuffer using the handle LUT interface */
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -36,9 +37,6 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "igt_debugfs.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
|
|
||||||
IGT_TEST_DESCRIPTION("Exercises the basic execbuffer using the handle LUT"
|
IGT_TEST_DESCRIPTION("Exercises the basic execbuffer using the handle LUT"
|
||||||
" interface.");
|
" interface.");
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
@ -38,10 +39,6 @@
|
|||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "intel_io.h"
|
|
||||||
#include "igt_stats.h"
|
|
||||||
|
|
||||||
#define LOCAL_I915_EXEC_NO_RELOC (1<<11)
|
#define LOCAL_I915_EXEC_NO_RELOC (1<<11)
|
||||||
#define LOCAL_I915_EXEC_HANDLE_LUT (1<<12)
|
#define LOCAL_I915_EXEC_HANDLE_LUT (1<<12)
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
@ -38,11 +39,6 @@
|
|||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
|
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "intel_io.h"
|
|
||||||
#include "intel_chipset.h"
|
|
||||||
#include "igt_aux.h"
|
|
||||||
|
|
||||||
#define LOCAL_I915_EXEC_VEBOX (4<<0)
|
#define LOCAL_I915_EXEC_VEBOX (4<<0)
|
||||||
#define LOCAL_I915_EXEC_BSD_MASK (3<<13)
|
#define LOCAL_I915_EXEC_BSD_MASK (3<<13)
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -29,9 +30,6 @@
|
|||||||
|
|
||||||
#include <drm.h>
|
#include <drm.h>
|
||||||
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "intel_chipset.h"
|
|
||||||
|
|
||||||
#ifndef I915_PARAM_CMD_PARSER_VERSION
|
#ifndef I915_PARAM_CMD_PARSER_VERSION
|
||||||
#define I915_PARAM_CMD_PARSER_VERSION 28
|
#define I915_PARAM_CMD_PARSER_VERSION 28
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/resource.h>
|
#include <sys/resource.h>
|
||||||
@ -32,9 +33,6 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "igt_aux.h"
|
|
||||||
|
|
||||||
|
|
||||||
#define FD_ARR_SZ 100
|
#define FD_ARR_SZ 100
|
||||||
|
@ -30,6 +30,7 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -41,8 +42,6 @@
|
|||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
|
|
||||||
#define OBJECT_SIZE (128*1024) /* restricted to 1MiB alignment on i915 fences */
|
#define OBJECT_SIZE (128*1024) /* restricted to 1MiB alignment on i915 fences */
|
||||||
|
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -40,8 +41,6 @@
|
|||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "i915_drm.h"
|
#include "i915_drm.h"
|
||||||
#include "drmtest.h"
|
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
|
|
||||||
#define OBJECT_SIZE (1024*1024) /* restricted to 1MiB alignment on i915 fences */
|
#define OBJECT_SIZE (1024*1024) /* restricted to 1MiB alignment on i915 fences */
|
||||||
|
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
|
|
||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -37,11 +38,6 @@
|
|||||||
|
|
||||||
#include <drm.h>
|
#include <drm.h>
|
||||||
|
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "intel_chipset.h"
|
|
||||||
#include "intel_io.h"
|
|
||||||
#include "igt_aux.h"
|
|
||||||
|
|
||||||
IGT_TEST_DESCRIPTION("Test execbuf fence accounting.");
|
IGT_TEST_DESCRIPTION("Test execbuf fence accounting.");
|
||||||
|
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -34,8 +35,6 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
test_flink(int fd)
|
test_flink(int fd)
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
|
#include "igt.h"
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -33,10 +34,7 @@
|
|||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "intel_bufmgr.h"
|
#include "intel_bufmgr.h"
|
||||||
#include "igt_debugfs.h"
|
|
||||||
|
|
||||||
IGT_TEST_DESCRIPTION("Check for flink/open vs. gem close races.");
|
IGT_TEST_DESCRIPTION("Check for flink/open vs. gem close races.");
|
||||||
|
|
||||||
|
@ -30,6 +30,7 @@
|
|||||||
* workload for the GPGPU pipeline.
|
* workload for the GPGPU pipeline.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@ -42,12 +43,7 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "intel_bufmgr.h"
|
#include "intel_bufmgr.h"
|
||||||
#include "intel_batchbuffer.h"
|
|
||||||
#include "intel_io.h"
|
|
||||||
#include "intel_chipset.h"
|
|
||||||
|
|
||||||
#define WIDTH 64
|
#define WIDTH 64
|
||||||
#define HEIGHT 64
|
#define HEIGHT 64
|
||||||
|
@ -30,6 +30,7 @@
|
|||||||
* This test checks whether gtt tlbs for cpu access are correctly invalidated.
|
* This test checks whether gtt tlbs for cpu access are correctly invalidated.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -40,9 +41,6 @@
|
|||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "intel_io.h"
|
|
||||||
|
|
||||||
IGT_TEST_DESCRIPTION("Check whether gtt tlbs for cpu access are correctly"
|
IGT_TEST_DESCRIPTION("Check whether gtt tlbs for cpu access are correctly"
|
||||||
" invalidated.");
|
" invalidated.");
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
@ -39,9 +40,6 @@
|
|||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
|
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "intel_chipset.h"
|
|
||||||
|
|
||||||
static const uint32_t canary = 0xdeadbeef;
|
static const uint32_t canary = 0xdeadbeef;
|
||||||
|
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
@ -38,8 +39,6 @@
|
|||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
|
|
||||||
#define OBJECT_SIZE 16384
|
#define OBJECT_SIZE 16384
|
||||||
|
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -35,12 +36,7 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "intel_bufmgr.h"
|
#include "intel_bufmgr.h"
|
||||||
#include "intel_chipset.h"
|
|
||||||
#include "intel_batchbuffer.h"
|
|
||||||
#include "intel_io.h"
|
|
||||||
|
|
||||||
static drm_intel_bufmgr *bufmgr;
|
static drm_intel_bufmgr *bufmgr;
|
||||||
struct intel_batchbuffer *batch;
|
struct intel_batchbuffer *batch;
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -34,12 +35,7 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "intel_bufmgr.h"
|
#include "intel_bufmgr.h"
|
||||||
#include "intel_batchbuffer.h"
|
|
||||||
#include "intel_io.h"
|
|
||||||
#include "intel_chipset.h"
|
|
||||||
|
|
||||||
IGT_TEST_DESCRIPTION("Provoke the hangcheck timer on an otherwise idle"
|
IGT_TEST_DESCRIPTION("Provoke the hangcheck timer on an otherwise idle"
|
||||||
" system.");
|
" system.");
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -34,8 +35,6 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
|
|
||||||
/* Should take 64 pages to store the page pointers on 64 bit */
|
/* Should take 64 pages to store the page pointers on 64 bit */
|
||||||
#define OBJ_SIZE (128 * 1024 * 1024)
|
#define OBJ_SIZE (128 * 1024 * 1024)
|
||||||
|
@ -33,6 +33,7 @@
|
|||||||
* The goal is to simply ensure the basics work.
|
* The goal is to simply ensure the basics work.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -44,11 +45,6 @@
|
|||||||
|
|
||||||
#include <drm.h>
|
#include <drm.h>
|
||||||
|
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "intel_chipset.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "intel_io.h"
|
|
||||||
#include "igt_aux.h"
|
|
||||||
|
|
||||||
IGT_TEST_DESCRIPTION("Test doing many blits with a working set larger than the"
|
IGT_TEST_DESCRIPTION("Test doing many blits with a working set larger than the"
|
||||||
" aperture size.");
|
" aperture size.");
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
|
|
||||||
/* Exercises the basic execbuffer using the handle LUT interface */
|
/* Exercises the basic execbuffer using the handle LUT interface */
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -36,8 +37,6 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
|
|
||||||
IGT_TEST_DESCRIPTION("Exercises the basic execbuffer using the handle LUT"
|
IGT_TEST_DESCRIPTION("Exercises the basic execbuffer using the handle LUT"
|
||||||
" interface.");
|
" interface.");
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -36,8 +37,6 @@
|
|||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
|
|
||||||
IGT_TEST_DESCRIPTION("Checks that the kernel reports EFAULT when trying to use"
|
IGT_TEST_DESCRIPTION("Checks that the kernel reports EFAULT when trying to use"
|
||||||
" purged bo.");
|
" purged bo.");
|
||||||
|
@ -30,6 +30,7 @@
|
|||||||
* workload for the Media pipeline.
|
* workload for the Media pipeline.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@ -42,12 +43,7 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "intel_bufmgr.h"
|
#include "intel_bufmgr.h"
|
||||||
#include "intel_batchbuffer.h"
|
|
||||||
#include "intel_io.h"
|
|
||||||
#include "intel_chipset.h"
|
|
||||||
|
|
||||||
IGT_TEST_DESCRIPTION("Basic test for the media_fill() function, a very simple"
|
IGT_TEST_DESCRIPTION("Basic test for the media_fill() function, a very simple"
|
||||||
" workload for the Media pipeline.");
|
" workload for the Media pipeline.");
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -35,9 +36,6 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "igt_aux.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
|
|
||||||
#define OBJECT_SIZE 16384
|
#define OBJECT_SIZE 16384
|
||||||
#define PAGE_SIZE 4096
|
#define PAGE_SIZE 4096
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
|
#include "igt.h"
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -37,10 +38,6 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "igt_debugfs.h"
|
|
||||||
#include "igt_aux.h"
|
|
||||||
|
|
||||||
#ifndef PAGE_SIZE
|
#ifndef PAGE_SIZE
|
||||||
#define PAGE_SIZE 4096
|
#define PAGE_SIZE 4096
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -35,8 +36,6 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
|
|
||||||
IGT_TEST_DESCRIPTION("Checks whether the kernel handles mmap offset exhaustion"
|
IGT_TEST_DESCRIPTION("Checks whether the kernel handles mmap offset exhaustion"
|
||||||
" correctly.");
|
" correctly.");
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
|
#include "igt.h"
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -37,9 +38,6 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "igt_debugfs.h"
|
|
||||||
|
|
||||||
struct local_i915_gem_mmap_v2 {
|
struct local_i915_gem_mmap_v2 {
|
||||||
uint32_t handle;
|
uint32_t handle;
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -35,13 +36,8 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "intel_bufmgr.h"
|
#include "intel_bufmgr.h"
|
||||||
#include "intel_batchbuffer.h"
|
|
||||||
#include "intel_io.h"
|
|
||||||
#include "i830_reg.h"
|
#include "i830_reg.h"
|
||||||
#include "intel_chipset.h"
|
|
||||||
|
|
||||||
IGT_TEST_DESCRIPTION("Basic check of ring<->ring sync using a dummy reloc.");
|
IGT_TEST_DESCRIPTION("Basic check of ring<->ring sync using a dummy reloc.");
|
||||||
|
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -34,12 +35,7 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "intel_bufmgr.h"
|
#include "intel_bufmgr.h"
|
||||||
#include "intel_batchbuffer.h"
|
|
||||||
#include "intel_chipset.h"
|
|
||||||
#include "intel_io.h"
|
|
||||||
#include "i830_reg.h"
|
#include "i830_reg.h"
|
||||||
|
|
||||||
IGT_TEST_DESCRIPTION("Basic check of non-secure batches.");
|
IGT_TEST_DESCRIPTION("Basic check of non-secure batches.");
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -36,11 +37,6 @@
|
|||||||
|
|
||||||
#include <drm.h>
|
#include <drm.h>
|
||||||
|
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "intel_chipset.h"
|
|
||||||
#include "intel_io.h"
|
|
||||||
#include "igt_aux.h"
|
|
||||||
|
|
||||||
IGT_TEST_DESCRIPTION("Test pwrite/pread consistency when touching partial"
|
IGT_TEST_DESCRIPTION("Test pwrite/pread consistency when touching partial"
|
||||||
" cachelines.");
|
" cachelines.");
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
|
#include "igt.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -39,12 +40,6 @@
|
|||||||
|
|
||||||
#include <drm.h>
|
#include <drm.h>
|
||||||
|
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "intel_chipset.h"
|
|
||||||
#include "intel_io.h"
|
|
||||||
#include "igt_debugfs.h"
|
|
||||||
#include "igt_aux.h"
|
|
||||||
|
|
||||||
IGT_TEST_DESCRIPTION("Test persistent relocations as used by uxa/libva.");
|
IGT_TEST_DESCRIPTION("Test persistent relocations as used by uxa/libva.");
|
||||||
|
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
|
|
||||||
/* Exercises pinning of small bo */
|
/* Exercises pinning of small bo */
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -38,11 +39,6 @@
|
|||||||
|
|
||||||
#include <drm.h>
|
#include <drm.h>
|
||||||
|
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "intel_chipset.h"
|
|
||||||
#include "intel_io.h"
|
|
||||||
#include "igt_aux.h"
|
|
||||||
|
|
||||||
IGT_TEST_DESCRIPTION("Exercises pinning of small buffer objects.");
|
IGT_TEST_DESCRIPTION("Exercises pinning of small buffer objects.");
|
||||||
|
|
||||||
|
@ -31,6 +31,7 @@
|
|||||||
* Writes a counter-value into an always newly allocated target bo (by disabling
|
* Writes a counter-value into an always newly allocated target bo (by disabling
|
||||||
* buffer reuse). Decently trashes on tlb inconsistencies, too.
|
* buffer reuse). Decently trashes on tlb inconsistencies, too.
|
||||||
*/
|
*/
|
||||||
|
#include "igt.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -40,12 +41,7 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "intel_bufmgr.h"
|
#include "intel_bufmgr.h"
|
||||||
#include "intel_batchbuffer.h"
|
|
||||||
#include "intel_chipset.h"
|
|
||||||
#include "intel_io.h"
|
|
||||||
|
|
||||||
IGT_TEST_DESCRIPTION("Test (TLB-)Coherency of pipe_control QW writes.");
|
IGT_TEST_DESCRIPTION("Test (TLB-)Coherency of pipe_control QW writes.");
|
||||||
|
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
* IN THE SOFTWARE.
|
* IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@ -35,13 +36,7 @@
|
|||||||
|
|
||||||
#include <drm.h>
|
#include <drm.h>
|
||||||
|
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "intel_bufmgr.h"
|
#include "intel_bufmgr.h"
|
||||||
#include "intel_batchbuffer.h"
|
|
||||||
#include "intel_io.h"
|
|
||||||
#include "intel_chipset.h"
|
|
||||||
#include "igt_aux.h"
|
|
||||||
|
|
||||||
#define WIDTH 512
|
#define WIDTH 512
|
||||||
#define STRIDE (WIDTH*4)
|
#define STRIDE (WIDTH*4)
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
@ -37,8 +38,6 @@
|
|||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
|
|
||||||
#define OBJECT_SIZE 16384
|
#define OBJECT_SIZE 16384
|
||||||
|
|
||||||
|
@ -34,6 +34,7 @@
|
|||||||
* ranged-buffer-flush paths in the kernel.
|
* ranged-buffer-flush paths in the kernel.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -45,12 +46,6 @@
|
|||||||
|
|
||||||
#include <drm.h>
|
#include <drm.h>
|
||||||
|
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "intel_chipset.h"
|
|
||||||
#include "intel_io.h"
|
|
||||||
#include "igt_aux.h"
|
|
||||||
#include "igt_gt.h"
|
|
||||||
|
|
||||||
IGT_TEST_DESCRIPTION("Test pread behavior when getting values out of"
|
IGT_TEST_DESCRIPTION("Test pread behavior when getting values out of"
|
||||||
" just-drawn-to buffers.");
|
" just-drawn-to buffers.");
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
@ -37,9 +38,6 @@
|
|||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "igt_aux.h"
|
|
||||||
|
|
||||||
#define OBJECT_SIZE 16384
|
#define OBJECT_SIZE 16384
|
||||||
|
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
@ -37,12 +38,7 @@
|
|||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "intel_chipset.h"
|
|
||||||
#include "intel_bufmgr.h"
|
#include "intel_bufmgr.h"
|
||||||
#include "intel_batchbuffer.h"
|
|
||||||
#include "intel_io.h"
|
|
||||||
|
|
||||||
#define OBJECT_SIZE 16384
|
#define OBJECT_SIZE 16384
|
||||||
|
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
@ -34,10 +35,6 @@
|
|||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "intel_chipset.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "igt_aux.h"
|
|
||||||
|
|
||||||
IGT_TEST_DESCRIPTION(
|
IGT_TEST_DESCRIPTION(
|
||||||
"pwrite to a snooped bo then make it uncached and check that the GPU sees the data.");
|
"pwrite to a snooped bo then make it uncached and check that the GPU sees the data.");
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
* This is a test of performance with multiple readers from the same source.
|
* This is a test of performance with multiple readers from the same source.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -39,15 +40,7 @@
|
|||||||
|
|
||||||
#include <drm.h>
|
#include <drm.h>
|
||||||
|
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "igt_aux.h"
|
|
||||||
#include "igt_core.h"
|
|
||||||
#include "igt_gt.h"
|
|
||||||
#include "intel_bufmgr.h"
|
#include "intel_bufmgr.h"
|
||||||
#include "intel_batchbuffer.h"
|
|
||||||
#include "intel_io.h"
|
|
||||||
#include "intel_chipset.h"
|
|
||||||
|
|
||||||
IGT_TEST_DESCRIPTION("Test speed of concurrent reads between engines.");
|
IGT_TEST_DESCRIPTION("Test speed of concurrent reads between engines.");
|
||||||
|
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -35,8 +36,6 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
|
|
||||||
#define OBJECT_SIZE 16384
|
#define OBJECT_SIZE 16384
|
||||||
|
|
||||||
|
@ -25,14 +25,13 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <sys/utsname.h>
|
#include <sys/utsname.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
|
|
||||||
static bool is_x86_64;
|
static bool is_x86_64;
|
||||||
static bool has_proper_timestamp;
|
static bool has_proper_timestamp;
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
@ -43,10 +44,6 @@
|
|||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "intel_chipset.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "intel_io.h"
|
|
||||||
|
|
||||||
IGT_TEST_DESCRIPTION("Check that kernel relocation overflows are caught.");
|
IGT_TEST_DESCRIPTION("Check that kernel relocation overflows are caught.");
|
||||||
|
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
|
#include "igt.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -39,13 +40,6 @@
|
|||||||
|
|
||||||
#include <drm.h>
|
#include <drm.h>
|
||||||
|
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "intel_chipset.h"
|
|
||||||
#include "intel_io.h"
|
|
||||||
#include "igt_debugfs.h"
|
|
||||||
#include "igt_aux.h"
|
|
||||||
#include "igt_gt.h"
|
|
||||||
|
|
||||||
IGT_TEST_DESCRIPTION("Test kernel relocations vs. gpu races.");
|
IGT_TEST_DESCRIPTION("Test kernel relocations vs. gpu races.");
|
||||||
|
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
* workload for the 3D engine.
|
* workload for the 3D engine.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <cairo.h>
|
#include <cairo.h>
|
||||||
@ -44,13 +45,7 @@
|
|||||||
|
|
||||||
#include <drm.h>
|
#include <drm.h>
|
||||||
|
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "intel_bufmgr.h"
|
#include "intel_bufmgr.h"
|
||||||
#include "intel_batchbuffer.h"
|
|
||||||
#include "intel_io.h"
|
|
||||||
#include "intel_chipset.h"
|
|
||||||
#include "igt_aux.h"
|
|
||||||
|
|
||||||
IGT_TEST_DESCRIPTION("Basic test for the render_copy() function.");
|
IGT_TEST_DESCRIPTION("Basic test for the render_copy() function.");
|
||||||
|
|
||||||
|
@ -32,6 +32,7 @@
|
|||||||
* the execbuffer interface with a simple render workload.
|
* the execbuffer interface with a simple render workload.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@ -46,13 +47,7 @@
|
|||||||
|
|
||||||
#include <drm.h>
|
#include <drm.h>
|
||||||
|
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "intel_bufmgr.h"
|
#include "intel_bufmgr.h"
|
||||||
#include "intel_batchbuffer.h"
|
|
||||||
#include "intel_io.h"
|
|
||||||
#include "intel_chipset.h"
|
|
||||||
#include "igt_aux.h"
|
|
||||||
|
|
||||||
IGT_TEST_DESCRIPTION("Advanced test for the render_copy() function.");
|
IGT_TEST_DESCRIPTION("Advanced test for the render_copy() function.");
|
||||||
|
|
||||||
|
@ -37,6 +37,7 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -49,13 +50,7 @@
|
|||||||
|
|
||||||
#include <drm.h>
|
#include <drm.h>
|
||||||
|
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "intel_bufmgr.h"
|
#include "intel_bufmgr.h"
|
||||||
#include "intel_batchbuffer.h"
|
|
||||||
#include "intel_io.h"
|
|
||||||
#include "intel_chipset.h"
|
|
||||||
#include "igt_aux.h"
|
|
||||||
|
|
||||||
#define WIDTH 512
|
#define WIDTH 512
|
||||||
#define STRIDE (WIDTH*4)
|
#define STRIDE (WIDTH*4)
|
||||||
|
@ -33,6 +33,7 @@
|
|||||||
* The goal is to simply ensure the basics work.
|
* The goal is to simply ensure the basics work.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -45,13 +46,7 @@
|
|||||||
|
|
||||||
#include <drm.h>
|
#include <drm.h>
|
||||||
|
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "intel_bufmgr.h"
|
#include "intel_bufmgr.h"
|
||||||
#include "intel_batchbuffer.h"
|
|
||||||
#include "intel_io.h"
|
|
||||||
#include "intel_chipset.h"
|
|
||||||
#include "igt_aux.h"
|
|
||||||
|
|
||||||
#define WIDTH 512
|
#define WIDTH 512
|
||||||
#define STRIDE (WIDTH*4)
|
#define STRIDE (WIDTH*4)
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
|
#include "igt.h"
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@ -40,12 +41,6 @@
|
|||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "igt_gt.h"
|
|
||||||
#include "intel_chipset.h"
|
|
||||||
#include "intel_io.h"
|
|
||||||
#include "igt_aux.h"
|
|
||||||
|
|
||||||
#define RS_NO_ERROR 0
|
#define RS_NO_ERROR 0
|
||||||
#define RS_BATCH_ACTIVE (1 << 0)
|
#define RS_BATCH_ACTIVE (1 << 0)
|
||||||
|
@ -47,13 +47,10 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "intel_batchbuffer.h"
|
|
||||||
#include "intel_chipset.h"
|
|
||||||
|
|
||||||
IGT_TEST_DESCRIPTION("Ensure inter-ring dependencies are respected.");
|
IGT_TEST_DESCRIPTION("Ensure inter-ring dependencies are respected.");
|
||||||
|
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -34,13 +35,8 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "intel_bufmgr.h"
|
#include "intel_bufmgr.h"
|
||||||
#include "intel_batchbuffer.h"
|
|
||||||
#include "intel_io.h"
|
|
||||||
#include "i830_reg.h"
|
#include "i830_reg.h"
|
||||||
#include "intel_chipset.h"
|
|
||||||
|
|
||||||
IGT_TEST_DESCRIPTION("Basic check of ring<->ring sync using a dummy reloc.");
|
IGT_TEST_DESCRIPTION("Basic check of ring<->ring sync using a dummy reloc.");
|
||||||
|
|
||||||
|
@ -31,6 +31,7 @@
|
|||||||
* catching failure to manage the ring properly near full.
|
* catching failure to manage the ring properly near full.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -43,11 +44,6 @@
|
|||||||
|
|
||||||
#include <drm.h>
|
#include <drm.h>
|
||||||
|
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "intel_chipset.h"
|
|
||||||
#include "intel_io.h"
|
|
||||||
#include "igt_aux.h"
|
|
||||||
|
|
||||||
struct bo {
|
struct bo {
|
||||||
const char *ring;
|
const char *ring;
|
||||||
|
@ -30,6 +30,7 @@
|
|||||||
* boundary.
|
* boundary.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
@ -41,15 +42,7 @@
|
|||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "igt_core.h"
|
|
||||||
#include "igt_aux.h"
|
|
||||||
#include "igt_debugfs.h"
|
|
||||||
#include "intel_bufmgr.h"
|
#include "intel_bufmgr.h"
|
||||||
#include "intel_batchbuffer.h"
|
|
||||||
#include "intel_io.h"
|
|
||||||
#include "intel_chipset.h"
|
|
||||||
|
|
||||||
IGT_TEST_DESCRIPTION("Runs blitcopy -> rendercopy with multiple buffers over"
|
IGT_TEST_DESCRIPTION("Runs blitcopy -> rendercopy with multiple buffers over"
|
||||||
" wrap boundary.");
|
" wrap boundary.");
|
||||||
|
@ -44,6 +44,7 @@
|
|||||||
* transitions (i.e. changing stride).
|
* transitions (i.e. changing stride).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -54,12 +55,7 @@
|
|||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "intel_bufmgr.h"
|
#include "intel_bufmgr.h"
|
||||||
#include "intel_batchbuffer.h"
|
|
||||||
#include "intel_chipset.h"
|
|
||||||
#include "intel_io.h"
|
|
||||||
|
|
||||||
IGT_TEST_DESCRIPTION("Check for proper synchronization of tiling changes vs."
|
IGT_TEST_DESCRIPTION("Check for proper synchronization of tiling changes vs."
|
||||||
" tiled gpu access.");
|
" tiled gpu access.");
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -35,10 +36,6 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "intel_io.h"
|
|
||||||
#include "intel_chipset.h"
|
|
||||||
|
|
||||||
IGT_TEST_DESCRIPTION("Check set_tiling vs gtt mmap coherency.");
|
IGT_TEST_DESCRIPTION("Check set_tiling vs gtt mmap coherency.");
|
||||||
|
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "igt.h"
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -35,9 +36,6 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include "drm.h"
|
#include "drm.h"
|
||||||
#include "ioctl_wrappers.h"
|
|
||||||
#include "drmtest.h"
|
|
||||||
#include "intel_io.h"
|
|
||||||
|
|
||||||
IGT_TEST_DESCRIPTION("Check set_tiling vs pwrite coherency.");
|
IGT_TEST_DESCRIPTION("Check set_tiling vs pwrite coherency.");
|
||||||
|
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user