FORUMS

[DRIVER] Adreno 5xx GPU Driver [V313 REV23 | V331 REV1]

880 posts
Thanks Meter: 898
 
By heindrix, Senior Member on 13th July 2018, 10:38 AM
Thread Closed Email Thread
[NOTES]
Guys, there are many members encounter blackscreen (after system boot) after flashing the driver on the LATEST Pie ROM (it's happening after September security patch).
Looks like it's due to the hardening security.
This method fixed that blackscreen problem : https://forum.xda-developers.com/sho...postcount=1047
Or the better way is, to tell your dev to include this blobs in the rom directly, that way the rom will boot successfully.
I will try to solve the issue ASAP, best regards.



[DISCLAIMER]
* flash it with your own risk, don't blame me if it's not working for you, make sure to backup before you messed up.
* there are possibilities that maybe this driver won't work on some ROMs.
* there are possibilities that maybe this driver won't work on some CPUs that hasn't been tested.


[README]
* to check your GPU driver OpenGL ES version, use AIDA64 (like shown on the picture in attachment). download : https://play.google.com/store/apps/d...ida64&hl=en_US
* to check your GPU driver Vulkan version, use Vulkan Hardware Capability Viewer (like shown on the picture attachment). download : https://play.google.com/store/apps/d...iewer&hl=en_US
* if your current driver have higher version and don't have any bugs, no need to flash this driver.
* check your device compatibility in compatibility list section.
* some tester said the benchmark score go higher and 3D heavy games are smoother using latest GPU driver, you can try to take before and after benchmark pictures and post it here to prove it.
* the driver is interchangeable (can be flashed over the top of another version, it will be replaced).


[COMPATIBILITY]
PROJECT :
* Non-Treble
* Treble

OS :
* Android 8.0 : [email protected]
* Android 8.1 : [email protected]
* Android 9.0 : [email protected] | [email protected] | [email protected]

CPU :
* Snapdragon 430 = msm8937 (tested)
* Snapdragon 435 = msm8940
* Snapdragon 625/626 = msm8953 (tested)
* Snapdragon 650 = msm8956 (not compatible)
* Snapdragon 652/653 = msm8976
* Snapdragon 820/821 = msm8996 (tested)
* Snapdragon 835 = msm8998 (tested)
* Snapdragon 429 = sdm429
* Snapdragon 439 = sdm439
* Snapdragon 450 = sdm450
* Snapdragon 630 = sdm630
* Snapdragon 632 = sdm632
* Snapdragon 636 = sdm636
* Snapdragon 660 = sdm660 (tested)


[INSTRUCTIONS]
1]. find out what is your CPU model number, you can see it in COMPATIBILITY section, on CPU sub-section. for example, my CPU is Snapdragon 821, so the CPU model number is msm8996.
2]. download the zip file. rename file in the zip file with name "vulkan.xxx.so" in system/(vendor)/lib/hw and system/(vendor)/lib64/hw to "vulkan.CpuModelNumber.so". for example, for me, i rename "vulkan.xxx.so" to "vulkan.msm8996.so".
you can use this app to rename the file inside the zip file : https://play.google.com/store/apps/d...com.rarlab.rar
DO NOT EDIT FILE NAMED "a5xx", ONLY EDIT FILE NAMED "vulkan.xxx.so", I HAVE TO MENTION THIS BECAUSE SOME GENIUS DECIDE TO DO THINGS BY THEIR OWN REGARDLESS FOLLOWING THE INSTRUCTIONS THAT HAS GIVEN STEP BY STEP.
3]. boot into TWRP
4]. make sure your SYSTEM and VENDOR partitions are not read only.
5]. just in case, mount SYSTEM and VENDOR partitions before flash the zip file.
6]. flash the modified zip file, wipe Dalvik Cache and Cache.
7]. after flash, boot into system, and check if your GPU Version driver has changed (you can use AIDA64). and you can test benchmark if you want (i suggest 3DMark or Antutu).
8]. this step is optional/additional : to boost GPU performance a little bit again, please add this code in system/vendor/build.prop (or in system/build.prop if you can't find it in system/vendor/build.prop). and please check if there's the same code line in your default build.prop, remove it so it won't conflicting each other. code to add :

com.qc.hardware=true
debug.composition.type=gpu
debug.egl.hw=1
debug.egl.profiler=1
debug.enabletr=true
debug.gralloc.enable_fb_ubwc=1
debug.overlayui.enable=1
debug.performance.tuning=1
debug.qc.hardware=true
debug.qctwa.preservebuf=1
debug.qctwa.statusbar=1
debug.sf.hw=1
debug.sf.latch_unsignaled=1
dev.pm.dyn_samplingrate=1
hw3d.force=1
hwui.disable_vsync=true
hwui.render_dirty_regions=false
ro.config.enable.hw_accel=true
ro.fb.mode=1
ro.product.gpu.driver=1
ro.sf.compbypass.enable=0


[DOWNLOADS]
https://drive.google.com/drive/folde...v1AJWodVnQYTsu


[BUGS REPORTING]
* provide device model.
* provide ROM name, android version, and treble/non-treble version.
* which file did you flash.
* provide logcat, preferable taken with adb using verbose option. how to : https://forum.xda-developers.com/sho....php?t=2185929
* I WILL NEVER TRY TO INSPECT/FIX ANYTHING IF YOU DON'T SEND LOGS, SAME GOES I WILL NEVER REPLY YOUR MESSAGE IF YOU DON'T SEND LOGS.



[OTHER STUFFS]
* Do this only if you get stock camera app force close : https://forum.xda-developers.com/sho...&postcount=803
* A little help from @LilBlinx for msm8953 devices : https://forum.xda-developers.com/sho...postcount=1123


[CREDITS]
* Source : v313 : https://www.coolapk.com/feed/7290260 | v319 : https://www.coolapk.com/feed/7483860 | v328 : https://github.com/LineageOS | v330 : https://github.com/syberia-project
* Driver Author : v313, v319椿的神之圍樓 | v328, v330, v331 : @heindrix
* Informant : @llinn


* WHY DON'T YOU CREATE MAGISK MODULE?
Well, i just believe the performance will be better to flash the driver directly into its designated directory, rather than mounting it from an image and load it later when booting (which is what is magisk doing). For me, some other things is okay to make it into a magisk module, but not a driver, period.
Attached Thumbnails
Click image for larger version

Name:	AIDA64.png
Views:	35428
Size:	218.8 KB
ID:	4611217   Click image for larger version

Name:	Vulkan_Caps_Viewer.png
Views:	35196
Size:	197.6 KB
ID:	4611218  
The Following 114 Users Say Thank You to heindrix For This Useful Post: [ View ] Gift heindrix Ad-Free
13th July 2018, 06:11 PM |#2  
gavin19's Avatar
Senior Member
Flag Belfast
Thanks Meter: 1,078
 
Donate to Me
More
Source? You might want to remove the 540 links since we only need 530, just to save any 'which one' questions.

With 3DMark I used the Sling Shot Extreme (Open GL ES 3.1 & Vulkan) and Ice Storm (Open GL ES 2.0) benchmarks. Results again remained pretty much the same before/after. SSE was ~2550-2700 for Open GL and ~1900-2000 for Vulkan. Ice Storm was almost always ~38,500.

In Antutu though, I got a considerable boost (76k on GPU instead of my usual max of 69k).

I'd be interested to see what others get, and if there are any alternative benchmark apps worth using.
Attached Thumbnails
Click image for larger version

Name:	Screenshot_AnTuTu_Benchmark_20180713-173929.png
Views:	22882
Size:	181.6 KB
ID:	4549107   Click image for larger version

Name:	Screenshot_AnTuTu_Benchmark_20180714-145730.jpg
Views:	22486
Size:	155.9 KB
ID:	4549640  
The Following 6 Users Say Thank You to gavin19 For This Useful Post: [ View ] Gift gavin19 Ad-Free
13th July 2018, 11:15 PM |#3  
heindrix's Avatar
OP Senior Member
Flag Pekanbaru
Thanks Meter: 898
 
Donate to Me
More
Quote:
Originally Posted by gavin19

Source? You might want to remove the 540 links since we only need 530, just to save any 'which one' questions.

With 3DMark I used the Sling Shot Extreme (Open GL ES 3.1 & Vulkan) and Ice Storm (Open GL ES 2.0) benchmarks. Results again remained pretty much the same before/after. SSE was ~2550-2700 for Open GL and ~1900-2000 for Vulkan. Ice Storm was almost always ~38,500.

In Antutu though, I got a considerable boost (76k on GPU instead of my usual max of 69k).

I'd be interested to see what others get, and if there are any alternative benchmark apps worth using.

got it from a friend.
he said he got it from a china forum www.coolapk.com.
the driver is extracted from Pixel 2/Essential PH-1, since msm8998 gpu driver can be used for msm8996 too.
is it possible to merge the driver into your rom? (crdroid, aicp, rr)


okay, done a bit research.
i downloaded Google Pixel driver binaries from here (taimen and walleye for Adreno 540, and marlin and sailfish for Adreno 530) : https://developers.google.com/android/drivers
looks like the same files, and the binaries were updated very regularly, which is good.
maybe i'll create a magisk flashable zip and try to flash it to see if it works fine.
if it works fine, i'll update it regularly here everytime google release new driver binaries.
The Following 5 Users Say Thank You to heindrix For This Useful Post: [ View ] Gift heindrix Ad-Free
14th July 2018, 05:04 AM |#4  
Member
Flag Pointe-a-Pitre
Thanks Meter: 6
 
More
The lowest is before and the highest is after.
I'm using the magisk non treble version.
Attached Thumbnails
Click image for larger version

Name:	Screenshot_AnTuTu_Benchmark_20180713-234903.png
Views:	12980
Size:	200.5 KB
ID:	4549343   Click image for larger version

Name:	Screenshot_AnTuTu_Benchmark_20180714-000056.png
Views:	12896
Size:	194.8 KB
ID:	4549344  
The Following User Says Thank You to xX.R.O.G.Xx For This Useful Post: [ View ] Gift xX.R.O.G.Xx Ad-Free
14th July 2018, 02:48 PM |#5  
Junior Member
Thanks Meter: 1
 
More
thanks, but radiation Island and radiation city are unable to run after I updated 313 driver (I tried both magisk and rec edition;other games and apps work fine)
could you fix this ?
or it's the problem of game maker so I just need to waitting for them upadate games?
The Following User Says Thank You to qqjoyko For This Useful Post: [ View ] Gift qqjoyko Ad-Free
14th July 2018, 10:24 PM |#6  
Member
Flag Pointe-a-Pitre
Thanks Meter: 6
 
More
With the new v8 Magisk version
Attached Thumbnails
Click image for larger version

Name:	Screenshot_AnTuTu_Benchmark_20180714-000056.png
Views:	7036
Size:	194.8 KB
ID:	4549937  
14th July 2018, 10:26 PM |#7  
Member
Flag Pointe-a-Pitre
Thanks Meter: 6
 
More
Quote:
Originally Posted by xX.R.O.G.Xx

With the new v8 Magisk version

Wrong image sorry, here is the new one.
Attached Thumbnails
Click image for larger version

Name:	Screenshot_AnTuTu_Benchmark_20180714-171902.png
Views:	6130
Size:	199.7 KB
ID:	4549938  
15th July 2018, 12:03 AM |#8  
Annoyingmouse's Avatar
Member
Thanks Meter: 5
 
More
Will this work on an oneplus 3 running oxygen os on Android 8.0? Thanks!
15th July 2018, 12:08 AM |#9  
gavin19's Avatar
Senior Member
Flag Belfast
Thanks Meter: 1,078
 
Donate to Me
More
Quote:
Originally Posted by Annoyingmouse

Will this work on an oneplus 3 running oxygen os on Android 8.0? Thanks!

Pretty sure it'll work fine. It should work for all SD820/821 devices. Just take a backup in TWRP so you can restore if it breaks something.
The Following User Says Thank You to gavin19 For This Useful Post: [ View ] Gift gavin19 Ad-Free
15th July 2018, 01:50 AM |#10  
Annoyingmouse's Avatar
Member
Thanks Meter: 5
 
More
Wow, the new driver is amazing! I really don't know what it changed but it was magic! Not only my gpu AnTuTu score is higher but somehow the phone doesn't get as warm as before, the temperature is just stable. Also I have tested one game - madout open city - and I think that the phone throttloted less because I had higher fps and everything was smooth. I'm just impressed with what 313 did, I feel like qualcomm is really trying to improve their drivers even on older models.
Thread Closed Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes