[PATCH i-g-t 15/15] hmmmm

Matthew Auld matthew.auld at intel.com
Tue May 11 12:33:18 UTC 2021


---
 tests/i915/gem_create.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/i915/gem_create.c b/tests/i915/gem_create.c
index 8e34cd05..a73dbfc8 100644
--- a/tests/i915/gem_create.c
+++ b/tests/i915/gem_create.c
@@ -100,7 +100,7 @@ static struct memory_region *get_memory_regions(int i915)
 
 		r->ci = info->regions[i].region;
 		r->size = info->regions[i].probed_size;
-		if (r->size == -1ull)
+		if (r->ci.memory_class == I915_MEMORY_CLASS_SYSTEM)
 			r->size = intel_get_avail_ram_mb() << 20;
 
 		asprintf(&r->name, "%s%d",
-- 
2.26.3



More information about the Intel-gfx-trybot mailing list