memory alloc: Add allocation index to BindObjectMemory
For now it is always index 0. Updates, driver, glave, tests, demos, include,
and layers.
diff --git a/tests/image_tests.cpp b/tests/image_tests.cpp
index aefe657..2694e92 100644
--- a/tests/image_tests.cpp
+++ b/tests/image_tests.cpp
@@ -215,14 +215,14 @@
err = xglAllocMemory(device(), &mem_info, &m_image_mem);
ASSERT_XGL_SUCCESS(err);
- err = xglBindObjectMemory(m_image, m_image_mem, 0);
+ err = xglBindObjectMemory(m_image, 0, m_image_mem, 0);
ASSERT_XGL_SUCCESS(err);
}
void XglImageTest::DestroyImage()
{
// All done with image memory, clean up
- ASSERT_XGL_SUCCESS(xglBindObjectMemory(m_image, XGL_NULL_HANDLE, 0));
+ ASSERT_XGL_SUCCESS(xglBindObjectMemory(m_image, 0, XGL_NULL_HANDLE, 0));
ASSERT_XGL_SUCCESS(xglFreeMemory(m_image_mem));