mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-21 22:05:59 +00:00
Mali bridge (#517, by ASEbrahim) on the non-Adreno test branch
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.
This commit is contained in:
1 parent
cf06f89c11
commit
ee0fb08268
125 files changed
+119982
-12
No files matched your search
@@ -0,0 +1,9 @@
|
||||
#version 450
|
||||
layout(local_size_x = 64) in;
|
||||
layout(std430, binding = 0) readonly buffer In { uint v[]; } src;
|
||||
layout(std430, binding = 1) writeonly buffer Out { uint v[]; } dst;
|
||||
layout(push_constant) uniform PC { uint mul; uint add; } pc;
|
||||
void main() {
|
||||
uint i = gl_GlobalInvocationID.x;
|
||||
dst.v[i] = src.v[i] * pc.mul + pc.add;
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
#version 450
|
||||
layout(push_constant) uniform PC { vec4 color; } pc;
|
||||
layout(location = 0) out vec4 o;
|
||||
void main() { o = pc.color; }
|
||||
@@ -0,0 +1,5 @@
|
||||
#version 450
|
||||
void main() {
|
||||
vec2 p = vec2((gl_VertexIndex << 1) & 2, gl_VertexIndex & 2);
|
||||
gl_Position = vec4(p * 2.0 - 1.0, 0.0, 1.0);
|
||||
}
|
||||
Reference in new issue
Block a user