xgl: Add IMAGE_LAYOUT to Cmd*Image* calls
This is part 2 of bug #12904.
(2) Blit operations need to know what layout images are in. How do they figure that out?
- Added new parameter(s) specifying the image layout(s) to the following functions:
xglCmdCopyImage
xglCmdCopyBufferToImage
xglCmdCopyImageToBuffer
xglCmdClearColorImage
xglCmdClearColorImageRaw
xglCmdClearDepthStencilImage
xglCmdResolveImage
diff --git a/tests/xgltestframework.cpp b/tests/xgltestframework.cpp
index ee22771..20b03f2 100644
--- a/tests/xgltestframework.cpp
+++ b/tests/xgltestframework.cpp
@@ -534,7 +534,10 @@
region.imageExtent.width = m_display_image->m_width;
region.imageExtent.depth = 1;
- xglCmdCopyBufferToImage(m_cmdbuf.obj(), buf.obj(), m_display_image->m_presentableImage, 1, ®ion);
+ xglCmdCopyBufferToImage(m_cmdbuf.obj(),
+ buf.obj(),
+ m_display_image->m_presentableImage, XGL_IMAGE_LAYOUT_TRANSFER_DESTINATION_OPTIMAL,
+ 1, ®ion);
m_cmdbuf.end();
uint32_t numMemRefs=2;