[Piglit] [PATCH] util: fix the other of parameters in piglit_alloc_aligned
Marek Olšák
maraeo at gmail.com
Mon Feb 23 03:28:27 PST 2015
From: Marek Olšák <marek.olsak at amd.com>
This fixes AMD_pinned_memory tests.
---
tests/util/piglit-util.c | 2 +-
tests/util/piglit-util.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/util/piglit-util.c b/tests/util/piglit-util.c
index 4c5e389..b094625 100644
--- a/tests/util/piglit-util.c
+++ b/tests/util/piglit-util.c
@@ -825,7 +825,7 @@ piglit_get_page_size(void)
void *
-piglit_alloc_aligned(size_t size, size_t alignment)
+piglit_alloc_aligned(size_t alignment, size_t size)
{
#if defined(_WIN32)
return _aligned_malloc(size, alignment);
diff --git a/tests/util/piglit-util.h b/tests/util/piglit-util.h
index f6a187c..c6e72a5 100755
--- a/tests/util/piglit-util.h
+++ b/tests/util/piglit-util.h
@@ -349,7 +349,7 @@ size_t
piglit_get_page_size(void);
void *
-piglit_alloc_aligned(size_t size, size_t alignment);
+piglit_alloc_aligned(size_t alignment, size_t size);
void
piglit_free_aligned(void *p);
--
2.1.0
More information about the Piglit
mailing list