From b2a66658c7416df2a580fb2562fcec20809ddf34 Mon Sep 17 00:00:00 2001 From: Jon Ashburn Date: Fri, 16 Jan 2015 09:37:43 -0700 Subject: memory alloc: Add MEMORY_ALLOCATION_COUNT support and usage in tests. Driver always does one allocation but tests support drivers with N allocations. Conflicts: demos/cube.c demos/tri.c tests/image_tests.cpp tests/render_tests.cpp --- include/xgl.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/xgl.h b/include/xgl.h index f9e794be..80f0a64e 100644 --- a/include/xgl.h +++ b/include/xgl.h @@ -711,8 +711,10 @@ typedef enum _XGL_SUBRESOURCE_INFO_TYPE typedef enum _XGL_OBJECT_INFO_TYPE { // Info type for xglGetObjectInfo() - XGL_INFO_TYPE_MEMORY_REQUIREMENTS = 0x00000000, - + XGL_INFO_TYPE_MEMORY_ALLOCATION_COUNT = 0x00000000, + XGL_INFO_TYPE_MEMORY_REQUIREMENTS = 0x00000001, + XGL_INFO_TYPE_BUFFER_MEMORY_REQUIREMENTS = 0x00000002, + XGL_INFO_TYPE_IMAGE_MEMORY_REQUIREMENTS = 0x00000003, XGL_MAX_ENUM(_XGL_OBJECT_INFO_TYPE) } XGL_OBJECT_INFO_TYPE; -- cgit v1.2.3