summaryrefslogtreecommitdiff
path: root/tests/gem_storedw_loop.c
diff options
context:
space:
mode:
authorThomas Wood <thomas.wood@intel.com>2015-09-03 09:56:18 +0100
committerThomas Wood <thomas.wood@intel.com>2015-09-08 16:14:45 +0100
commit2142a15d49f85175677ff360833869afe9c79b58 (patch)
treedd4131aa81d913e0f1dbfb4af5d90621a4e98676 /tests/gem_storedw_loop.c
parent673aab8a0afd538463fa96da263e56537f413dfd (diff)
tests/gem_storedw_loop: remove redundant ppgtt check
All tests require ppgtt, so checking for it later on has no effect. Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Diffstat (limited to 'tests/gem_storedw_loop.c')
-rw-r--r--tests/gem_storedw_loop.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/gem_storedw_loop.c b/tests/gem_storedw_loop.c
index 1bb276e5..08a6ad62 100644
--- a/tests/gem_storedw_loop.c
+++ b/tests/gem_storedw_loop.c
@@ -45,7 +45,6 @@ IGT_TEST_DESCRIPTION("Basic CS check using MI_STORE_DATA_IMM.");
static drm_intel_bufmgr *bufmgr;
struct intel_batchbuffer *batch;
static drm_intel_bo *target_buffer;
-static int has_ppgtt = 0;
static int devid;
/*
@@ -57,8 +56,6 @@ emit_store_dword_imm(drm_intel_bo *dest, uint32_t val)
{
int cmd;
cmd = MI_STORE_DWORD_IMM;
- if (!has_ppgtt)
- cmd |= MI_MEM_VIRTUAL;
BEGIN_BATCH(4, 0);
OUT_BATCH(cmd);
@@ -163,14 +160,12 @@ igt_main
bufmgr = drm_intel_bufmgr_gem_init(fd, 4096);
igt_assert(bufmgr);
- has_ppgtt = gem_uses_aliasing_ppgtt(fd);
-
igt_skip_on_f(intel_gen(devid) < 6,
"MI_STORE_DATA can only use GTT address on gen4+/g33 and "
"needs snoopable mem on pre-gen6\n");
/* This only works with ppgtt */
- igt_require(has_ppgtt);
+ igt_require(gem_uses_aliasing_ppgtt(fd));
}
for (i = 0; i < ARRAY_SIZE(rings); i++) {