www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: EgonOlsen on February 10, 2016, 09:14:47 am

Title: Looking for a GPU...
Post by: EgonOlsen on February 10, 2016, 09:14:47 am
...is anybody out there with a device with PowerVR SGX544 GPU? There seems to be a problem with one of Naroth's shaders on this device, but I don't know what it is and I don't have access to such a device. My only PowerVR based device uses a SGX540, and that one works just fine...

HELP!
Title: Re: Looking for a GPU...
Post by: EgonOlsen on February 10, 2016, 10:28:59 am
I think I found it with the help of the PowerVR developer toolkit...The weapon's vertex shader doesn't compile on the 5XT-compiler (it does so on all the others though). There's no proper error message either, just "nope, didn't work!".

I tracked it down to this line:

Code: [Select]
if (angle > 0.0 && !dungeon) {
 ...
}

for some reason, it doesn't like this line. But it likes this one:

Code: [Select]
if (!dungeon && angle > 0.0) {
  ...
}

Oh, the joys of shader compilation...but anyway...anybody has such a device (like a Galaxy S4)? I would love to test my change to see, if it actually solves the problem or if this is a red hering.
Title: Re: Looking for a GPU...
Post by: Darai on February 10, 2016, 02:23:08 pm
Hmm is there a siple way to find out which GPU you have in the device? I'll probably have to search the net...
Well I have Nexus 7, which means Nvidia Tegra 3, but that is CPU, not GPU unles it ... nope, I just find that I have there probably Adreno 320. Sorry.
Title: Re: Looking for a GPU...
Post by: EgonOlsen on February 10, 2016, 02:27:13 pm
The Galaxy S4 is a popular example, also some Asus Fonepads and Zenfones.
Title: Re: Looking for a GPU...
Post by: EgonOlsen on February 11, 2016, 04:49:47 pm
Got a user to test it for me. Seems to work fine now on PowerVR SGX54x, x>0...stupid shader compiler... >:(