Dolphin, the GameCube and Wii emulator - Forums

Full Version: OpenGL ES 3 Guide
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
Just don't brick it Big Grin
(08-15-2013, 05:25 AM)Sonicadvance1 Wrote: [ -> ]I'm working on putting an unofficial Android 4.3 rom on my Galaxy S4 to be able to reproduce the issues.
From the OGL ES3 spec and its header file (http://www.khronos.org/registry/gles/api/3.0/gl3.h) and,
the glMapBuffer is not supported. Instead, the glMapBufferRange is supported.

It seems that the OGL ES3 driver used by Nexus 7 (Adreno 320, OpenGL ES 3.0 V@14.0) follows the latest OGL
ES spec so there is no glMapBuffer. Does Galaxy S4 I9505 use a different (old?) Adreno 320 driver which can still
support glMapBuffer? I tried to hack locally to implement glMapBuffer using glMapBufferRange:

GLvoid* myGlMapBuffer (GLenum target, GLenum access)
{
GLint64 size64;
GLsizeiptr size;

myGlGetBufferParameteri64v (target, GL_BUFFER_SIZE, &size64);
size = size64;
return glMapBufferRange (target, 0, size, access);
}

And now Dolphin can run on my Nexus 7, but I just get black screen.

I can see many logcat lines: I/Dolphinemu( 3104): Dolphin [] | JITARM DC | OGL | HLE | FPS: 0 - VPS: 11 - 23
And soon, the Nexus reboots automatically... Huh
Nemesis2k: The access hint in glMapBuffer and the usage flag in glMapBufferRange differs, so you aren't allowed to pass it directly. But on current master, glMapBuffer is completely removed :-)
Adreno drivers are still buggy garbage. I still haven't figured out the black screen garbage that it does. The Nexus 10 works flawlessly.
But it seems that I9505 which uses the same Adreno driver has better result than Nexus 7.
My Nexus 7 always quickly reboots using OGL ES backend for super mario sunshine.

What's the best device to run the Android Dolphin now? The nexus 10?

And what's the best device to run it in the near future? SnapDragon 800? Or Tegra 5?

Hamdir

(08-20-2013, 12:17 PM)Sonicadvance1 Wrote: [ -> ]Adreno drivers are still buggy garbage. I still haven't figured out the black screen garbage that it does. The Nexus 10 works flawlessly.
I have noticed Adreno 320 and Adreno 305 are both using v14 drivers in latest versions, however Adreno 330 devices like the LG G2 and Xperia Z Ultra are using v45 (4.2.2)

You there is a chance to use those drivers? i have looked in the lib and seems to me Qualcomm changed the fil structure for its A330 drivers

would you like to have a look?

you can find a dump form LG G2 here (lib.zip)

http://storagecow.eu/index.php?dir=Xda%2FLG+G2%2FLG+G2+System+Dump%2F
Got a black screen on sonic advance 2 and luigi mansion

htc one, need to run the command in the fist post.. otherwise, my device is rebooting.

here's a logcat: https://gist.github.com/cloud1250000/63ba90f1cc9cbf8c3eee

edit
Just updated with the leaked 4.3 for my device and now the emulator just crash.
Code:
I/Dolphinemu(12194): 32:30:495 /home/sonicadvance1/dolphin-emu/Source/Core/Core/Src/CoreParameter.cpp:319 W[BOOT]: Bootrom file /sdcard/dolphin-emu/GC/USA/IPL.bin not found - using HLE.
I/Dolphinemu(12194): UNKNOWN, 4 cores, SWP, Half, Thumb, FastMult, VFP, EDSP, ThumbEE, NEON, VFPv3, TLS, VFPv4, IDIVa, IDIVt
I/Dolphinemu(12194): /storage/emulated/0/Download/lm.iso
I/Dolphinemu(12194): 32:30:497 /home/sonicadvance1/dolphin-emu/Source/Core/Core/Src/CoreTiming.cpp:113 W[PowerPC]: Discarded old event type "EXIInterrupt" because a new type with the same name was registered.
I/Dolphinemu(12194): 32:30:497 /home/sonicadvance1/dolphin-emu/Source/Core/Core/Src/CoreTiming.cpp:113 W[PowerPC]: Discarded old event type "EXIInterrupt" because a new type with the same name was registered.
V/LightsService(  718): setLight #0: color=#ff5a5a5a
V/LightsService(  718): setLight #0: color=#ff585858
V/LightsService(  718): setLight #0: color=#ff565656
V/LightsService(  718): setLight #0: color=#ff545454
V/LightsService(  718): setLight #0: color=#ff525252
V/LightsService(  718): setLight #0: color=#ff515151
D/WirelessDisplayService(  718): getMirrorDisplayStatus:falsecurState:1
D/qdmemalloc(  243): ion: Unmap buf  base:0xb0252000 size:8355840
D/qdmemalloc(  243): ion: Unmap buf  base:0xb3c84000 size:4096
D/qdmemalloc(  243): ion: Free buf base:0x0 size:8355840 fd:65
D/qdmemalloc(  243): ion: Free buf base:0x0 size:4096 fd:66
I/Dolphinemu(12194): Clearing code cache.
I/Dolphinemu(12194): 32:30:964 /home/sonicadvance1/dolphin-emu/Source/Core/Core/Src/Boot/Boot.cpp:185 N[BOOT]: Booting /storage/emulated/0/Download/lm.iso
D/qdmemalloc(  243): ion: Alloc buf base:0xb3aa3000 size:737280 fd:39
D/qdmemalloc(  243): ion: Alloc buf base:0xb3c84000 size:4096 fd:53
D/qdmemalloc( 1427): ion: Mapped buf base:0x6e28c000 size:737280 offset:0 fd:79
D/qdmemalloc( 1427): ion: Mapped buf base:0x66995000 size:4096 offset:0 fd:82
I/Dolphinemu(12194): 32:31:067 /home/sonicadvance1/dolphin-emu/Source/Core/Core/Src/HLE/HLE_OS.cpp:39 N[OSREPORT]: 81200230->81300000| Apploader Initialized.  $Revision: 24 $.
I/Dolphinemu(12194): 32:31:067 /home/sonicadvance1/dolphin-emu/Source/Core/Core/Src/HLE/HLE_OS.cpp:39 N[OSREPORT]: 8120024c->81300000| This Apploader built Aug  9 2001 17:42:56
I/Dolphinemu(12194): 32:31:068 /home/sonicadvance1/dolphin-emu/Source/Core/DiscIO/Src/FileMonitor.cpp:100 W[FileMon]:       0 kB model/CVS/
I/Dolphinemu(12194): 32:31:068 /home/sonicadvance1/dolphin-emu/Source/Core/DiscIO/Src/FileMonitor.cpp:100 W[FileMon]:       0 kB Nakamura/CVS/
I/Dolphinemu(12194): 32:31:558 /home/sonicadvance1/dolphin-emu/Source/Core/DiscIO/Src/FileMonitor.cpp:100 W[FileMon]:       0 kB
D/qdmemalloc(12194): ion: Unmap buf  base:0x72429000 size:737280
D/qdmemalloc(12194): ion: Unmap buf  base:0x69921000 size:4096
I/Dolphinemu(12194): 32:32:372 /home/sonicadvance1/dolphin-emu/Source/Plugins/Plugin_VideoOGL/Src/GLFunctions.cpp:52 E[Video]: Couldn't load function glMapBuffer
D/WifiStateMachine(  718): fetchRssiAndLinkSpeedNative RSSI = -26
D/WifiStateMachine(  718): fetchRssiAndLinkSpeedNative mLinkspeedCount = 1, mLinkspeedSum: 65
D/WifiStateMachine(  718): [ScoreAP] + newLinkSpeed = 65, txPacket: -1, txRetry: -1, txFailed: -1
I/WindowState(  718): WIN DEATH: Window{431ee050 u0 SurfaceView}
I/ActivityManager(  718): Recipient 12194
I/ActivityManager(  718): Process org.dolphinemu.dolphinemu (pid 12194) has died.
W/InputDispatcher(  718): channel '42e3ae40 org.dolphinemu.dolphinemu.DolphinEmulator (s)' ~ Consumer closed input channel or an error occurred.  events=0x9
E/InputDispatcher(  718): channel '42e3ae40 org.dolphinemu.dolphinemu.DolphinEmulator (s)' ~ Channel is unrecoverably broken and will be disposed!
W/ActivityManager(  718): Force removing ActivityRecord{41c32378 u0 org.dolphinemu.dolphinemu/.DolphinEmulator}: app died, no saved state
W/InputDispatcher(  718): Attempted to unregister already unregistered input channel '42e3ae40 org.dolphinemu.dolphinemu.DolphinEmulator (s)'
D/InputManager(  718): setFocusedApplication Exception: java.lang.NullPointerException
W/ActivityManager(  718): handleTopAppChanged(): The previous AP is died unexpectedly.
D/WirelessDisplayService(  718): getMirrorDisplayStatus:falsecurState:1
I/WindowState(  718): WIN DEATH: Window{42e3ae40 u0 org.dolphinemu.dolphinemu/org.dolphinemu.dolphinemu.DolphinEmulator}
I/WindowState(  718): WIN DEATH: Window{42dc51f8 u0 Toast EXITING}

So.. the previous blackscreen and this current crash must be related to "Couldn't load function glMapBuffer"?

Edit 2... nvm about that, it seems you've already fixed those crash ahah but couldn't fix the black screen...

Edit 3: is there anything we can do to help you? gltrace file or something?

Hamdir

The HTC One (Sense 5) upcoming 3.17 OTA include the Adreno 320 v45 drivers

http://forum.xda-developers.com/showpost.php?p=45524573&postcount=54
Perfect, I'll test this now!

Edit: Same result, except we don't need to disable the kernel function in order to use the gles backend now Wink
(09-13-2013, 01:31 AM)Hamdir Wrote: [ -> ]The HTC One (Sense 5) upcoming 3.17 OTA include the Adreno 320 v45 drivers

http://forum.xda-developers.com/showpost.php?p=45524573&postcount=54
I should hope the 2013 Nexus 7 gets these soon...
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27