ARM Community: It looks like ARM MALI GPU does not support opengl es 2.0 specification! - ARM Community

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

It looks like ARM MALI GPU does not support opengl es 2.0 specification! It looks like ARM MALI GPU does not support opengl es 2.0 specificatio

#1 User is offline   cybice 

  • Member
  • Pip
  • Group: Members
  • Posts: 3
  • Joined: 25-October 11

Posted 25 October 2011 - 11:18 PM

It looks like ARM MALI GPU does not support opengl es 2.0 specification!!!Mali GPU Offline Shader Compiler http://www.malidevel...er-compiler.phpgives next error - function texture2D not supported on targeton next vertex shader code----------------------------------------------------------------attribute vec4 coord;
uniform mat4 camera;
uniform sampler2D filter_tex;
void main(){ mediump vec2 uv_coord = vec2(1.0,1.0); mediump vec4 dx = texture2D(filter_tex, uv_coord); gl_Position = camera * coord;}
----------------------------------------------------------------

but opengl es 2.0 specification says:Texture lookup functions are available to both vertex and fragment shaders
and texture2D is texture lookup function.
0

#2 User is offline   RobC 

  • Member
  • Pip
  • Group: Members.
  • Posts: 12
  • Joined: 15-October 09

Posted 26 October 2011 - 08:28 AM

Hi Cybice,

瀏覽文章引用框(cybice @ 25 October 2011 - 11:18 PM)

It looks like ARM MALI GPU does not support opengl es 2.0 specification!!!


Don't worry, all Mali GPUs are compliant with the relevant Khronos OpenGL ES specifications. Khronos publish a list of all the conformant products which can be inspected online;

www.khronos.org/conformance/adopters/conformant-products

Click on the OpenGL ES tab and then search for "Mali" for more details. You will see that Mali-200, 300 & 400 GPUs all support OpenGL ES2.0.

瀏覽文章引用框(cybice @ 25 October 2011 - 11:18 PM)

Mali GPU Offline Shader Compiler http://www.malidevel...er-compiler.phpgives next error - function texture2D not supported on targeton next vertex shader code
<snip>

but opengl es 2.0 specification says:Texture lookup functions are available to both vertex and fragment shaders
and texture2D is texture lookup function.


Texture lookup functions are optional in the vertex shader. Section 2.10.5 (of the current specification 2.0.25) reads

引用


Texture Access


Vertex shaders have the ability to do a lookup into a texture map, if supported by
the GL implementation. The maximum number of texture image units available to
a vertex shader is MAX_VERTEX_TEXTURE_IMAGE_UNITS; a maximum number of
zero indicates that the GL implemenation does not support texture accesses in vertex
shaders
[my emphasis].


I'm not sure which bit of the OpenGL ES specification you are quoting but I suspect it was a general introductory part that didn't go into the full details.

As you have found the Mali-400 does not support texture lookup in the vertex shader. You can detect this, and implement an alternative shader, by reading MAX_VERTEX_TEXTURE_IMAGE_UNITS in your application (see table 6.20 in the GL ES specification).

I hope that helps,
RobC

This post has been edited by RobC: 26 October 2011 - 08:51 AM

Robert
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic