mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 20:20:09 +01:00
gfxstream: vulkan-docs: don't auto-generate vk_android_native_buffer
We shouldn't autogenerate this header, since it's a forked header specific to gfxstream. Plus, this particular extension is disabled in the Vulkan anyways, and used between Android libvulkan <--> ICD only. We should just call it "vk_android_native_buffer_gfxstream.h" to avoid namespace conflicts. Reviewed-by: Aaron Ruby <aruby@blackberry.com> Acked-by: Yonggang Luo <luoyonggang@gmail.com> Acked-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27246>
This commit is contained in:
parent
c1887f0dbf
commit
3ec593d9cd
1 changed files with 2 additions and 1 deletions
|
|
@ -261,7 +261,7 @@ class CerealGenerator(OutputGenerator):
|
|||
|
||||
# THe host always needs all possible guest struct definitions, while the guest only needs
|
||||
# platform sepcific headers.
|
||||
self.hostCommonExtraVulkanHeaders = '#include "vk_android_native_buffer.h"'
|
||||
self.hostCommonExtraVulkanHeaders = '#include "vk_android_native_buffer_gfxstream.h"'
|
||||
self.host_cmake_generator = lambda cppFiles: f"""{autogeneratedMkTemplate % banner_command(sys.argv)}
|
||||
add_library(OpenglRender_vulkan_cereal {cppFiles})
|
||||
target_compile_definitions(OpenglRender_vulkan_cereal PRIVATE -DVK_GOOGLE_gfxstream)
|
||||
|
|
@ -729,6 +729,7 @@ class BumpPool;
|
|||
if (not suppressVulkanHeaders):
|
||||
module.headerPreamble += "#include <vulkan/vulkan.h>\n"
|
||||
module.headerPreamble += '#include "vulkan_gfxstream.h"\n'
|
||||
module.headerPreamble += '#include "vk_android_native_buffer_gfxstream.h"\n'
|
||||
module.headerPreamble += extraHeader + '\n'
|
||||
if useNamespace:
|
||||
module.headerPreamble += namespaceBegin
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue