mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-07 16:06:25 +00:00
igt/gem_exec_alignment: Reduce GTT usage if !full-ppgtt
If we have to share the GTT with others, we cannot rely on being able to fill it and have to factor in some slack for others. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
49b1337881
commit
e2c9a023f2
@ -79,6 +79,8 @@ static void many(int fd)
|
||||
uint64_t alignment, max_alignment, count, i;
|
||||
|
||||
gtt_size = gem_aperture_size(fd);
|
||||
if (!gem_uses_full_ppgtt(fd))
|
||||
gtt_size /= 2; /* We have to *share* our GTT! */
|
||||
ram_size = intel_get_total_ram_mb();
|
||||
ram_size *= 1024 * 1024;
|
||||
count = ram_size / 4096;
|
||||
|
Loading…
x
Reference in New Issue
Block a user