2018-08-03 17:06:01 +02:00
# rpi-vk-driver
(not conformant yet, can't use official name or logo)
2018-08-26 15:49:21 +02:00
## Milestones
- [x] clear screen example working
2018-10-14 18:29:57 +02:00
- [x] triangle example working
- [x] shader from assembly, vertices from vertex buffer object, no uniforms, color hardcoded
2019-08-25 20:03:04 +02:00
- [x] uniforms for matrix multiplication and animation
- [x] texture coordinates and texture sampling
2019-09-22 17:46:05 +02:00
- [x] varyings
- [x] Multiple vertex attributes
2019-09-23 16:52:34 +02:00
- [x] Depth buffers
2019-09-23 18:51:46 +02:00
- [x] Stencil buffers
2019-09-16 00:01:32 +02:00
- [ ] Indexed draw calls
2019-09-23 18:59:01 +02:00
- [ ] blending
2019-07-05 22:19:59 +02:00
- [x] Shader compiler chain
2019-07-05 21:53:50 +02:00
- [x] QPU assembler / disassembler
2019-08-21 23:13:08 +02:00
- [x] Resources
- [x] Descriptor support
- [x] VkSampler support
2019-07-27 22:59:24 +02:00
- [x] Push constant support
2019-09-16 00:01:32 +02:00
- [ ] Render to texture features
2019-07-05 22:19:59 +02:00
- [ ] VkRenderPass support
- [ ] Subpass support
2019-09-15 16:14:09 +02:00
- [ ] Multiple attachments
2019-09-16 00:01:32 +02:00
- [ ] MSAA support
2019-07-05 22:19:59 +02:00
- [ ] Synchronization
- [ ] vkCmdPipelineBarrier support
2019-09-15 16:14:09 +02:00
- [ ] Performance
- [ ] Performance counters
- [ ] Queries
- [ ] Shader performance info
2019-09-16 00:01:32 +02:00
- [ ] Emulated features
- [ ] Clear command support
- [ ] Copy command support
- [ ] Platform features
- [ ] Layer support
- [ ] Pipeline cache support
- [ ] WSI
- [ ] Direct to display support
2019-09-15 16:14:09 +02:00
- [ ] Secondary command buffers
2019-07-05 22:32:33 +02:00
- [ ] Try to pass as much of the VK CTS as possible with existing feature set
2019-07-05 22:19:59 +02:00
2018-11-17 16:57:20 +01:00
## VK CTS progress
2019-02-09 17:20:14 +01:00
- Passed: 7894/67979 (11.6%)
- Failed: 878/67979 (1.3%)
- Not supported: 59206/67979 (87.1%)
- Warnings: 1/67979 (0.0%)
2018-11-17 17:39:13 +01:00
2019-02-09 17:24:29 +01:00
Conformance run is considered passing if all tests finish with allowed result
codes.
Following status
codes are allowed:
- Pass
- NotSupported
- QualityWarning
- CompatibilityWarning
2019-09-04 12:38:12 +02:00
There are about 470.000 conformance tests.
2018-11-17 17:39:13 +01:00
## FAQ
### Will this ever be a fully functional VK driver?
2019-09-15 16:14:09 +02:00
As far as I know the PI is NOT fully VK capable on the hardware level. I can already see that some things will need to be emulated and others won't ever be emulated.
2018-11-17 17:39:13 +01:00
### What performance should you expect?
Performance wise, the Pi is quite capable. The specs and architecture is close to the GPU in the iPhone 4s. The only problem I see is bandwidth as you only have about 7GB/s compared to 12-25GB/s on typical mobile phones. So post processing is a huge no and you'd need to be very careful about the techniques that you use. Eg. you'd need to stay on chip at all times.
2018-11-17 17:39:36 +01:00
CPU performance (eg. number of draw calls) should be enough on the quad-core PIs as you can easily utilise all cores using VK.
2018-11-17 17:39:13 +01:00
2019-09-15 16:14:09 +02:00
### What features will not be supported?
- 3D textures
- sparse textures
- compute shaders (though could be supported to some extent if the kernel side would support it)
- some texture formats
- some render target texture formats
- occlusion queries (https://github.com/anholt/mesa/wiki/VC4-OpenGL-support)
- indirect draws
- spirv shaders
- events
- proper semaphore support
- tessellation shaders
- geometry shaders
- 32 bit indices
- some vertex buffer formats
### What additional features will this driver support?
2018-11-17 17:39:13 +01:00
- I already added support (to be polished) to load shader assembly. This will enable devs to optimise shaders to the last cycle.
- I'll probably add something to indicate towards the developer that things are emulated or not supported at all.
2019-09-15 16:14:09 +02:00
- Videocore IV provides some performance counters these will be exposed
- Videocore IV supports some texture formats that are not present in the spec
2019-09-15 18:34:55 +02:00
- bw1: 1 bit black and white
- a4: 4 bit alpha
- a1: 1 bit alpha
- vector graphics support?