Enable guest-side resource tiling control for Android surfaceless

With this, the guest side can at least get the DMA-BUF-backed image
tiling right on Intel GPUs by passing GBM_BO_USE_LINEAR when allocating
the BO.

(NVIDIA doesn't allow color attachments with linear tiling, and AMD
doesn't work because b/254721007)

Bug: 326956485
Test: null_platform_test with GBM_BO_USE_LINEAR added on
Test: Cuttlefish with -gpu_mode=gfxstream_guest_angle
Change-Id: Ia0954a1456c4bf4711286376c4a571e5d19c97f0
diff --git a/Android.bp b/Android.bp
index 197c4a7..5329078 100644
--- a/Android.bp
+++ b/Android.bp
@@ -133,6 +133,14 @@
     defaults: [
         "gfxstream_cc_defaults",
     ],
+    cflags: select(soong_config_variable("gfxstream", "mesa3d_platforms"), {
+        // Android surfaceless build
+        "none": [
+            "-DGFXSTREAM_ENABLE_GUEST_VIRTIO_RESOURCE_TILING_CONTROL=1",
+        ],
+        // The default when variable is not set is Android
+        default: [],
+    }),
 }
 
 cc_defaults {