mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-18 20:36:04 +00:00
Squash of Droid-Deck/DroidDeck#517 (ASEbrahim/DroidDeck mali-bridge @ 6b823341): the Vulkan
bridge (tools/vkbridge) that runs the guest's Vulkan on the phone's own driver, with BC1-BC7,
clip/cull distance, vertex-divisor and depth-clip emulation and dma-heap memory sharing for Mali.
All of the bridge is ASEbrahim's work; squashed only to carry it on this test branch.
Combined with #570 on this branch, a device draws through exactly one path:
- Adreno: Turnip, unchanged (checked first; the bridge setting is ignored there).
- PowerVR / Xclipse with the system HAL and a render node: the system-Vulkan path (#570).
- Anything else with the Setup toggle on (Mali): the bridge.
25 lines
1.3 KiB
C
25 lines
1.3 KiB
C
/* SPDX-License-Identifier: GPL-3.0-or-later
|
|
*
|
|
* Client side of feature emulation: reporting what the server emulates (see server_emu.c).
|
|
*/
|
|
#ifndef VKB_CLIENT_EMU_H
|
|
#define VKB_CLIENT_EMU_H
|
|
|
|
#include "vkb_client.h"
|
|
|
|
const VkExtensionProperties *vkb_emu_extensions(vkb_physdev *pd, uint32_t *n);
|
|
void vkb_emu_patch_limits(vkb_physdev *pd, VkPhysicalDeviceProperties *p);
|
|
void vkb_emu_patch_properties_chain(vkb_physdev *pd, VkBaseOutStructure *b);
|
|
void vkb_emu_patch_features(vkb_physdev *pd, VkPhysicalDeviceFeatures *f);
|
|
void vkb_emu_patch_features_chain(vkb_physdev *pd, VkBaseOutStructure *b);
|
|
/* 1 = handled (format is emulated). fp2 may be NULL. */
|
|
int vkb_emu_format_properties(vkb_physdev *pd, VkFormat format, VkFormatProperties *fp, VkFormatProperties2 *fp2);
|
|
/* The format the server really uses for an emulated one (usage/flags adjusted); else format. */
|
|
VkFormat vkb_emu_real_format(vkb_physdev *pd, VkFormat format, VkImageUsageFlags *usage, VkImageCreateFlags *flags);
|
|
int vkb_emu_is_emulated_format(vkb_physdev *pd, VkFormat format);
|
|
void vkb_emu_image_create_info(vkb_device *dev, VkImageCreateInfo *ci);
|
|
void vkb_emu_image_created(vkb_device *dev, const VkImageCreateInfo *ci, VkImage image);
|
|
void vkb_emu_image_destroyed(vkb_device *dev, VkImage image);
|
|
|
|
#endif
|