mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-21 21:32:56 +00:00
igt: Report the global GTT size
For many tests, the relevant aperture is not the ppGTT but the internal global GTT managed by the kernel. Use this limit appropriately. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
+2
-2
@@ -84,7 +84,7 @@ static void test_big_cpu(int fd, int scale)
|
||||
uint64_t offset, size;
|
||||
uint32_t handle;
|
||||
|
||||
size = scale * gem_aperture_size(fd) >> 2;
|
||||
size = scale * gem_global_aperture_size(fd) >> 2;
|
||||
intel_require_memory(1, size, CHECK_RAM);
|
||||
|
||||
igt_require(gem_mmap__has_wc(fd));
|
||||
@@ -110,7 +110,7 @@ static void test_big_gtt(int fd, int scale)
|
||||
uint64_t *ptr;
|
||||
uint32_t handle;
|
||||
|
||||
size = scale * gem_aperture_size(fd) >> 2;
|
||||
size = scale * gem_global_aperture_size(fd) >> 2;
|
||||
intel_require_memory(1, size, CHECK_RAM);
|
||||
|
||||
igt_require(gem_mmap__has_wc(fd));
|
||||
|
||||
Reference in New Issue
Block a user