Enable AMD GPU acceleration on Adnroid-x86 Release 8.1-rc2 source code

170 views
Skip to first unread message

Thella Shyam Kumar

unread,
Nov 26, 2018, 2:45:05 AM11/26/18
to Android-x86
Hey All,

With the prebuilt image downloaded from Android-x86 8.1-rc2, software rendering is working.
But the release notes says GPU acceleration for Nvidia/Amd/Intel support is present.
This release contains Kernel4.18 LLVM70 Mesa18.2.

What changes I have to do if I want to make GPU acceleration working with the release code?

Regards,
Shyam


Mauro Rossi

unread,
Nov 26, 2018, 4:05:53 PM11/26/18
to Android-x86
Hi Thella,
Please specify your HW and GPU, I recently tried the 8.1-rc2 codebase,
with libdrm 2.4.96 as one of the few changes and it worked for me with SI, Bonaire, Mullins, Tonga, Polaris

What happens if you start in Debug mode and issue the following command? Could you please provide /data/log.txt

modprobe amdgpu
exit
exit


Mauro

Thella Shyam Kumar

unread,
Nov 27, 2018, 1:37:52 AM11/27/18
to Android-x86
I didn't try the source code with HW rendering yet.
Will try it out today with HWACCEL=1 in BoardConfig.mk

My platform is AMD Ryzen.

Regards,
Shyam

Mauro Rossi

unread,
Nov 27, 2018, 2:47:40 AM11/27/18
to Android-x86
Hi Shyam,
Please clarify better your statements because if you say sw rendering is working,
followed by "what have to do to have it working with HW acceleration?"
the answer is boot iso in either Live CD, Live CD Debug mode or Install,
the HW acceleration is enabled by default.

In case you find any problem, please go straight to the point,
by providing test report (few lines of info) and, when possible, /data/log.txt collected in Debug mode.

Mauro

Chih-Wei Huang

unread,
Nov 27, 2018, 5:03:53 AM11/27/18
to Android-x86
Mauro Rossi <issor...@gmail.com> 於 2018年11月27日 週二 下午3:47寫道:
>
> Hi Shyam,
>
> On Tuesday, November 27, 2018 at 7:37:52 AM UTC+1, Thella Shyam Kumar wrote:
>>
>> I didn't try the source code with HW rendering yet.
>> Will try it out today with HWACCEL=1 in BoardConfig.mk

Note HWACCEL=1 (which is default) should be set
in kernel cmdline at runtime. No effect to BoardConfig.mk.

>> My platform is AMD Ryzen.

My colleague told me Ryzen5 needs kernel 4.19,
while 8.1-rc2 is still using 4.18.
In 8.1-rc2 it just falls back to software rendering.
Your result seems to be consistent with him.

I think Mauro has some kernel 4.19 testing images
that you can try.

> Please clarify better your statements because if you say sw rendering is working,
> followed by "what have to do to have it working with HW acceleration?"
> the answer is boot iso in either Live CD, Live CD Debug mode or Install,
> the HW acceleration is enabled by default.
>
> In case you find any problem, please go straight to the point,
> by providing test report (few lines of info) and, when possible, /data/log.txt collected in Debug mode.


--
Chih-Wei
Android-x86 project
http://www.android-x86.org

Thella Shyam Kumar

unread,
Nov 27, 2018, 10:40:55 AM11/27/18
to andro...@googlegroups.com
Tried 8.1-rc2 source code with 4.19.3 kernel and it is working.

Thank you Mouro and Chih-Wei.

--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-x86...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at https://groups.google.com/group/android-x86.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages