Promote eviction memory sizes and buffer counts to uint64_t

References: https://bugs.freedesktop.org/show_bug.cgi?id=93849
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson
2016-01-25 13:51:00 +00:00
parent beb936f188
commit 0e2071411a
4 changed files with 35 additions and 31 deletions
+5 -4
View File
@@ -130,10 +130,9 @@ copy(int fd, uint32_t dst, uint32_t src, uint32_t *all_bo, int n_bo)
return ret;
}
static void clear(int fd, uint32_t handle, int size)
static void clear(int fd, uint32_t handle, uint64_t size)
{
void *base = gem_mmap__cpu(fd, handle, 0, size, PROT_READ | PROT_WRITE);
void *base = gem_mmap__cpu(fd, handle, 0, size, PROT_WRITE);
memset(base, 0, size);
munmap(base, size);
}
@@ -183,7 +182,9 @@ static void test_major_evictions(int fd, int size, int count)
igt_main
{
int size, count, fd;
uint64_t size, count;
int fd;
size = count = 0;
fd = -1;