Discussion:
Enable AMD GPU acceleration on Adnroid-x86 Release 8.1-rc2 source code
Thella Shyam Kumar
2018-11-26 07:45:05 UTC
Permalink
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
--
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 android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-x86.
For more options, visit https://groups.google.com/d/optout.
Mauro Rossi
2018-11-26 21:05:53 UTC
Permalink
Hi Thella,
Post by Thella Shyam Kumar
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
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
--
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 android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-x86.
For more options, visit https://groups.google.com/d/optout.
Thella Shyam Kumar
2018-11-27 06:37:51 UTC
Permalink
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
--
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 android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-x86.
For more options, visit https://groups.google.com/d/optout.
Mauro Rossi
2018-11-27 07:47:40 UTC
Permalink
Hi Shyam,
Post by Thella Shyam Kumar
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
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
--
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 android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-x86.
For more options, visit https://groups.google.com/d/optout.
Thella Shyam Kumar
2018-11-27 15:40:30 UTC
Permalink
Tried 8.1-rc2 source code with 4.19.3 kernel and it is working.

Thank you Mouro and Chih-Wei.
Post by Mauro Rossi
Hi Shyam,
On Tuesday, November 27, 2018 at 7:37:52 AM UTC+1, Thella Shyam Kumar
Post by Thella Shyam Kumar
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.
Post by Mauro Rossi
Post by Thella Shyam Kumar
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.
Post by Mauro Rossi
Please clarify better your statements because if you say sw rendering is
working,
Post by Mauro Rossi
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
--
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
Visit this group at https://groups.google.com/group/android-x86.
For more options, visit https://groups.google.com/d/optout.
--
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 android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-x86.
For more options, visit https://groups.google.com/d/optout.
Loading...