cube: Revert 1.1.114 SDK workaround for vkcube
authorJeremy Kniager <jeremyk@lunarg.com>
Mon, 14 Oct 2019 15:25:47 +0000 (09:25 -0600)
committerjeremyk-lunarg <jeremyk@lunarg.com>
Mon, 14 Oct 2019 16:22:36 +0000 (10:22 -0600)
During the release of the 1.1.114 MacOS SDK a workaround
for vkcube was needed to get it functioning in time for release.

The underlying problem has since been fixed and this workaround
is not longer necessary.

Change-Id: I3ad3d1bafa44cfbc158820025bb22757d6e5683d

cube/cube.c
cube/cube.cpp

index 1b7b322..7398a2c 100644 (file)
@@ -3704,12 +3704,6 @@ static void demo_init(struct demo *demo, int argc, char **argv) {
     demo->presentMode = VK_PRESENT_MODE_FIFO_KHR;
     demo->frameCount = INT32_MAX;
     
-#if defined(VK_USE_PLATFORM_MACOS_MVK)
-    // MoltenVK may not allow host coherent mapping to linear tiled images
-    // Force the use of a staging buffer to be safe
-    demo->use_staging_buffer = true;
-#endif
-
     for (int i = 1; i < argc; i++) {
         if (strcmp(argv[i], "--use_staging") == 0) {
             demo->use_staging_buffer = true;
index 48c1f72..87b24f9 100644 (file)
@@ -909,12 +909,6 @@ void Demo::init(int argc, char **argv) {
     frameCount = UINT32_MAX;
     use_xlib = false;
 
-#if defined(VK_USE_PLATFORM_MACOS_MVK)
-    // MoltenVK may not allow host coherent mapping to linear tiled images
-    // Force the use of a staging buffer to be safe
-    use_staging_buffer = true;
-#endif
-
     for (int i = 1; i < argc; i++) {
         if (strcmp(argv[i], "--use_staging") == 0) {
             use_staging_buffer = true;