Forums - GL_MAX_ELEMENTS_VERTICES returns -1

5 posts / 0 new
Last post
GL_MAX_ELEMENTS_VERTICES returns -1
RelativeGames
Profile picture
Join Date: 16 Apr 13
Posts: 56
Posted: Tue, 2013-10-08 07:08

On Adreno 320, Nexus 4, Android 4.3, these GL ES 3 caps have invalid values.

GL_MAX_ELEMENTS_VERTICES returns -1

GL_MAX_ELEMENTS_INDICES returns -1

GL_MAX_ELEMENT_INDEX returns -1

The specs says that at least GL_MAX_ELEMENT_INDEX should be 2^24 -1.

  • Up0
  • Down0
mhfeldma Moderator
Join Date: 29 Nov 12
Posts: 310
Posted: Mon, 2013-10-14 13:59

Can you try using glGetInteger64?

    GLint64 vert;
    glGetInteger64v(GL_MAX_ELEMENTS_VERTICES, &vert);

    GLint64 indices;
    glGetInteger64v(GL_MAX_ELEMENTS_INDICES, &indices);

    GLint64 elementIndex;
    glGetInteger64v(GL_MAX_ELEMENT_INDEX, &elementIndex);
 

  • Up0
  • Down0
RelativeGames
Profile picture
Join Date: 16 Apr 13
Posts: 56
Posted: Thu, 2013-10-17 15:43

Just did.

GL_MAX_ELEMENT_INDEX returns 4294967295
GL_MAX_ELEMENTS_VERTICES returns -1
GL_MAX_ELEMENTS_INDICES returns  -1

As a note I used :

GLint64 val[4] = { 0 };
glGetInteger64v( Type, &val[0] );

sprintf( Text64, "%lld", val[0] );
 

To print the values since I have no debugging support in the NDK. I'm saying this because on Windows only %I64d works.

  • Up0
  • Down0
mhfeldma Moderator
Join Date: 29 Nov 12
Posts: 310
Posted: Mon, 2013-10-21 14:58

I'm seeing the same results on a Nexus 4 (Jun 17, 2013 build, Android 4.3).  We'll investigate and verify that will be corrected in the next update.

  • Up0
  • Down0
mhfeldma Moderator
Join Date: 29 Nov 12
Posts: 310
Posted: Thu, 2013-10-24 12:46

There was a change made to our drivers in June that corrected the returned results for several of these constants.  We should hopefully expect to see them picked up in the next OS update.

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.