diff options
author | David Reveman <reveman@google.com> | 2019-02-20 01:06:48 -0500 |
---|---|---|
committer | Lingfeng Yang <lfy@google.com> | 2019-02-28 00:28:12 +0000 |
commit | 5b7c5844a658cb2632003c6e57f5e4220191a0e1 (patch) | |
tree | 53f03bbe47e4ed2d05a290d45e76330e11ed10c5 /BUILD.gn | |
parent | 8cd5b49a62b31a0fe26921dc51f09e40a327138c (diff) | |
download | goldfish-opengl-5b7c5844a658cb2632003c6e57f5e4220191a0e1.tar.gz |
[vulkan] experimental fuchsia platform support
bug: 111137294
- Add goldfish address space on Fuchsia
- Support Fuchsia external memory export via color buffer import
- In Fuchsia, create Android native buffers + colorBuffer on host
for images with color attachment or scanout usage.
- Allow the presence of preSignalSemaphores in vkQueueSubmit.
Change-Id: I0af09953be6095886013c15dbd2e266bb8621abf
Diffstat (limited to 'BUILD.gn')
-rw-r--r-- | BUILD.gn | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -73,7 +73,7 @@ source_set("goldfish_vulkan") { "LOG_TAG=\"goldfish_vulkan\"", "GOLDFISH_VULKAN", "GOLDFISH_NO_GL", - "VK_USE_PLATFORM_ANDROID_KHR", + "VK_USE_PLATFORM_FUCHSIA", "PLATFORM_SDK_VERSION=1", "PAGE_SIZE=4096", ] @@ -81,6 +81,7 @@ source_set("goldfish_vulkan") { cflags_cc = [ "-Wno-unused-function", "-Wno-unused-variable", + "-Wno-missing-field-initializers", ] if (target_os == "fuchsia") { @@ -91,8 +92,20 @@ source_set("goldfish_vulkan") { "fuchsia/include", ] + libs = [ + "zircon" + ] + + deps = [ + "//zircon/public/fidl/fuchsia-hardware-goldfish:fuchsia-hardware-goldfish_c", + "//zircon/public/lib/fdio", + "//zircon/public/lib/fzl", + "//zircon/public/lib/trace", + ] + defines += [ "QEMU_PIPE_PATH=\"/dev/sys/platform/acpi/goldfish/goldfish-pipe\"", + "GOLDFISH_ADDRESS_SPACE_DEVICE_NAME=\"/dev/sys/platform/acpi/goldfish/goldfish-pipe\"", ] } } |