mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-10 09:26:10 +00:00
gem_exec_parse: require PPGTT as well
The command parser may be present, but not active, so check for PPGTT before allowing this test to run. Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
This commit is contained in:
parent
7ef537231a
commit
67e29a30d5
@ -198,7 +198,7 @@ int fd;
|
||||
igt_main
|
||||
{
|
||||
igt_fixture {
|
||||
int parser_version = 0;
|
||||
int parser_version = 0, has_ppgtt = 0;
|
||||
drm_i915_getparam_t gp;
|
||||
int rc;
|
||||
|
||||
@ -209,6 +209,11 @@ igt_main
|
||||
rc = drmIoctl(fd, DRM_IOCTL_I915_GETPARAM, &gp);
|
||||
igt_require(!rc && parser_version > 0);
|
||||
|
||||
gp.param = I915_PARAM_HAS_ALIASING_PPGTT;
|
||||
gp.value = &has_ppgtt;
|
||||
rc = drmIoctl(fd, DRM_IOCTL_I915_GETPARAM, &gp);
|
||||
igt_require(!rc && has_ppgtt > 0);
|
||||
|
||||
handle = gem_create(fd, 4096);
|
||||
|
||||
/* ATM cmd parser only exists on gen7. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user