How about implementing Vulkan API into android x86?

449 views
Skip to first unread message

Patrick Wirth

unread,
Sep 29, 2018, 5:46:06 PM9/29/18
to Android-x86
Since many of the devices android x86 was designed for (x86 based tablets and netbooks) are just intel HD based, the performance is more at a midrange level which may caused by the lack of vulkan support.

The vulkan API is included on my graphics driver for windows, so the gpu should handle it without any issues.
So the only thing is implementing this into android x86.
Many games already support this API and this may increase the performance to a much higher level.

The difference between Open GL ES 3.0 and Vulkan on my Nivida Shield tablet in 3DMark is huge (there is an benchmark to compete both APIs)

Are there future plans or is it even possible to add vulkan to android x86?

Mauro Rossi

unread,
Sep 30, 2018, 10:22:02 AM9/30/18
to Android-x86
Hi Patrick,
 Yes, there are plans and it is a work in progress, having already substancial results

The vulkan enabled experimental iso are available here and vulkan anv is included in all hwc enabled iso:


Older iso built with mesa 18.2.0-devel seem more stable on Intel, this problem is under investigation.
Please report any issue you may find.

Mauro







Patrick Wirth

unread,
Oct 20, 2018, 9:42:26 PM10/20/18
to Android-x86
Hi Mauro,

Sorry for the late answer, totally forgot it.

I wasn't able to test the test images since it since they don't enable vulkan at all on my Intel powered mobile devices (Tablet, Laptop.
The first device uses an Pentium N4200 and the second one a Core i7 5500U.
Only OpenGL was available.

Has there anything to be done to enable vulkan?

If you need logs or more info, feel free to contact me.

Mauro Rossi

unread,
Oct 21, 2018, 8:01:34 AM10/21/18
to Android-x86


On Sunday, October 21, 2018 at 3:42:26 AM UTC+2, Patrick Wirth wrote:
Hi Mauro,

Sorry for the late answer, totally forgot it.

I wasn't able to test the test images since it since they don't enable vulkan at all on my Intel powered mobile devices (Tablet, Laptop.
The first device uses an Pentium N4200 and the second one a Core i7 5500U.
Only OpenGL was available.

Has there anything to be done to enable vulkan?


If you chose one of the hwc iso at the link then  nothing to be done, but please read the information below. 

Only hwc enabled images in that folder and the ones in the hwc* folders have Vulkan anv enabled.
On Skylake GT2 vulkan HAL anv works, even if for some reason during mesa 18.2.0-devel cycle it was more stable than the release 18.2.x
3DMark API Overhead was 100% rock stable and now sometimes it crashes.

drm_gralloc is not compatible with the required dma-bufs (prime fd) infact the drm_gralloc iso do not have 'vulkan' in the name,
even if vulkan HAL added in those the allocator would not be able to allocate a buffer for vulkan.

 

If you need logs or more info, feel free to contact me.

If the hwc* isos do not boot please provide the output of modetest command in early boot stages

Older intel IGP generations do not support RGBA_8888 pixel format (FourCC AB24) in the Primary planes
and they only support RGBX_8888 pixel format ( FourCC XB24)

Mauro

Patrick Wirth

unread,
Oct 27, 2018, 4:33:12 PM10/27/18
to Android-x86
Hi Mauro,
I´ve tried out the oreo_x86_64_8.1.0_r48_k419_HWC2_RGBA_llvm70_vulkan_mesa-18.3.0-devel_w42.iso from the hwc 2 folder and I can say, it boots up but I can´t pass the setup wizard.
After entering account details, the google app crashes and it ends in "account added" loop.
The previous build doesn´t show up in uefi as boot option and both freezes at grub uefi install, so i´ve done the installation on another device.
Things I´ve noticed so far > Acer Switch 3 SW312-31
Video glitches, battery level indicator is 0% 

How can I take a logcat on a x86 device?
I know how to do it on real android hardware but on this device I can´t use usb debugging, right?
The USB C connector only works in host mode.
The boot device is a usb hard drive if that matters in any way.
I will now try the installation on my Asus laptop.

Patrick Wirth

unread,
Oct 27, 2018, 4:46:28 PM10/27/18
to Android-x86
On my Asus R752L (Intel Core i7 5500U) it doesn´t initialize the gpu correct (i guess) it shows me a error message to update the microcode (?) and then it seems to continue booting since the hard drive is doing something but it leaves me alone with a static cursor on the screen while screen brightness control works.
Tell me what kind of log you need and how to get it and I will give you all you need for debugging.


photo5380111614382025323.jpg

Mauro Rossi

unread,
Oct 28, 2018, 3:12:42 PM10/28/18
to Android-x86
Hi Patrick,


On Saturday, October 27, 2018 at 10:46:28 PM UTC+2, Patrick Wirth wrote:
On my Asus R752L (Intel Core i7 5500U) it doesn´t initialize the gpu correct (i guess) it shows me a error message to update the microcode (?) and then it seems to continue booting since the hard drive is doing something but it leaves me alone with a static cursor on the screen while screen brightness control works.

The [Firmware bug] message should not be a show stopper
 
Tell me what kind of log you need and how to get it and I will give you all you need for debugging.

The CPU IGP you are trying lacks the necessary RGBA_8888 pixel format (FourCC AB24) in the Primary planes
and it would not work even with BGRA_8888 trick in surfaceflinger hwcomposer code, 
because that format is not supported either.

modprobe i915
modetest

No RGBA_8888 implies no HWC and no HWC implies no gbm_gralloc's dma_bufs and no vulkan anv

If the format is not supported by HW, then you cannot use any of the hwc+vulkan ISOs.

Mauro
modetest_Intel_HD_5500.txt

Patrick Wirth

unread,
Oct 28, 2018, 3:47:57 PM10/28/18
to Android-x86
And how about the Intel HD 505 (Intel Pentium N4200) ?
It booted up so i guess it is supporting the format but had graphical glitches?
The CPU is based on apollo lake as far as I know (a more modern cpu).

Mauro Rossi

unread,
Oct 28, 2018, 5:10:46 PM10/28/18
to Android-x86
Hi, 


On Sunday, October 28, 2018 at 8:47:57 PM UTC+1, Patrick Wirth wrote:
And how about the Intel HD 505 (Intel Pentium N4200) ?
It booted up so i guess it is supporting the format but had graphical glitches?

What glitches? Better if you could provide descriptions and logs associated with issues reports,
the instructions are in the forum.
 
The CPU is based on apollo lake as far as I know (a more modern cpu).

You could tell us, I don't have that platform,
are 3DMark Slingshot Extreme and API Overhead benchmark available?

Are Sky Force Reloaded and Toy Zombies Lite working?

Last time I tried on Skylake GT there were issues with Unity based benchmarks, still to be assessed,
some new cases of crashes due to null pointer dereferce in mesa i965 and Olympus Rising crashing
and latest HWC2 has some cursor plane ordering problems

Mauro

Patrick Wirth

unread,
Oct 28, 2018, 5:38:32 PM10/28/18
to Android-x86
Here is an example:

I can't pass the setup wizard and I'm not sure how to bypass it.
It goes into a "google app crashed" loop and doesn't continue.

Patrick Wirth

unread,
Oct 28, 2018, 6:12:07 PM10/28/18
to Android-x86
I was able to delete my data and try ot again by skipping almost everything.
Unfortunately, i'm unable to use most of the apps.
The google apps are crashing and 3dmark does aswell.
And the graphical glitches are even worse:
Reply all
Reply to author
Forward
0 new messages