mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-20 13:26:02 +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.
30 lines
993 B
C
30 lines
993 B
C
/* SPDX-License-Identifier: GPL-3.0-or-later
|
|
*
|
|
* What the generated server handlers need from the server: the per-call context.
|
|
*/
|
|
#ifndef VKB_SERVER_IFACE_H
|
|
#define VKB_SERVER_IFACE_H
|
|
|
|
#include "vkb_wire.h"
|
|
|
|
struct vkb_srv_table;
|
|
struct vkb_srv_conn;
|
|
|
|
struct vkb_srv_call {
|
|
vkb_dec d; /* request */
|
|
vkb_enc r; /* reply payload */
|
|
vkb_dispatch *dt; /* dispatch for the table named in the request */
|
|
struct vkb_srv_table *table; /* NULL for global commands */
|
|
struct vkb_srv_conn *conn;
|
|
uint32_t status; /* reply status (VKB_ST_*) */
|
|
int close_after[VKB_MAX_FDS]; /* server fds to close once the reply is sent */
|
|
int nclose;
|
|
int in_stream; /* replaying a command buffer stream */
|
|
};
|
|
|
|
void vkb_srv_bad_message(struct vkb_srv_call *c);
|
|
void vkb_srv_missing(struct vkb_srv_call *c, const char *name);
|
|
void vkb_srv_close_after_send(struct vkb_srv_call *c, int fd);
|
|
|
|
#endif
|