Skip to content
Snippets Groups Projects
Commit b28d801e authored by Zbigniew Kempczyński's avatar Zbigniew Kempczyński Committed by Chris Wilson
Browse files

i915/gem_pread/pwrite: Skip gtt test on self for missing mappable gtt


Some tests are designed to use GGTT API which should be skipped
when HW doesn't support mappable aperture.

Gem pread / pwrite "self" test is one of them.

Signed-off-by: default avatarZbigniew Kempczyński <zbigniew.kempczynski@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
parent a802816d
No related branches found
No related tags found
No related merge requests found
Pipeline #79152 passed
......@@ -52,13 +52,14 @@ static void *wrap_gem_mmap__gtt(int i915, uint32_t handle,
static void pread_self(int i915)
{
int start = gem_has_mappable_ggtt(i915) ? 0 : 1;
static const mmap_fn_t mmap_fn[] = {
wrap_gem_mmap__gtt,
gem_mmap__cpu,
gem_mmap__wc,
NULL
};
for (const mmap_fn_t *fn = mmap_fn; *fn; fn++) {
for (const mmap_fn_t *fn = mmap_fn + start; *fn; fn++) {
uint32_t handle = gem_create(i915, MiB(4));
void *ptr = (*fn)(i915, handle, 0, MiB(4), PROT_WRITE);
......
......@@ -52,13 +52,14 @@ static void *wrap_gem_mmap__gtt(int i915, uint32_t handle,
static void pwrite_self(int i915)
{
int start = gem_has_mappable_ggtt(i915) ? 0 : 1;
static const mmap_fn_t mmap_fn[] = {
wrap_gem_mmap__gtt,
gem_mmap__cpu,
gem_mmap__wc,
NULL
};
for (const mmap_fn_t *fn = mmap_fn; *fn; fn++) {
for (const mmap_fn_t *fn = mmap_fn + start; *fn; fn++) {
uint32_t handle = gem_create(i915, MiB(4));
void *ptr = (*fn)(i915, handle, 0, MiB(4), PROT_READ);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment