Arm Community
Site
Search
User
Site
Search
User
Groups
Education Hub
Distinguished Ambassadors
Open Source Software and Platforms
Research Collaboration and Enablement
Forums
AI and ML forum
Architectures and Processors forum
Arm Development Platforms forum
Arm Development Studio forum
Arm Virtual Hardware forum
Automotive forum
Compilers and Libraries forum
Graphics, Gaming, and VR forum
High Performance Computing (HPC) forum
Infrastructure Solutions forum
Internet of Things (IoT) forum
Keil forum
Morello forum
Operating Systems forum
SoC Design and Simulation forum
SystemReady Forum
Blogs
AI and ML blog
Announcements
Architectures and Processors blog
Automotive blog
Graphics, Gaming, and VR blog
High Performance Computing (HPC) blog
Infrastructure Solutions blog
Internet of Things (IoT) blog
Operating Systems blog
SoC Design and Simulation blog
Tools, Software and IDEs blog
Support
Arm Support Services
Documentation
Downloads
Training
Arm Approved program
Arm Design Reviews
Community Help
More
Cancel
Support forums
Graphics, Gaming, and VR forum
Mali T604 and eglImageKHR and FBO
Jump...
Cancel
Locked
Locked
Replies
6 replies
Subscribers
136 subscribers
Views
7357 views
Users
0 members are here
Mali-T604
Mali-GPU
Mali-400
Options
Share
More actions
Cancel
Related
How was your experience today?
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion
Mali T604 and eglImageKHR and FBO
Sebastien Baudouin
over 11 years ago
Note: This was originally posted on 12th June 2013 at
http://forums.arm.com
Hi,
i'm implementing an Android application using the GPU and especially ImageKHR and FrameBuffer Objects.
In a thread and its GLES context i'm creating a texture and its eglImageKHR then i share the eglImageKHR handle with another thread. In this second thread i'm creating a FrameBuffer Object with the given eglImageKHR as color buffer and a renderbuffer (for the depth) . Then from this second thread i'm drawing using openGLES 1.x commands into the just created FBO. The result is displayed on screen by the First thread.
All that is working well with a MALI-400 but running that application on a nexus 10 which use MALI-T604 i have some issue.
1- NO GL ERROR appear.
2- the FBO status is OK
but the screen is sometime OK sometime completely black.
I try to replace the drawing operation by a simple clear color where the color is changing at each call and sometime i can see part of the screen with a color and part that is black.
Is someone aware of differences between MALI-400 and MALI-T604 that could cause such kind of issue. unfortunately i do not have any documentation on T604 to really understand what is happening. I tried to enable auto MIMAP generation in case of T604 as for (NVidia GPU it was a mandatory condition the make the texture "complete") but nothing has changed.
I suspect that it is coming from ImageKHR because i have a JAVA application where i'm uising FBO without ImageKHR and it seems to work fine.
Here is the sequence to create the FBO with EGLImageKHR:
glGenFramebuffersOES(1, (GLuint*) 0x777ada1c);
glBindFramebufferOES(GL_FRAMEBUFFER_OES, 1);
glGenRenderbuffersOES(1, (GLuint*) 0x777ada1c);
glBindRenderbufferOES(GL_RENDERBUFFER_OES, 1);
glRenderbufferStorageOES(GL_RENDERBUFFER_OES, GL_DEPTH_COMPONENT16_OES, 1184, 694);
glFramebufferRenderbufferOES(GL_FRAMEBUFFER_OES, GL_DEPTH_ATTACHMENT_OES, GL_RENDERBUFFER_OES, 1);
glGenTextures(1, (GLuint *) 0x777ada0c);
glBindTexture(GL_TEXTURE_2D, 3);
glEGLImageTargetTexture2DOES(GL_TEXTURE_2D, (GLeglImageOES) 0x752d700c);
glFramebufferTexture2DOES(GL_FRAMEBUFFER_OES, GL_COLOR_ATTACHMENT0_OES, GL_TEXTURE_2D, 3, 0);
glCheckFramebufferStatusOES(GL_FRAMEBUFFER_OES);
I hope someone will be able to help me to understand what i'm missing .
Br
Seb
Parents
Sebastien Baudouin
over 11 years ago
Note: This was originally posted on 24th June 2013 at
http://forums.arm.com
Hi McGeagh,
unfortunately it is very difficult for me to share my app. This app is split into three parts:
- one part of OEM mobile phone images
- one part downloaded from the market
- one part downloaded from a server.
Even if the graphic are a is not split over the three parts we need all of them to make the application working.
As i tried to explain what i observed is that the same app was working fine on MALI 400 and the same app is working strangely having some time the screen black and sometime the right screen. My app is heavily using FBO (for off screen rendering) and EglImageKHR for exchanging textures between GLES contexts.
EglImage seems important to me even if the app is muti-threaded and not multi-processes as i can share texture between context of different types (GLES 1.0 or GLES 2.0) and also as shared context seems badly supported by GPU on the market (not mali).
I will try to bluid a new app using FBO and ImageKHR to see if i can duplicate the problem with that App.
If you have any idea on possible mistake on my side let me know i will try.
Br
Seb
Cancel
Up
0
Down
Cancel
Reply
Sebastien Baudouin
over 11 years ago
Note: This was originally posted on 24th June 2013 at
http://forums.arm.com
Hi McGeagh,
unfortunately it is very difficult for me to share my app. This app is split into three parts:
- one part of OEM mobile phone images
- one part downloaded from the market
- one part downloaded from a server.
Even if the graphic are a is not split over the three parts we need all of them to make the application working.
As i tried to explain what i observed is that the same app was working fine on MALI 400 and the same app is working strangely having some time the screen black and sometime the right screen. My app is heavily using FBO (for off screen rendering) and EglImageKHR for exchanging textures between GLES contexts.
EglImage seems important to me even if the app is muti-threaded and not multi-processes as i can share texture between context of different types (GLES 1.0 or GLES 2.0) and also as shared context seems badly supported by GPU on the market (not mali).
I will try to bluid a new app using FBO and ImageKHR to see if i can duplicate the problem with that App.
If you have any idea on possible mistake on my side let me know i will try.
Br
Seb
Cancel
Up
0
Down
Cancel
Children
No data