[Piglit] [PATCH 2/2] AMD_pinned_memory: use new helper functions to fix Windows build
Brian Paul
brianp at vmware.com
Fri Feb 20 14:46:46 PST 2015
---
tests/spec/amd_pinned_memory/test.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/spec/amd_pinned_memory/test.c b/tests/spec/amd_pinned_memory/test.c
index 239e620..96e05c6 100644
--- a/tests/spec/amd_pinned_memory/test.c
+++ b/tests/spec/amd_pinned_memory/test.c
@@ -31,7 +31,6 @@
*/
#include "piglit-util-gl.h"
-#include <unistd.h>
PIGLIT_GL_TEST_CONFIG_BEGIN
@@ -140,9 +139,10 @@ enum piglit_result piglit_display(void)
GLsync fence = 0;
float x, y, *mem;
- page_size = sysconf(_SC_PAGESIZE);
+ page_size = piglit_get_page_size();
+
size = ALIGN(NUM_PRIMS * TRI_SIZE, page_size);
- mem = aligned_alloc(page_size, size);
+ mem = piglit_alloc_aligned(page_size, size);
glClear(GL_COLOR_BUFFER_BIT);
glEnableClientState(GL_VERTEX_ARRAY);
--
1.9.1
More information about the Piglit
mailing list