mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-29 02:36:29 +00:00
gem_render_linear_blits: Trim usage to fit within RAM
This is a render correctness test, the intention is not to exercise the swapper (but preferrably some eviction code). Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=75247 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
8ebc02a54c
commit
4550a18a57
@ -99,7 +99,10 @@ int main(int argc, char **argv)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("Using %d 1MiB buffers\n", count);
|
if (count > intel_get_total_ram_mb() * 9 / 10) {
|
||||||
|
count = intel_get_total_ram_mb() * 9 / 10;
|
||||||
|
printf("not enough RAM to run test, reducing buffer count\n");
|
||||||
|
}
|
||||||
|
|
||||||
bo = malloc(sizeof(*bo)*count);
|
bo = malloc(sizeof(*bo)*count);
|
||||||
start_val = malloc(sizeof(*start_val)*count);
|
start_val = malloc(sizeof(*start_val)*count);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user