Adjust CMA for software renderer in more cases

Such as when -gpu guest is specified through
the command line, not just the AVD config.ini

Change-Id: I6c75b20c4fb63884f9d584adfe56a2e7bb5d212f
diff --git a/android-qemu2-glue/main.cpp b/android-qemu2-glue/main.cpp
index bfb4b08..e2d9f42 100755
--- a/android-qemu2-glue/main.cpp
+++ b/android-qemu2-glue/main.cpp
@@ -1165,7 +1165,9 @@
     }
 
     // Additional memory for -gpu guest software renderers (e.g., SwiftShader)
-    if (!strcmp(android_hw->hw_gpu_mode, "guest")) {
+    if ((android_hw->hw_gpu_mode && !strcmp(android_hw->hw_gpu_mode, "guest")) ||
+        (opts->gpu && !strcmp(opts->gpu, "guest")) ||
+        !hw->hw_gpu_enabled) {
         VERBOSE_PRINT(init, "Adjusting Contiguous Memory Allocation"
                             "of %dx%d framebuffer for software renderer.",
                             hw->hw_lcd_width, hw->hw_lcd_height);